Disclaimer: I used these instructions and the ubuntu_mvm script to build a Newspeak VM. However, this should be easily adaptable to a Squeak Cog build. It probably works on other modern linux systems, but I haven't tested any other distro. Please tell me if it does (not) work for you.
-
svn co http://www.squeakvm.org/svn/squeak/branches/Cog
Note:
git svn clone -r 2701 http://www.squeakvm.org/svn/squeak/branches/Cog
didn't gave me a sane state (files missing) -
sudo apt-get install libasound2-dev:i386
sudo apt-get install build-essential ia32-libs gcc-multilib g++-multilib
libc6-i386 libc6-dev-i386 libx11-dev:i386 libbsd-dev:i386 uuid-dev:i386
libice-dev:i386 libxext-dev:i386 mesa-common-dev:i386 libsm-dev:i386 libgl1-mesa-dev:i386
libssl-dev:i386 libfreetype6-dev:i386 libpng12-dev:i386 libxt-dev:i386 libbsd-dev:i386I listed all libraries I installed while trying to make the configure checks happy. You might not need all of them.
-
download SqueakV41.sources (http://www.squeakvm.org/unix/release/SqueakV41.sources.gz)
-
put the sources in ~/Squeak/ or specify the path in the ubuntu_mvm script
-
use the ubuntu_mvm script (Ubuntu 12.10 64bit tested)
- nscogbuild/unixbuild/HowToBuild in your svn checkout
- nscogbuild/README in your svn checkout
- http://comments.gmane.org/gmane.comp.lang.smalltalk.pharo.devel/75198 (pharo specific, they use cmake)
- http://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/ (pharo specific, they use cmake)