<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.sim-im.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chehrlic</id>
	<title>Sim-Im - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.sim-im.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chehrlic"/>
	<link rel="alternate" type="text/html" href="http://www.sim-im.org/index.php?title=Special:Contributions/Chehrlic"/>
	<updated>2026-04-26T00:40:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>http://www.sim-im.org/index.php?title=Compilation&amp;diff=1931</id>
		<title>Compilation</title>
		<link rel="alternate" type="text/html" href="http://www.sim-im.org/index.php?title=Compilation&amp;diff=1931"/>
		<updated>2006-07-15T10:16:28Z</updated>

		<summary type="html">&lt;p&gt;Chehrlic: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float: right;&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SVN snapshots compilation===&lt;br /&gt;
To build SIM you should have automake-1.5 and autoconf-2.53, however, autoconf 2.13 works too, you just need to hack admin/cvs.sh to turn off &amp;quot;exit 1&amp;quot; on version check. Note that you will be unable to compile icq plugin without SSL support.&lt;br /&gt;
&lt;br /&gt;
====Requirements====&lt;br /&gt;
*[http://www.zlib.net/ zlib ]&lt;br /&gt;
*[http://xmlsoft.org/ libxml2 ]&lt;br /&gt;
*[http://xmlsoft.org/XSLT/ libxslt ]&lt;br /&gt;
*[http://www.openssl.org/ OpenSSL ]&lt;br /&gt;
*[http://www.perl.org/ Perl ]&lt;br /&gt;
*[http://www.info-zip.org/pub/infozip/Zip.html#Win32 zip]&lt;br /&gt;
*[http://www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html flex]&lt;br /&gt;
*[http://www.trolltech.com QT]&lt;br /&gt;
*[http://www.kde.org KDE] - optional&lt;br /&gt;
*[http://aspell.net/ aspell] - Optional, for spellchecker plugin&lt;br /&gt;
&lt;br /&gt;
====Compilation====&lt;br /&gt;
* make -f admin/Makefile.common&amp;lt;br&amp;gt;&lt;br /&gt;
* ./configure --prefix=&amp;lt;your_installation_path&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
* make&amp;lt;br&amp;gt;&lt;br /&gt;
* sudo make install&amp;lt;br&amp;gt;&lt;br /&gt;
* Start SIM :-)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See &amp;quot;./configure --help&amp;quot; for more options, specially for --enable-final and --disable-debug.&lt;br /&gt;
&lt;br /&gt;
To compile plugins you should run:&lt;br /&gt;
* cd plugins/&amp;lt;plugin_name&amp;gt;&lt;br /&gt;
* make&lt;br /&gt;
* sudo make install&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===MINGW compilation===&lt;br /&gt;
&lt;br /&gt;
====Requirements====&lt;br /&gt;
*[http://mingw.org/download.shtml Mingw and Msys]&lt;br /&gt;
*[http://sourceforge.net/projects/qtwin Q..3/Windows ]&lt;br /&gt;
*[http://www.zlib.net/ zlib ]&lt;br /&gt;
*[http://xmlsoft.org/ libxml2 ]&lt;br /&gt;
*[http://xmlsoft.org/XSLT/ libxslt ]&lt;br /&gt;
*[http://www.openssl.org/ OpenSSL ]&lt;br /&gt;
*[http://www.activestate.com/Products/ActivePerl/?mp=1 Perl ]&lt;br /&gt;
*[http://www.info-zip.org/pub/infozip/Zip.html#Win32 zip]&lt;br /&gt;
*[http://sourceforge.net/project/showfiles.php?group_id=23617&amp;amp;package_id=16424 flex]&lt;br /&gt;
*[http://aspell.net/win32/ aspell] - Optional, for spellchecker plugin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Toolchain setup====&lt;br /&gt;
*Install Mingw. You need to install gcc-core, g++, binutils, w32api, mingw32-make. Add mingw's bin directory to %PATH%&lt;br /&gt;
*Install Msys. You need MSYS-1.0.10.exe&lt;br /&gt;
*Compile Q..3/Windows. Extract sources somewhere. Then create dirs &amp;quot;include&amp;quot;, &amp;quot;include/private&amp;quot; in this folder. Then run configure-mingw.bat. Add Q..3's bin directory to %PATH%&lt;br /&gt;
*Compile and install zlib. specify --prefix=/mingw option to ./configure script, then make&amp;amp;&amp;amp;make install.&lt;br /&gt;
*Compile and install libxml2. specify --prefix=/mingw option to ./configure script, then make&amp;amp;&amp;amp;make install.&lt;br /&gt;
*Compile and install libxslt. specify --prefix=/mingw option to ./configure script, then make&amp;amp;&amp;amp;make install.&lt;br /&gt;
*Compile and install OpenSSL. Extract sources, then run &amp;quot;ms\mingw32 no-asm&amp;quot;. Then install as specified in INSTALL.W32 file into your Mingw installation dir. &lt;br /&gt;
*Install Perl. Add Perl's bin directory to %PATH%&lt;br /&gt;
*Install zip. Extract and put zip.exe in some dir in your %PATH%&lt;br /&gt;
*Install Flex. Extract and put flex.exe in some dir in your %PATH%.&lt;br /&gt;
*Install Aspell. You need this only if you want to compile spell plugin. Download development package for win32 aspell. Then extract include folder into mingw root folder, then put lib\libaspell-15-dll.lib into lib\libaspell.a, lib\libpspell-15-dll.lib into lib\libpspell.la in mingw root folder.&lt;br /&gt;
&lt;br /&gt;
====Compilation and Installation====&lt;br /&gt;
*make -f admin/Makefile.common unfortunally doesn't work under Msys. This must be performed under Cygwin or some other *nix environment.&lt;br /&gt;
*./configure --disable-kde --enable-win --with-qt-dir=... --with-ssl-dir=...&lt;br /&gt;
*make&lt;br /&gt;
*make INSTALL=install DESTDIR=/yor/destdir. After this you must manually put sim files in this layout:&lt;br /&gt;
/icons &amp;lt;br&amp;gt;&lt;br /&gt;
/pict &amp;lt;br&amp;gt;&lt;br /&gt;
/plugins &amp;lt;br&amp;gt;&lt;br /&gt;
/po &amp;lt;br&amp;gt;&lt;br /&gt;
/sounds &amp;lt;br&amp;gt;&lt;br /&gt;
/styles &amp;lt;br&amp;gt;&lt;br /&gt;
/libsim-0.dll &amp;lt;br&amp;gt;&lt;br /&gt;
/sim.exe &amp;lt;br&amp;gt;&lt;br /&gt;
*Or you can compile [http://nsis.sourceforge.net/Main_Page NSIS] installer script install_win32\mingw\sim.nsi&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===Win32-MSVC compilation===&lt;br /&gt;
&lt;br /&gt;
====Requirements====&lt;br /&gt;
* TortoiseSVN for getting the Sources&lt;br /&gt;
* Visual C++ 2005 Express + Platform SDK Core 2003&lt;br /&gt;
*[http://qtwin.sf.net Q/Free (Q../free 3.3.*.*) ]&lt;br /&gt;
*[http://www.zlib.net/ zlib ] [1]&lt;br /&gt;
*[http://xmlsoft.org/ libxml2 ] [1]&lt;br /&gt;
*[http://xmlsoft.org/XSLT/ libxslt ] [1]&lt;br /&gt;
*[http://www.openssl.org/ OpenSSL ] [1]&lt;br /&gt;
*[http://www.gnu.org/software/libiconv/ iconv ] [1] ( [1:] which are already in Project now.)&lt;br /&gt;
*[http://java.sun.com Java Runtime (jar.exe) ] for creating the jisp's, add jre\bin or jdk\bin to path&lt;br /&gt;
or&lt;br /&gt;
*[http://fastjar.sourceforge.net/ fastJar ] for creating the jisp's, %pathToFastJar% to path&lt;br /&gt;
*[http://www.gnu.org/software/bison/ Bison ] &amp;amp;&amp;amp; [http://flex.sourceforge.net/ Flex ] for lexing the .ll files&lt;br /&gt;
*[http://aspell.net/ aspell] - Optional, for spellchecker plugin&lt;br /&gt;
&lt;br /&gt;
====Compilation and Installation====&lt;br /&gt;
*Compile Q..3/Windows. Extract sources somewhere. Then create dirs &amp;quot;include&amp;quot;, &amp;quot;include/private&amp;quot; in this folder. Then run configure-msvc2005.bat -debug (or without Release). Add Q..3's bin directory to %PATH%&lt;br /&gt;
* Build qt3\tools\msg2qm &lt;br /&gt;
* Put msg2qm.exe in path for compiling the po-files or simple copy it to %windir%\system32\ .&lt;br /&gt;
*Compile and install zlib. specify --prefix=c:/libs option to ./configure script, then make&amp;amp;&amp;amp;make install.&lt;br /&gt;
*Compile and install libxml2. specify --prefix=c:/libs option to ./configure script, then make&amp;amp;&amp;amp;make install.&lt;br /&gt;
*Compile and install libxslt. specify --prefix=c:/libs option to ./configure script, then make&amp;amp;&amp;amp;make install.&lt;br /&gt;
*Compile and install OpenSSL. Extract sources, then run &amp;quot;ms\msvc no-asm&amp;quot;. Then install as specified in INSTALL.W32. &lt;br /&gt;
&lt;br /&gt;
* Environment vars (examples) to set:&lt;br /&gt;
&lt;br /&gt;
** QTDIR=&amp;quot;C:\qt3&amp;quot;&lt;br /&gt;
** QTLIB=&amp;quot;qt-mt3.lib&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Environment vars (examples):&lt;br /&gt;
** QTDIR=&amp;quot;C:\qt3&amp;quot;&lt;br /&gt;
** Path=%Path%;%QTDIR%\bin&lt;br /&gt;
** QTLIB=&amp;quot;qt-mt3.lib&amp;quot;&lt;br /&gt;
** OPENSSL_DIR=&amp;quot;c:\openssl&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Visual C++ Configuration:&lt;br /&gt;
** set Executable Directories&lt;br /&gt;
*** Java-jdk\bin&lt;br /&gt;
&lt;br /&gt;
** set Include Directories&lt;br /&gt;
*** FLEX-2.5.4A-1-BIN\INCLUDE (or newer version)&lt;br /&gt;
*** aspell-0.60.2\interfaces\cc&lt;br /&gt;
&lt;br /&gt;
** set Library Directories:&lt;br /&gt;
****%QTDIR%\Lib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
===compilation with CMake===&lt;br /&gt;
&lt;br /&gt;
====Requirements====&lt;br /&gt;
* [http://tortoisesvn.tigris.org/ TortoiseSVN for getting the Sources]&lt;br /&gt;
* [http://www.cmake.org/ CMake 2.4.2]&lt;br /&gt;
* Qt3 for your platform&lt;br /&gt;
* A supported compiler (linux: gcc, win32: MinGW, Visual Studio &amp;gt;= 7)&lt;br /&gt;
* LibXML2&lt;br /&gt;
* LibXSLT&lt;br /&gt;
* Iconv (when you want to compile SIM-IM on win32)&lt;br /&gt;
* OpenSSL (optional, required for some plugins)&lt;br /&gt;
* ASpell (optional, required for spell plugin)&lt;br /&gt;
&lt;br /&gt;
* Once you've installed all requried packages, make sure you've set the following environment variables correct-&lt;br /&gt;
** QTDIR (the path to your Qt3 installation)&lt;br /&gt;
** CMAKE_INCLUDE_PATH (all paths to the headers of the installed packages - for exmaple D:\Programme\GnuWin32\Include;D:\Programme\OpneSSL\Include)&lt;br /&gt;
** CMAKE_LIBRARY_PATH (all paths to the libraries of the installed packages - for exmaple D:\Programme\GnuWin32\Lib;D:\Programme\OpenSSL\Lib\MSVC)&lt;br /&gt;
&lt;br /&gt;
* After you've checked out the sources, create a new directory 'sim-im-build'.&lt;br /&gt;
* Now you can call cmake (or cmakesetup on win32) by switching into 'sim-im-build':&lt;br /&gt;
** cmake ..\sim-im&lt;br /&gt;
&lt;br /&gt;
* When cmake is ready and all required packages were found you can start compiling sim with 'make' (or mingw-32make or nmake)&lt;/div&gt;</summary>
		<author><name>Chehrlic</name></author>
	</entry>
</feed>