EOSERV Wiki > Page: EOSERV From Scratch - Windows > History > Revision Diff

Revision Diff: EOSERV From Scratch - Windows

Revision by at 1st Jan 2016 06:06 pm
DeletionsAdditions
=== Makefile (No IDE) ===
=== CMake ===
'''Note:''' This method of building is liable to be removed in favour of CMake in the future.
==== Installing MinGW-Make ====
Navigate to the EOSERV source directory and type the command '''.\configure mingw''', which will generate the Makefile you need. From then on, you can build EOSERV by typing '''mingw32-make MYSQL=1 SQLITE=1'''.
==== Using CMake ====
You may need to modify Makefile.mgw to locate third-party libraries:
CMake can be downloaded and installed from [[http://cmake.org/]] and comes with a GUI.
* Add '''"-IC:\path\to\include\directory"''' to the end of the CXXFLAGS line to add compiler search directories
* Add '''"-IC:\path\to\lib\directory"''' to the end of the LDFLAGS line to add linker search directories
Use [[http://cmake.org/|CMake]]'s GUI to select a source directory (the directory EOSERV has been extracted to), and a build directory (a directory you want to build EOSERV in). To avoid problems, make sure the build directory is not the same as the source directory.
Click "Configure", and select your toolchain (GCC and Clang should be automatically detected, or compiler paths can be specified manually), and output format (MinGW Makefiles). Various build options can be changed using the GUI (such as toggling MySQL/SQLite support) before clicking "Generate".
If you get any errors about missing libraries, you should use the GUI to manually specify locations to headers and libraries. e.g. SQLITE3_LIBRARY can be set to sqlite3.dll (e.g. "C:\sqlite3\sqlite3.dll"), and SQLITE3_INCLUDES to a path containing sqlite3.h (e.g. "C:\sqlite3\"). If the pthreads library is missing, it should be installed through mingw-get.
==== Building ====
Once the project has been successfully configured, you can build EOSERV by typing '''mingw32-make''' in a command line in the build directory.
EOSERV Wiki > Page: EOSERV From Scratch - Windows > History > Revision Diff