我正在尝试设置本节目 (vocus2)
我在 cmake 之后安装了 boost 和 opencv。我收到了确认
-- Boost 版本:1.46.1
-- 发现以下 Boost 库:
-- 序列化
但当我这样做后,我得到了错误
CMakeFiles/vocus2.dir/src/main.cpp.o: In function `boost::archive::xml_iarchive::xml_iarchive(std::istream&, unsigned int)':
/usr/local/boost_1_46_1/boost/archive/xml_iarchive.hpp:149: undefined reference to `boost::archive::detail::shared_ptr_helper::shared_ptr_helper()'
CMakeFiles/vocus2.dir/src/main.cpp.o: In function `boost::archive::xml_iarchive::~xml_iarchive()':
/usr/local/boost_1_46_1/boost/archive/xml_iarchive.hpp:151: undefined reference to `boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'
collect2: error: ld returned 1 exit status
CMakeFiles/vocus2.dir/build.make:140: recipe for target 'vocus2' failed
make[2]: *** [vocus2] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/vocus2.dir/all' failed
make[1]: *** [CMakeFiles/vocus2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2