Skip to content

x_dev Old CMake

nitr8 edited this page May 17, 2018 · 1 revision

note: this method is on longer supported!

Old - please see conan instructions

  1. Download and install CMake.

For Windows, use the msi-installer or zip. The preferred way for Unix like systems is the local appmanager. Only if you are familiar with building, download the source and build it yourself.

Now you have 2 choices: the gui, or the terminal.

If you are more Windows user, go with the GUI, otherwise, the terminal is the way to go.

Terminal

  1. Open your terminal and navigate to the root folder of creepMiner

  2. Execute the following command

cmake CMakeLists.txt
    -DCMAKE_BUILD_TYPE={DEBUG|RELEASE|MINSIZEREL|RELWITHDEBINFO}
    [-b <your/binary/path>]
    [-DCMAKE_INSTALL_PREFIX:PATH=<your/install/path>]
    [-DNO_GPU={ON|OFF}]
    [-DMINIMAL_BUILD={ON|OFF}]
    [-DUSE_SSE4={ON|OFF}]
    [-DUSE_AVX={ON|OFF}]
    [-DUSE_AVX2={ON|OFF}]
    [-DUSE_CUDA={ON|OFF}]
    [-DUSE_OPENCL={ON|OFF}]

Paramters that are inside [...] are optional.

PLEASE USE CMAKE_BUILD_TYPE=RELEASE! The other options are for developers.

  1. After cmake is done, change the directory to your output path (paramter -b).

If you did not enter a output path, you dont need to do this step.**

  1. enter make and wait till creepMiner is compiled

  2. If you want, enter make install

This will install all necessary files into your binary path (-DCMAKE_INSTALL_PREFIX:PATH)

GUI

Startup CMake GUI.

cmake

  1. Navigate to the root folder of your creepMiner

  2. Navigate to the output folder, where the project files will be deployed

  3. Click on configure

  4. Configure your creepMiner project by changing the options

You need OpenSSL and POCO! Look at this wiki page for further instructions.

  1. Configure it again

  2. Generate the project

Now you can switch to the output folder and build the project.

CMake Flags

CMAKE_INSTALL_PREFIX

After you successfully built your project, you can install it. The installation will copy necessary files and the executable into this folder.

OVERWRITE_MINING_CONF

This flag determines, if the configuration file will be also copied (and overwritten) on install (not build).

USE_***

The USE_*** flags indicate the usage of the specific feature. The default value for all flags is ON, so every feature is enabled when not declared explicitly.

NO_GPU

This flag disables the compilation and usage of a GPU. When ON, USE_CUDA and USE_OPENCL will be set to OFF.

MINIMAL_BUILD

This flag disables all features. When MINIMAL_BUILD is set to ON, all USE_*** flags will be set to OFF.