Marcel,
Thanks very much for posting this. It is very helpful to have an up to date recipe for building on Windows.
Dave
On Tue, Sep 24, 2013 at 12:43:27AM -0700, Marcel Taeumel wrote:
Hi, there! ---
As Cygwin seems to be not offering gcc-v3 mirrors anymore, here is a step-by-step tutorial to build the CogVM for Windows 7 machines (and later, I suppose) using MSYS:
- Install the "MinGW Package Download and Installation Tool"
http://www.mingw.org http://sourceforge.net/projects/mingw/files/Installer/! Remember your installation path, e.g. C:\MinGW- Run it and install the following classified under "Basic Setup":
msys-base mingw32-base- Run MSYS and setup PATH variable:
EITHER make /mingw/bin accessible (e.g. add symbolic link to /c/MinGW) OR add /c/MinGW/bin to PATH (=> my choice)- Install or downgrade the following packages via MSYS (close the MinGW installation tool first). If you downgrade, you may have to uninstall the current version first:
DOWN: mingw32-binutils 2.22-1 (fix windres.exe behavior) NEW: mingw32-gcc-v3-core 3.4.5-20060117-3 NEW: mingw32-gcc-v3-g++ 3.4.5-20060117-3 DOWN: mingw32-mingwrt 3.20-2 (needed for linking gcc-v3 object files) DOWN: mingw32-w32api 3.17-2 (needed for linking gcc-v3 object files)! MSYS command example: "mingw-get --install reinstall binutils=2.22-1"- Checkout SVN repository with CogVM source
http://squeakvm.org/svn/squeak/branches/Cog! Remember your checkout path, e.g. C:\Tools\cogvm- Adapt /c/Tools/cogvm/cygwinbuild/Makefile
Adapt -L option for LDFLAGS and CONSOLELDFLAGS to your MSYS environment Maybe exchange --export-dynamic with --export-all-symbols- Adapt /c/Tools/cogvm/cygwinbuild/plugins.ext
Remove BochsIA32Plugin because it will not build- Adapt /c/Tools/cogvm/cygwinbuild/Squeak.rc if needed, e.g.:
Use custom icons and descriptions to identify your build artifactlater on :)- Run the script ./c/Tools/cogvm/cygwinbuild/mvm
chmod +x it if neededIt should build fine with the results added to cygwinbuild/build*.
Best, Marcel
-- View this message in context: http://forum.world.st/HowTo-Compile-CogVM-for-Windows-7-using-MinGW-MSYS-tp4... Sent from the Squeak VM mailing list archive at Nabble.com.