Skip to content

1. Compilation & Linking

Brandan Lasley edited this page Aug 28, 2018 · 1 revision

If you're using precompiled Monero Tipbot you can skip to Setup.

Basic Information

Monero Tipbot uses the following compiled dependencies

  • POCO C++ Libraries 1.9.0
  • Sleepy-Discord 0cab605
  • OpenSSL 1.0.2g
  • libcurl4 w/ OpenSSL

All of these libraries are precompiled for you. For any newer OpenSSL version or libcurl sleepy-discord will have to be manually recompiled. To manually recompile you must clone sleepy-discord and compile it from this link. Then you should place the new headers in extern/sleepy-discord/include/ and the new .lib or .a file in extern/sleepy-discord/lib/.

Requires at minimum a compiler with C++14 support.

Optional Defines

NO_CHAISCRIPT -- This will disable the scripting engine from being compiled which will speed up complication greatly. However, you won't be able to use scripts.

Windows (Visual Studio)

Monero Tipbot is tested and developed on Visual Studio 2017. Any other version of Visual Studio is not supported as Visual Studio 2017 is the first Visual Studio with cmake. However, if older Visual Studio versions is needed the sln can be generated from cmake-gui (can be downloaded from here)

Compiling and linking on Visual Studio is simple. To compile on Visual Studio 2017 in the top left click File select Open then select CMake then navigate to where Monero Tipbot is and click CMakeLists.txt. Change the default build mode from x86-Debug to x86-Release and build. Everything should be configured to work out of the box after that point.

It is required to place the dlls from extern\poco-1.9.0\bin in the same folder where Tipbot is compiled.

Note: x64-Release and x64-Debug is not supported due to issues with sleepy-discord.

Linux (CMake)

Navigate to where Monero Tipbot is located. Execute the command cmake . which will configure Tipbot in the default configuration which is release mode or cmake . -DNO_CHAISCRIPT for no script engine. Then to build Tipbot type make and Tipbot will automatically build to the current directory with an output file name TIPBOT

Clone this wiki locally