B4A

Mostrando las entradas con la etiqueta vm. Mostrar todas las entradas
Mostrando las entradas con la etiqueta vm. Mostrar todas las entradas

viernes, septiembre 03, 2010

Building Cog VM on Ubuntu Lucid Lynx

Finally I decided to build Cog on my Ubuntu 10.04 box.


The first step is download the needed sources:

     svn co http://www.squeakvm.org/svn/squeak/branches/Cog/platforms
     svn co http://www.squeakvm.org/svn/squeak/branches/Cog/src
     svn co http://www.squeakvm.org/svn/squeak/branches/Cog/unixbuild



Then, I followed the 3d. instructions from Eliot, because I want to build the VM on a 64-bit OS.

I have an Ubuntu 64 bits without special installations, I mean, installed exactly as the ISO installs, with no special packages selected.

Then, the first step is install the following packages needed to compile in 32-bit mode on 64-bit ubuntu:

     lib32asound2-dev
     libgl1-mesa-dev
     libglu1-mesa-dev
     build-essential
     ia32-libs
     gcc-multilib
     g++-multilib



At this point I run the configuration script, but it failed with an error message for complaining about missing XShm.h. Doing a bit of googling I found that I probably need to do this:

    sudo apt-get install libx11-dev libxpm-dev x11proto-xext-dev libxext-dev  

Again run configure script and this time the error message was for complaining about missing X11/Intrinsic.h. Google found the solution once more time, another no istalled package:

    sudo apt-get install libxt-dev

And now, the configuration script: 


      ../../platforms/unix/config/configure CC="gcc -m32" CXX="g++ -m32" CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0" LIBS=-lpthread

run ok.

Remember to run it from unixbuild/bld directory.

And finally, execute:

    make install prefix=WhereYouWantTheVmToGo

And voila, the Cog vm is built!


Pic information:
http://www.flickr.com/photos/hugo90/1719493630/ / CC BY 2.0