Could not find the following Boost libraries: boost_system

后端 未结 2 1904
独厮守ぢ
独厮守ぢ 2020-12-19 14:53

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

相关标签:
2条回答
  • 2020-12-19 15:06

    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.

    0 讨论(0)
  • 2020-12-19 15:21

    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.

    0 讨论(0)
提交回复
热议问题