compile_instructions
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| compile_instructions [2014/03/04 18:59] – created thooge | compile_instructions [2016/12/25 15:03] (current) – [Distribution Specific Notes] thooge | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| Please read all of your platform' | Please read all of your platform' | ||
| + | |||
| + | Compile with: | ||
| + | [[compile_bsd|BSD]] -- | ||
| + | [[compile_linux|Linux]] -- | ||
| + | [[compile_macos|MacOS]] -- | ||
| + | [[compile_windows|Windows]] | ||
| ===== Windows ===== | ===== Windows ===== | ||
| + | |||
| + | Wolfpack requires Python and the Qt library. | ||
| + | If you wish to use MySQL, you will also need to download MySQL. | ||
| + | For detailled instructions see: [[compile_windows|Compiling with Windows]] | ||
| + | |||
| + | ===== Linux ===== | ||
| ==== Requirements ==== | ==== Requirements ==== | ||
| - | Wolfpack requires Python 2.4.x or Python 2.6.x and Nokia' | + | Wolfpack requires Python 2.x and Trolltech' | 
| - | If you wish to use MySQL,  | + | Wolfpack will also require MySQL libraries and headers (aka development package) if you want to use MySQL,  | 
| - | Make sure that the QTDIR enviroment variables  | + | Make sure that the QTDIR and QMAKESPEC  | 
| QTDIR should point to your qt folder, that is, where $QTDIR/ | QTDIR should point to your qt folder, that is, where $QTDIR/ | ||
| + | QMAKESPEC is the platform + compiler identification, | ||
| The examples shown here will also assume that $QTDIR/bin is in your $PATH. | The examples shown here will also assume that $QTDIR/bin is in your $PATH. | ||
| - | === Installing Qt === | + | ==== Generating Makefiles  | 
| + | Go to the folder containing wolfpack folders then do a chmod +x configure to fix the script permission. The configure script will try to locate the headers and libraries required in your system and pass them to qmake to generate a makefile. Some options can be enabled/ | ||
| - | For compiling Qt yourself please follow up the specific instructions from Trolltech. Otherwise just download Qt SDK (LPGL) and install it. Don't forget to set the paths mentioned above. | + |    | 
| - | ==== Generating Makefiles  | + | If you don't have installed the Boost-packages or want them to link statically, you have to build the special boost-library: | 
| - | Go to the folder containing wolfpack folders. Inside the build folder  | + | |
| - |    | + | cd ../boost | 
| - | Now change to the path ../boost and do mingw32-make. After compiling change back to ../build and compile Wolfpack server by typing mingw32-make. That's it. | + | qmake | 
| + | make | ||
| + | |||
| + | Debian GNU/Linux [[Client]]: (In the moment you have to add a path to your Python include files e.g. / | ||
| + | |||
| + | Finally | ||
| + | make | ||
| + | make install | ||
| + | |||
| + | ==== Distribution Specific Notes ==== | ||
| + | |||
| + | === Debian === | ||
| + | |||
| + | * Recommended that you use at least Debian 8.x Jessie | ||
| + |   * QT4 Packages: '' | ||
| + |   * Python Packages: '' | ||
| + |   * Boost: '' | ||
| + |   * OpenAL Packages: '' | ||
| + |    | ||
| + |   * MySQL Packages: '' | ||
| - | PS: You can also run make, nmake or mingw-make depending on your compiler. We recommend mingw32-make as it comes with Qt. | + | The '' | 
| + | to your '' | ||
| - | ==== Compiler Specific Notes ==== | + | You don't need to add '' | 
| - | Unfortunally, | + | update-alternatives --config lrelease | 
| + | update-alternatives --config lupdate | ||
| + | update-alternatives --config moc | ||
| + | update-alternatives --config qmake | ||
| + | update-alternatives --config uic | ||
| - | === MinGW === | + | ===== MacOS X ===== | 
| - | Python doesn' | + | |
| - | To do so, you will need to download pexports.exe ( pexports 0.42h ). Extract it somewhere in your PATH, as a suggestion, use MingW' | + | see [[compile_macos]] | 
| - | cd \Python24\libs | + | |
| - |   pexports c: | + | |
| - | dlltool --dllname python24.dll --def python24.def --output-lib libpython24.a | + | |
| - | If you want to enable MySQL support, you will have to take similar steps to build an import library to mysql.  | + | |
compile_instructions.1393959593.txt.gz · Last modified: 2014/03/04 18:59 by thooge
                
                