Skip to content

Compiling crashdetect from source

Zeex edited this page Jul 5, 2012 · 2 revisions

To build crashdetect you will need CMake 2.8.6 or newer:

http://www.cmake.org/cmake/resources/software.html

Getting the source code

You have two options:

Building the plugin

Linux

Run these commands in terminal:

cd path/to/crashdetect/root
mkdir build
cd build
cmake ../
make

Windows

  • Ater installing CMake open CMake GUI frontend:

    Start Menu -> All Programs -> CMake 2.8 -> CMake (cmake-gui)

  • Set path to source and output directories, for example:

    • Where is the source code: C:\Users\Zeex\samp-server\crashdetect
    • Where to build binaries: C:\Users\Zeex\samp-server\crashdetect\build
  • Hit Configure. CMake will ask you to choose a generator, select your favourite tool there (leaving "Use native compilers" as is).

  • And finally, press the Generate button.

OK! Now use the tool that you've specified to open/compile generated project(s).

Clone this wiki locally