undefined error: undefined reference to boost, when I compile caffe(cmake)

231 views
Skip to first unread message

HU

unread,
Nov 23, 2016, 8:42:43 AM11/23/16
to Caffe Users
In 'make all' step, It response:
In JPEGDataLayer.cpp:(.text._ZN5boost9iostreams18mapped_file_source4openINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKNS0_24basic_mapped_file_paramsIT_EE[_ZN5boost9iostreams18mapped_file_source4openINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKNS0_24basic_mapped_file_paramsIT_EE]+0x14b):undefined reference to boost::iostreams::mapped_file_source::open_impl(boost::iostreams::basic_mapped_file_params<boost::iostreams::detail::path> const&)’
I think I have installed boost1.55 successful.
The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

    /home/hu/download/boost_1_55_0

The following directory should be added to linker library paths:

    /home/hu/download/boost_1_55_0/stage/lib



If anyone know how to deal with this problem, please tell me!
Thanks

HU

unread,
Nov 23, 2016, 9:38:03 AM11/23/16
to Caffe Users
In a norm way to install caffe:
In 'make runtest' step, I get the error:
 MultiSoftmaxLossLayerTest/2.TestGradient
F1123 22:34:39.175705 20365 layer.hpp:362] Check failed: ExactNumTopBlobs() == top.size() (3 vs. 2) MULTI_SOFTMAX_LOSS Layer produces 3 top blob(s) as output.
*** Check failure stack trace: ***
    @     0x7fc2e8dd630d  google::LogMessage::Fail()
    @     0x7fc2e8dd8123  google::LogMessage::SendToLog()
    @     0x7fc2e8dd5e9b  google::LogMessage::Flush()
    @     0x7fc2e8dd8b0e  google::LogMessageFatal::~LogMessageFatal()
    @           0x4304b8  caffe::Layer<>::CheckBlobCounts()
    @           0x4e033a  caffe::MultiSoftmaxLossLayerTest_TestGradient_Test<>::TestBody()
    @           0x6e2883  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0x6dbd0a  testing::Test::Run()
    @           0x6dbe58  testing::TestInfo::Run()
    @           0x6dbf35  testing::TestCase::Run()
    @           0x6dd20f  testing::internal::UnitTestImpl::RunAllTests()
    @           0x6dd533  testing::UnitTest::Run()
    @           0x423d5f  main
    @     0x7fc2e59baac0  __libc_start_main
    @           0x42bba9  _start
Makefile:415: recipe for target 'runtest' failed




在 2016年11月23日星期三 UTC+8下午9:42:43,HU写道:
Reply all
Reply to author
Forward
0 new messages