"planner2d" links to target "Boost::serialization" but the target was not found
t-thanh opened this issue · 1 comments
t-thanh commented
Hi,
I tried to compile the code following the instruction, when running cmake
, I got this error:
CMake Error at /usr/local/share/cmake/pybind11/pybind11Tools.cmake:151
(add_library):
Target "planner2d" links to target "Boost::serialization" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:37 (pybind11_add_module)
If I neglect the error and make
anyway, then I got this error of linking libraries:
[ 4%] Linking CXX shared module planner2d.cpython-38-x86_64-linux-gnu.so
/usr/bin/ld: cannot find -lBoost::serialization
/usr/bin/ld: cannot find -lBoost::system
/usr/bin/ld: cannot find -lBoost::filesystem
/usr/bin/ld: cannot find -lBoost::thread
/usr/bin/ld: cannot find -lBoost::date_time
/usr/bin/ld: cannot find -lBoost::regex
/usr/bin/ld: cannot find -lBoost::timer
/usr/bin/ld: cannot find -lBoost::chrono
collect2: error: ld returned 1 exit status
My PC: Ubuntu 20.04, libboost-all-dev is installed, previous steps of installed pytorch, gtsam, and pybind11 are done.
t-thanh commented
There is problem with loading boost libraries in Ubuntu 20.04. Issue not appeared in Ubuntu 18.04. Closed for now.