Compiling Ember On Win32

From WorldForgeWiki

Jump to: navigation, search

Contents

Install MinGW

  1. Go to http://www.mingw.org/download.shtml and follow the link to the download area.
  2. Download the latest version of the "automated installer".
  3. Run it and select "download and install"
  4. Select "Current"
  5. Tick the box "g++ compiler" ("MinGW base tools" should already be ticked)
  6. Next, Next, Install and wait, and wait.
  7. Next, Finish.

Install MSYS

  1. Go to http://www.mingw.org/download.shtml and follow the link to the download area.
  2. Download the latest version of the "MSYS Base System".. look for an exe and avoid the "technology preview".. for me the current release was msys-1.0.10.
  3. Run the exe and say "yes" when it asks you if you want to continue.
  4. Next, Yes, Next, agree to the default path (c:\msys\1.0 for me), Next, Next, Install.
  5. The postinstall script will come up, say 'y' for yes, press enter.
  6. It will ask "Do you have MinGW installed?", say 'y' for yes, press enter.
  7. Enter "c:/MinGW" as the installed path, press enter (note the forward slash, not backward).
  8. The setup is now done, press Finish.
  9. Some word documents might pop up, close em.
  10. At this point you should try running MSYS. Start -> Program Files -> MinGW -> MSYS -> msys. It should run and give you a colored terminal window. For me, it didn't.... so I screwed around a lot. Turns out if you are running a 64 bit version of Windows you need to make a new .bat file to call the old one.. see this page for details.. this is apparently fixed in CVS so the next version of MSYS will not have this issue. Personally, I just changed the shortcut in the start menu to this: C:\WINDOWS\SysWOW64\cmd.exe /C C:\msys\1.0\msys.bat
  11. Now you need to modify c:\msys\1.0\etc\fstab and add the line: c:\work /work
  12. Restart your MSYS shell.

Install MSYS Supplementary Tools

  1. Go to http://www.mingw.org/download.shtml and follow the link to the download area.
  2. Download the latest version of the "MSYS Supplementary Tools".. look for an exe and avoid the "technology preview".. for me the current release was msysDTK-1.0.1.exe
  3. Next, Yes, Next, Next, Install, Next, Finish

Install glib for MinGW

  1. Go to http://ftp.gnome.org/pub/gnome/binaries/win32/glib/ and download the latest release (for me it was 2.16, you want the -dev)
  2. Extract the tar.gz to your work dir (for me it is c:\work\ember). Note that this tar.gz doesn't have a parent directory in it, so you need to specify one.
  3. Open an explorer window to c:\work\ember\glib-2.16 (or whatever your dir is)
  4. Select all the directories and press CTRL-C
  5. Open an explorer window to c:\msys\1.0\local, CTRL-V
  6. You will get the "Confirm Folder Replace" dialog, select "Yes to All"

Install gettext for MinGW

  1. Go to ftp://ftp.gnu.org/gnu/gettext and download the latest version (for me it was 0.17).
  2. Extract the tar.gz to your work directory.
  3. In your MSYS shell, cd /work/ember/gettext-0.17/ (or whatever your dir is)
  4. ./configure
  5. make
  6. make install

Install libiconv for MinGW

  1. Go to ftp://ftp.gnu.org/gnu/libiconv and download the latest version (for me it was 1.12).
  2. Extract the tar.gz to your work directory.
  3. In your MSYS shell, cd /work/ember/libiconv-1.12/ (or whatever your dir is)
  4. ./configure
  5. make
  6. make install

Install pkg-config for MinGW

  1. Go to http://pkgconfig.freedesktop.org/releases/ and download the latest release (for me it was 0.23)
  2. Extract the tar.gz to your work dir (for me it is c:\work\ember)
  3. In your MSYS shell, cd /work/ember/pkg-config-0.23/ (or whatever your dir is)
  4. ./configure
  5. make
  6. make install

Install SigC++

  1. Get the latest from http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/
  2. Extract it to your work dir (I'm using c:\work\ember)
  3. WinRAR gave me a warning that I was going to overwrite a file.. just ignore it
  4. in your MSYS shell, cd /work/ember/libsigc++-2.0.18/ (or whatever version you downloaded)
  5. ./configure
  6. make
  7. make install

Install libCURL

  1. Get the latest source from http://curl.haxx.se/download.html
  2. Extract it to your work dir (I'm using c:\work\ember)
  3. In your MSYS shell, cd /work/ember/curl-7.18.0/ (or whatever version you downloaded)
  4. ./configure
  5. make
  6. make install

Get the Worldforge tree

  1. In your MSYS shell, cd /work/ember
  2. cvs -d:pserver:cvsanon:cvsanon@cvs.worldforge.org:/home/cvspsrv/worldforge co forge
  3. cd forge

Install VarConf

  1. In your MSYS shell, cd /work/ember/forge/libs/varconf
  2. ./autogen.sh
  3. ./configure
  4. You might get an error from ./configure regarding pkg-config not being able to find sigc++.. if so, try this: export PKG_CONFIG_PATH='/lib/pkgconfig:/local/lib/pkgconfig'
  5. make
  6. make install

Install SkStream

  1. In your MSYS shell, cd /work/ember/forge/libs/skstream
  2. ./autogen.sh
  3. make
  4. make install

Install Atlas

  1. In your MSYS shell, cd /work/ember/forge/libs/Atlas-C++
  2. ./autogen.sh
  3. ./configure
  4. make
  5. I ran into a warning ".../include/c++/3.4.5/bits/stl_uninitialized.h:82: warning: '__cur' might be used uninitialized in this function" which is treated as an error thanks to -Werror in the Makefile.. so I modified the ./configure script to not have this option and ran ./configure again, and then make.
  6. The atlas_convert tool didn't compile for me.
  7. make install


Install WFMath

  1. In your MSYS shell, cd /work/ember/forge/libs/wfmath
  2. ./autogen.sh
  3. I got errors:
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

Running aclocal  ...
Running autoheader...
' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:844: AC_CONFIG_FILES is expanded from...
configure.ac:79: the top level
autom4te: /bin/m4 failed with exit status: 1
autoheader: /usr/bin/autom4te failed with exit status: 1
Running automake --gnu  ...
' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:844: AC_CONFIG_FILES is expanded from...
configure.ac:79: the top level
autom4te: /bin/m4 failed with exit status: 1
configure.ac: `AM_INIT_AUTOMAKE' must be used
automake: your implementation of AM_INIT_AUTOMAKE comes from an
automake: old Automake version.  You should recreate aclocal.m4
automake: with aclocal and run automake again.
automake: no `Makefile.am' found or specified
Running autoconf ...
' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:844: AC_CONFIG_FILES is expanded from...
configure.ac:79: the top level
autom4te: /bin/m4 failed with exit status: 1
Running ./configure --enable-debug ...
./autogen.sh: ./configure: No such file or directory
Personal tools