环境是ubuntu 12,我试图编译 pnnet-只读 包,显示在此链接中: https://code.google.com/p/pnnet/
执行以下操作后:
mkdir build
cd build
cmake ..
我有这个问题:
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- thread
-- serialization
-- Adding files to build library
-- Adding files to build library
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_SERIALIZATION_LIBRARY (ADVANCED)
linked by target "pann" in directory /home/bon/pnnet-read-only/src/pann
linked by target "pann-shit" in directory /home/bon/pnnet-read-only/src/pann-shit
Boost_THREAD_LIBRARY (ADVANCED)
linked by target "pann" in directory /home/bon/pnnet-read-only/src/pann
linked by target "pann-shit" in directory /home/bon/pnnet-read- only/src/pann-shit
更新
通过sudo apt-get install安装libboost1.54-dev-all之后, 我明白了
bon@ubuntu:~/pnnet-read-only/src$ make
[ 71%] Built target pann
[ 85%] Built target pann-shit
[ 89%] Built target gnuplot-cpp
Linking CXX executable rpcsrv
../../pann/libpann.a(Net.cpp.o): In function `boost::thread_group::~thread_group()':
Net.cpp:(.text._ZN5boost12thread_groupD2Ev[_ZN5boost12thread_groupD5Ev]+0x47): undefined reference to `boost::thread::~thread()'
../../pann/libpann.a(Net.cpp.o): In function `boost::thread_group::join_all()':
Net.cpp:(.text._ZN5boost12thread_group8join_allEv[_ZN5boost12thread_group8join_allEv]+0x59): undefined reference to `boost::thread::join()'
../../pann/libpann.a(Net.cpp.o): In function `boost::thread::thread<void (*)(pann::Net::RunDirection, boost::shared_ptr<pann::Runner>, pann::Net*, unsigned int, boost::barrier*), pann::Net::RunDirection, boost::shared_ptr<pann::Runner>, pann::Net*, unsigned int, boost::barrier*>(void (*)(pann::Net::RunDirection, boost::shared_ptr<pann::Runner>, pann::Net*, unsigned int, boost::barrier*), pann::Net::RunDirection, boost::shared_ptr<pann::Runner>, pann::Net*, unsigned int, boost::barrier*)':
Net.cpp:(.text._ZN5boost6threadC2IPFvN4pann3Net12RunDirectionENS_10shared_ptrINS2_6RunnerEEEPS3_jPNS_7barrierEES4_S7_S8_jSA_EET_T0_T1_T2_T3_T4_[_ZN5boost6threadC5IPFvN4pann3Net12RunDirectionENS_10shared_ptrINS2_6RunnerEEEPS3_jPNS_7barrierEES4_S7_S8_jSA_EET_T0_T1_T2_T3_T4_]+0x9a): undefined reference to `boost::thread::start_thread()'
collect2: error: ld returned 1 exit status
make[2]: *** [Apps/hybrid/rpcsrv] Error 1
make[1]: *** [Apps/hybrid/CMakeFiles/rpcsrv.dir/all] Error 2
make: *** [all] Error 2