Compilation & Installation

Gordon Mohrin edited this page Jun 17, 2017 · 9 revisions

Compilation

If you want to compile the project by yourself, please read the following informations carefully.

Dependencies

The project uses the following POCO C++ libraries (version 1.7.6+):

  • Net
  • Foundation
  • NetSSL
  • Crypto
  • Util
  • JSON

You have to build and install them on your system to compile the project by yourself.

The sources can be found on the Homepage of POCO. Be sure to download the Complete Edition.

If you want to use the CUDA version of creepMiner, CUDA needs to be installed.

Poco on Linux

On Linux, the shared versions of Poco are used.

You can execute the shell script install_poco.sh for downloading and installing Poco. Before calling the script, ensure you have the dependencies for Poco installed (OpenSSL development headers, should be pre installed on most systems).

Poco on Windows

On Windows, the static versions of Poco are used.

While the installation and usage of Poco on Linux is pretty simple, on Windows you have to do some additional work.

After everything is done, you have to add an environment variable, that points to the location of Poco.

Here you can find a simple tutorial for setting environment variables.

The name for the variable must be POCO_ROOT and have to target the root directory of Poco.

Don't forget to install VCRedist2015 and VCRedist2013.

POCO on macOS

On macOS, the shared versions of Poco are used.

Just use Homebrew to install Poco:

brew install poco

OpenSSL on macOS

You can use Homebrew to install OpenSSL developer headers:

brew install openssl
ln -s /usr/local/opt/openssl/include/openssl /usr/local/include/openssl

CUDA on Windows

Like for Poco, CUDA needs an environment variable too.

The name for the variable must be CUDA_ROOT and have to target the root directory of CUDA.

Building on Linux

In the root directory, you can call the following commands:

make (all): build the project, output dir is /bin
make clean: remove the compiled data in /bin

If you want to run the creepMiner as a service, add the following parameter to your make command.

make ... LOGGING=service

Also have a look at the Compilation & Installation in Debian Linux wiki page.

Building on Windows

Open the Visual Studio (2015) project creepMiner.sln and compile the project you need.

Building on macOS

You need to install CMake, for example with Homebrew:

brew install cmake

Then compile using terminal:

cmake -DCMAKE_BUILD_TYPE=Release .
make

Or open CMakeLists.txt with Qt Creator and compile the project you need.

Building with CMake

Alternativly you can build the project with CMake. Just use the CMakeLists in the root directory.