Free and Open Source real time strategy game with a new take on micro-management

Mingw compilation

From Globulation2

Revision as of 15:21, 25 January 2006 by Ion bidon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Compile globulation2 on windows using mingw

  1. install MinGW-3.1.0-1.exe in a directory (Mingw download page)
  2. install MSYS-1.0.10.exe in the same directory (Mingw download page)
    -follow the steps of the installer and at the end it will ask you in a console if you have mingw installed. You must say yes and after, indicate the directory where it is installed.
  3. install msysDTK-1.0.1.exe in the same directory that you installed mingw and msys (Mingw download page)
  4. run msys.bat from the installation directory
  5. download [Media:Glob2_required_libs_mingw.tar.bz2]
  6. untar the libraries like this :
    • tar jxf glob2_required_libs_mingw.tar.bz2 -C /
  7. download glob2 cvs (as anonymous for example) :
    • export CVS_RSH="ssh"
    • cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/glob2 co glob2
  8. prerequisites before compiling glob2 :
    • cd glob2
    • cp /usr/bin/SDL.dll /usr/bin/libvorbis-0.dll /usr/bin/libogg-0.dll /usr/bin/libvorbisenc-2.dll /usr/bin/libfreetype-6.dll .
    • change in configure.in :
      CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
         with
      CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include/freetype2"
      LDFLAGS="$LDFLAGS `sdl-config --libs` -lSDL_ttf"
  9. compiling glob2 :
    • ./bootstrap
    • ./configure
    • make
  10. To make the executable smaller :
    • strip ./src/glob2.exe

Test globulation2 on windows :

  1. type wget ... to download [Media:glob2_runtime.tar.bz2]
  2. extract it with
    • tar jxf glob2_runtime.tar.bz2
  3. go in the glob2 directory where you have compiled glob2 and type
    • ./syncdata
    • ./syncmaps
  4. copy the content of glob2/data/ to glob2_runtime/data/
  5. copy the content of glob2/maps/ to glob2_runtime/maps/
  6. copy glob2.exe which is in the src directory (glob2/src/) to glob2_runtime/
  7. run glob2.exe from the glob2_runtime directory and play :)
Misc