Difference between revisions of "Compilation"

From Sim-Im
Jump to navigation Jump to search
(Add Mingw compilation instructions)
Line 6: Line 6:
 
4. make install<br>
 
4. make install<br>
 
5. Start SIM :-)<br>
 
5. Start SIM :-)<br>
 +
 +
----
 +
'''MINGW compilation:'''
 +
 +
''Requirements:''
 +
*[http://mingw.org/download.shtml Mingw and Msys]
 +
*[http://sourceforge.net/projects/qtwin Q..3/Windows ]
 +
*[http://www.zlib.net/ zlib ]
 +
*[http://xmlsoft.org/ libxml2 ]
 +
*[http://xmlsoft.org/XSLT/ libxslt ]
 +
*[http://www.openssl.org/ OpenSSL ]
 +
*[http://www.activestate.com/Products/ActivePerl/?mp=1 Perl ]
 +
*[http://www.info-zip.org/pub/infozip/Zip.html#Win32 zip]
 +
*[http://www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html flex]
 +
 +
''Toolchain setup:''
 +
*Install Mingw. You need to install gcc-core, g++, binutils, w32api, mingw32-make. Add mingw's bin directory to %PATH%
 +
*Install Msys. You need MSYS-1.0.10.exe
 +
*Compile Q..3/Windows. Extract sources somewhere. Then create dirs "include", "include/private" in this folder. Then run configure-mingw.bat. Add Q..3's bin directory to %PATH%
 +
*Compile and install zlib. specify --prefix=/mingw option to ./configure script, then make&&make install.
 +
*Compile and install libxml2. specify --prefix=/mingw option to ./configure script, then make&&make install.
 +
*Compile and install libxslt. specify --prefix=/mingw option to ./configure script, then make&&make install.
 +
*Compile and install OpenSSL. Extract sources, then run "ms\mingw32 no-asm". Then install as specified in INSTALL.W32 file into your Mingw installation dir.
 +
*Install Perl. Add Perl's bin directory to %PATH%
 +
*Install zip. Extract and put zip.exe in some dir in your %PATH%
 +
*Install Flex. Extract and put flex.exe in some dir in your %PATH%.
 +
 +
''Compilation and Installation''
 +
*make -f admin/Makefile.common unfortunally doesn't work under Msys. This must be performed under Cygwin or some other *nix environment.
 +
*./configure --disable-kde --enable-win --with-qt-dir=... --with-ssl-dir=...
 +
*make
 +
*make INSTALL=install DESTDIR=/yor/destdir. After this you must manually put sim files in this layout:
 +
/icons <br>
 +
/pict <br>
 +
/plugins <br>
 +
/po <br>
 +
/sounds <br>
 +
/styles <br>
 +
/libsim-0.dll <br>
 +
/sim.exe <br>

Revision as of 16:23, 27 January 2006

SVN snapshots compilation:

1. make -f admin/Makefile.common
2. ./configure
3. make
4. make install
5. Start SIM :-)


MINGW compilation:

Requirements:

Toolchain setup:

  • Install Mingw. You need to install gcc-core, g++, binutils, w32api, mingw32-make. Add mingw's bin directory to %PATH%
  • Install Msys. You need MSYS-1.0.10.exe
  • Compile Q..3/Windows. Extract sources somewhere. Then create dirs "include", "include/private" in this folder. Then run configure-mingw.bat. Add Q..3's bin directory to %PATH%
  • Compile and install zlib. specify --prefix=/mingw option to ./configure script, then make&&make install.
  • Compile and install libxml2. specify --prefix=/mingw option to ./configure script, then make&&make install.
  • Compile and install libxslt. specify --prefix=/mingw option to ./configure script, then make&&make install.
  • Compile and install OpenSSL. Extract sources, then run "ms\mingw32 no-asm". Then install as specified in INSTALL.W32 file into your Mingw installation dir.
  • Install Perl. Add Perl's bin directory to %PATH%
  • Install zip. Extract and put zip.exe in some dir in your %PATH%
  • Install Flex. Extract and put flex.exe in some dir in your %PATH%.

Compilation and Installation

  • make -f admin/Makefile.common unfortunally doesn't work under Msys. This must be performed under Cygwin or some other *nix environment.
  • ./configure --disable-kde --enable-win --with-qt-dir=... --with-ssl-dir=...
  • make
  • make INSTALL=install DESTDIR=/yor/destdir. After this you must manually put sim files in this layout:

/icons
/pict
/plugins
/po
/sounds
/styles
/libsim-0.dll
/sim.exe