Problem Building Caffe on Ubuntu 14.04

428 views
Skip to first unread message

Ken

unread,
Nov 29, 2015, 2:11:28 AM11/29/15
to Caffe Users
Hi, all. There is a problem when I was building caffe on Ubuntu 14.04

CXX/LD -o .build_release/tools/convert_imageset.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
CXX/LD -o .build_release/tools/net_speed_benchmark.bin
CXX/LD -o .build_release/tools/caffe.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
CXX/LD -o .build_release/tools/test_net.bin
CXX/LD -o .build_release/tools/extract_features.bin
CXX/LD -o .build_release/tools/compute_image_mean.bin
CXX/LD -o .build_release/tools/train_net.bin
CXX/LD -o .build_release/tools/finetune_net.bin
.build_release/tools/caffe.o: In function `test()':
caffe.cpp:(.text+0xd21): undefined reference to `caffe::Net<float>::Net(std::string const&, caffe::Phase, caffe::Net<float> const*)'
.build_release/tools/caffe.o: In function `train()':
caffe.cpp:(.text+0x1830): undefined reference to `caffe::ReadSolverParamsFromTextFileOrDie(std::string const&, caffe::SolverParameter*)'
caffe.cpp:(.text+0x191f): undefined reference to `caffe::SignalHandler::SignalHandler(caffe::SolverAction::Enum, caffe::SolverAction::Enum)'
caffe.cpp:(.text+0x196b): undefined reference to `caffe::SignalHandler::GetActionFunction()'
caffe.cpp:(.text+0x1976): undefined reference to `caffe::Solver<float>::SetActionFunction(boost::function<caffe::SolverAction::Enum ()>)'
caffe.cpp:(.text+0x1a00): undefined reference to `caffe::P2PSync<float>::P2PSync(boost::shared_ptr<caffe::Solver<float> >, caffe::P2PSync<float>*, caffe::SolverParameter const&)'
caffe.cpp:(.text+0x1a1d): undefined reference to `caffe::P2PSync<float>::run(std::vector<int, std::allocator<int> > const&)'
caffe.cpp:(.text+0x1a25): undefined reference to `caffe::P2PSync<float>::~P2PSync()'
caffe.cpp:(.text+0x1a71): undefined reference to `caffe::SignalHandler::~SignalHandler()'
caffe.cpp:(.text+0x1e53): undefined reference to `caffe::SignalHandler::~SignalHandler()'
caffe.cpp:(.text+0x1ec4): undefined reference to `caffe::P2PSync<float>::~P2PSync()'
caffe.cpp:(.text+0x1f93): undefined reference to `caffe::P2PSync<float>::~P2PSync()'
.build_release/tools/caffe.o: In function `time()':
caffe.cpp:(.text+0x214e): undefined reference to `caffe::Net<float>::Net(std::string const&, caffe::Phase, caffe::Net<float> const*)'
caffe.cpp:(.text+0x245c): undefined reference to `caffe::Layer<float>::Lock()'
caffe.cpp:(.text+0x2561): undefined reference to `caffe::Layer<float>::Unlock()'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/caffe.bin] Error 1
make: *** Waiting for unfinished jobs....
.build_release/tools/extract_features.o: In function `int feature_extraction_pipeline<float>(int, char**)':
extract_features.cpp:(.text._Z27feature_extraction_pipelineIfEiiPPc[_Z27feature_extraction_pipelineIfEiiPPc]+0xf9): undefined reference to `caffe::Net<float>::Net(std::string const&, caffe::Phase, caffe::Net<float> const*)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/extract_features.bin] Error 1



Reply all
Reply to author
Forward
0 new messages