I want to build this repository: https://github.com/reo7sp/tgbot-cpp.
It is an API for managing Telegram bots. The needed dependencies are openssl, zlib, boost. Curl
According to your comments, the location for Boost is D:/Programme/Boost/boost_1_69_0/stage/lib
, but you set it to D:/Programme/Boost/boost_1_69_0/lib
.
Anyway, Boost can be found if you set (usually manually, in the CMake UI rather than in the CMakeLists.txt file) BOOST_ROOT
to D:/Programme/Boost/boost_1_69_0
with FIND_PACKAGE(Boost)
.
This will in turn set all the Boost_*
variables that you need to use.
Use the same command to build and install Boost.
bjam install --prefix=D:/Programme/Boost/boost_1_69_0 --with-system --with-date_time --with-random link=static runtime-link=shared threading=multi
In windows, Boost creates another sub directory under include. It should be something like this.
D:/Programme/Boost/boost_1_69_0/include/boost-1_69
Move all files in D:/Programme/Boost/boost_1_69_0/include/boost-1_69
to D:/Programme/Boost/boost_1_69_0/include/
(Move the contents up to one directory)
Now set the BOOST_ROOT
in CMake project to D:/Programme/Boost/boost_1_69_0
.
It should work now.