-
Notifications
You must be signed in to change notification settings - Fork 5
Build (Windows)
These instructions describe how to build greentop using Microsoft Visual Studio 2015.
Greentop needs libcurl with zlib and ssl support. Binaries for windows are available at https://curl.haxx.se/download.html, at time of writing the most recent version is 7.59.0. Download and unpack it to say C:\projects. You will also need the headers so download the source curl-7.59.0.zip and unpack it to C:\projects as well. You should now have the libcurl headers in C:\projects\curl-7.59.0\include and binaries in C:\projects\curl-7.59.0\I386, C:\projects\curl-7.59.0\IA64, C:\projects\curl-7.59.0\AMD64.
Greentop also needs jsoncpp, a library for manipulating JSON. Download the latest release and unpack it to C:\projects. Now open Visual Studio's Developer Command Prompt and type:
cd C:\projects\jsoncpp-1.8.4
cmake -G "Visual Studio 14 2015"
cmake --build . --config Release
If the build succeeded you will have the jsoncpp static library at C:\projects\jsoncpp-1.8.4\src\lib_json\Release\jsoncpp.lib.
Now clone the greentop repository in C:\projects and build:
cd C:\projects
git clone https://github.com/captain-igloo/greentop.git
cd greentop
msbuild greentop.sln /t:greentop /p:Configuration=Release /p:Platform="x86"
The greentop static library will be written to C:\projects\greentop\Release\greentop.lib.