I ran
cd caffe
cp Makefile.config.example Makefile.config
make all
make test
make runtest
as suggested on a website to complete the installation.
I am a beginner and have recently installed Ubuntu 14.04 and I am running Caffe without CUDA/GPU.
Most of the tests seem to be running without a problem. Help would be greatly appreciated.
I encountered the following(seems to show some kind of error):
ankit@Ankit:~/caffe$ make all
CXX/LD -o .build_release/tools/convert_imageset.bin
.build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference tocv::imencode(cv::String const&, cv::_InputArray const&, std::vector
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/convert_imageset.bin] Error 1
ankit@Ankit:~/caffe$ make test
CXX/LD -o .build_release/test/test_all.testbin src/caffe/test/test_caffe_main.cpp
LD .build_release/src/caffe/test/test_threshold_layer.o
.build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference tocv::imencode(cv::String const&, cv::_InputArray const&, std::vector
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/test/test_threshold_layer.testbin] Error 1
ankit@Ankit:~/caffe$
What could possibly be the problem here. Seems like some dependency error or incorrect path.(OpenCV maybe)
Thanks!
Regards,
Ankit
is opencv installed?
On Wed, Apr 22, 2015 at 5:01 PM, Ankit Dhall [email protected]
wrote:
I ran
cd caffe
cp Makefile.config.example Makefile.config
make all
make test
make runtestas suggested on a website to complete the installation.
I am a beginner and have recently installed Ubuntu 14.04 and I am running
Caffe without CUDA/GPU.
Most of the tests seem to be running without a problem. Help would be
greatly appreciated.
I encountered the following(seems to show some kind of error):ankit@Ankit:~/caffe$ make all
CXX/LD -o .build_release/tools/convert_imageset.bin
.build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String
const&, int)'
.build_release/lib/libcaffe.so: undefined reference tocv::imencode(cv::String
const&, cv::_InputArray const&, std::vector >&, std::vector > const&)'
.build_release/lib/libcaffe.so: undefined reference to
`cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/convert_imageset.bin] Error 1ankit@Ankit:~/caffe$ make test
CXX/LD -o .build_release/test/test_all.testbin
src/caffe/test/test_caffe_main.cppLD .build_release/src/caffe/test/test_threshold_layer.o
.build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String
const&, int)'
.build_release/lib/libcaffe.so: undefined reference tocv::imencode(cv::String
const&, cv::_InputArray const&, std::vector >&, std::vector > const&)'
.build_release/lib/libcaffe.so: undefined reference to
`cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
make: *** [.build_release/test/test_threshold_layer.testbin] Error 1
ankit@Ankit:~/caffe$What could possibly be the problem here. Seems like some dependency error
or incorrect path.(OpenCV maybe)
Thanks!
Regards,
Ankit—
Reply to this email directly or view it on GitHub
https://github.com/BVLC/caffe/issues/2348.
Yes, it is OpenCV
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev
sudo apt-get install python-dev python-pip gfortran
Caffe documentation can be improved.
Later someone will come and say, you should post this in user groups...
@jmozah yes OpenCV is installed. @StevenLOL I ran that command and the terminal says all are the newest versions and didn't install anything. Any other suggestions?
Not sure about your problem, by the way, I build caffe by
cd caffe
cp Makefile.config.example Makefile.config
and change setting in Makefile.config
mkdir build
cd build
cmake ..
./configure (??not sure??)
make all
without using a build folder, for me there will be linking problem says libcaffe.o cant not find "xxx"
i remember my system had some confusion on cv and cv2... forgot what that
was,...
On Wed, Apr 22, 2015 at 5:57 PM, Steven [email protected] wrote:
Not sure, your problem, by the way, I build caffe by
cd caffe
cp Makefile.config.example Makefile.config
mkdir build
cd build
cmake ..
./configure (??not sure??)
make allwithout using a build folder, for me there will be linking problem says
libcaffe.o cant not find "xxx"—
Reply to this email directly or view it on GitHub
https://github.com/BVLC/caffe/issues/2348#issuecomment-95156848.
@StevenLOL tried your way, not showing errors anymore :) . I'll try to run some sample code and hopefully it should work. Thanks!
@ankitdhall I have the same problem, but it is solved after using cmake to configure your project.
I meet the same problem and make a solution.
add "opencv_imgcodecs" in Makefile.(LIBRARIES += glog gflags protobuf leveldb snappy
lmdb boost_system hdf5_hl hdf5 m
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs)
If you input "make all",the problem is the same again.But if you delete all the file in build(rm -rf ./build/*) before "make all",you will success.I just success
@hongzhenwang Many thanks! I just made it.
Thanks Alot @StevenLOL it solved my problem and at last I'm done with caffe installation.
@hongzhenwang even after adding those lines to make file it doesnt work. DOes the location in makefile also matter?
And I am getting this error when I lay Anconda python paths instead of default python paths in caaffe makefile.
thx @hongzhenwang, your solution works well.
@hongzhenwang 's solution did it for me too.
Problem with the makefile still missing the opencv_imgcodecs in the library list in the Makefile. This needs to be added to the project. Otherwise, all users who pull down the latest version will have to tread through the issues to find the solution listed here. @hongzhenwang is correct, though I would not follow his exact procedure, use make clean to zap the previous failed build. rm -rf is very dangerous, especially if your a newb and can potentially zap root and what not...
Thanks @hongzhenwang. That helped.
Added LIBRARIES += glog gflags protobuf leveldb snappy \
lmdb boost_system hdf5_hl hdf5 m \
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs
to Makefile.config
I used make clean instead of rm -rf ./build
Then did make all and everything worked fine.
did you install opencv3 ??
I just installed and went through make all/tests/runtest successfully (only other hitch was a simple export error for the cuda libraries).
Makefile.config has this:
# Uncomment if you're using OpenCV 3
# OPENCV_VERSION := 3
It worked for me on Ubuntu 14.04/OpenCV 3.1/ Cuda 7.5/CuDNN v.3/980 Ti
Using wang @hongzhenwang 's solution, I still can't solve this problem.
Then I try to create soft links for opencv_imgcodecs using follow commands, it success!
$ sudo cp imgcodecs_c.h /usr/local/include
$ sudo cp libopencv_imgcodecs.so /usr/local/lib
$ sudo cp libopencv_imgcodecs.so.3.0 /usr/local/lib
$ sudo cp libopencv_imgcodecs.so.3.0.0 /usr/local/lib
$ sudo ln -sf /usr/local/lib/libopencv_imgcodecs.so.3.0.0 /usr/local/lib/libopencv_imgcodecs.so.3.0
$ sudo ln -sf /usr/local/lib/libopencv_imgcodecs.so.3.0 /usr/local/lib/libopencv_imgcodecs.so
$ sudo ldconfig -v
I got a similar error. Solved by using cmake.
Thanks @hongzhenwang...It worked for me. However I'd like to point out that if you have openCV 3 installed and have enabled building with the same by using "OPENCV_VERSION := 3" in your makefile.config file, those extra dependencies are automatically added.
Thanks
@StevenLOL
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev
sudo apt-get install python-dev python-pip gfortran
This worked for me.
@StevenLOL Hi Steven, I was able to solve this issue by method you suggested, and compiled caffe successfully. But while I am trying to train the network, I am getting the error below:
./build/tools/caffe: symbol lookup error: /home/ubuntu/Downloads/caffe/.build_release/tools/../lib/libcaffe.so: undefined symbol: _ZN5caffe5cudnn8dataTypeIdE4zeroE
Could you please suggest a way out of this
Thanks,
Gaurav
@hojonathanho
I have uncomment these paths and the make all is going well.
but when i make the make test, i have these errors:
CXX src/caffe/test/test_roi_pooling_layer.cpp
src/caffe/test/test_roi_pooling_layer.cpp:28:26: error: ‘FloatGPU’ was not declared in this scope
typedef ::testing::Types<FloatGPU, DoubleGPU> TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:36: error: ‘DoubleGPU’ was not declared in this scope
typedef ::testing::Types<FloatGPU, DoubleGPU> TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:45: error: template argument 1 is invalid
typedef ::testing::Types<FloatGPU, DoubleGPU> TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:45: error: template argument 2 is invalid
In file included from src/caffe/test/test_roi_pooling_layer.cpp:21:0:
./include/caffe/test/test_caffe_main.hpp: In instantiation of ‘class caffe::MultiDeviceTest<int>’:
src/caffe/test/test_roi_pooling_layer.cpp:31:7: required from ‘class caffe::ROIPoolingLayerTest<int>’
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from ‘class caffe::ROIPoolingLayerTest_TestGradient_Test<int>’
./src/gtest/gtest.h:7334:28: required from ‘static bool testing::internal::TypeParameterizedTest<Fixture, TestSel, Types>::Register(const char*, const char*, const char*, int) [with Fixture = caffe::ROIPoolingLayerTest; TestSel = testing::internal::TemplateSel<caffe::ROIPoolingLayerTest_TestGradient_Test>; Types = testing::internal::Types1<int>]’
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from here
./include/caffe/test/test_caffe_main.hpp:33:37: error: ‘int’ is not a class, struct, or union type
typedef typename TypeParam::Dtype Dtype;
^
On Ubuntu 15.10 using Python2.7 and make clean before the command get this error:
jalal@klein:~/computer_vision/py-faster-rcnn/caffe-fast-rcnn$ make -j8 && make pycaffe
blah blah
CXX/LD -o .build_release/tools/compute_image_mean.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin
CXX/LD -o .build_release/tools/test_net.bin
CXX/LD -o .build_release/tools/convert_imageset.bin
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
CXX/LD -o .build_release/tools/train_net.bin
CXX/LD -o .build_release/tools/device_query.bin
CXX/LD -o .build_release/tools/finetune_net.bin
CXX/LD -o .build_release/tools/caffe.bin
CXX/LD -o .build_release/tools/extract_features.bin
CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin
CXX/LD -o .build_release/tools/net_speed_benchmark.bin
.build_release/lib/libcaffe.so: undefined reference to `boost::python::throw_error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'
.build_release/lib/libcaffe.so: undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Print'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::error_already_set::~error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::detail::str_base::str_base(char const*)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const*)'
.build_release/lib/libcaffe.so: undefined reference to `_Py_NoneStruct'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `vtable for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `Py_Initialize'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, .boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'
build_release/.build_release/liblib//libcaffe.so:libcaffe.so undefined : reference toundefined ` referenceboost:: topython: `:converterboost:::detail:python::arg_to_python_base::::arg_to_python_basethrow_error_already_set()'
(void .const volatilebuild_release/*, lib/libcaffe.so: boost:undefined:python reference::converter to::registration ` const&boost::python::import(boost::python::str)'
)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'collect2: error: ld returned 1 exit status
.build_release/lib/libcaffe.so: undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Print'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::error_already_set::~error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::detail::str_base::str_base(char const*)'
.build_release/lib/Makefile:609: recipe for target '.build_release/tools/convert_imageset.bin' failed
libcaffe.so: undefined reference to `boost::python::api::getattr(make: *** [.build_release/tools/convert_imageset.bin] Error 1
boost::python::api::object const&,make: *** Waiting for unfinished jobs....
char const*)'
.build_release/lib/libcaffe.so: undefined reference to `_Py_NoneStruct'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `vtable for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `Py_Initialize'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&)'
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_release/tools/upgrade_net_proto_text.bin' failed
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `boost::python::throw_error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'
.build_release/lib/libcaffe.so: undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Print'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::error_already_set::~error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::detail::str_base::str_base(char const*)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const*)'
.build_release/lib/libcaffe.so: undefined reference to `_Py_NoneStruct'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `vtable for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `Py_Initialize'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&)'
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_release/tools/compute_image_mean.bin' failed
make: *** [.build_release/tools/compute_image_mean.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `boost::python::throw_error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'
.build_release/lib/libcaffe.so: undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Print'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::error_already_set::~error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::detail::str_base::str_base(char const*)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const*)'
.build_release/lib/libcaffe.so: undefined reference to `_Py_NoneStruct'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `vtable for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `Py_Initialize'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&)'
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed
make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1
.build_release/tools/caffe.o: In function `main':
caffe.cpp:(.text.startup+0x334): undefined reference to `vtable for boost::python::error_already_set'
caffe.cpp:(.text.startup+0x347): undefined reference to `PyErr_Print'
caffe.cpp:(.text.startup+0x351): undefined reference to `boost::python::error_already_set::~error_already_set()'
caffe.cpp:(.text.startup+0x395): undefined reference to `boost::python::error_already_set::~error_already_set()'
.build_release/tools/caffe.o: In function `_GLOBAL__sub_I_caffe.cpp':
caffe.cpp:(.text.startup+0x40e): undefined reference to `_Py_NoneStruct'
.build_release/tools/caffe.o:(.data.DW.ref._ZTIN5boost6python17error_already_setE[DW.ref._ZTIN5boost6python17error_already_setE]+0x0): undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::throw_error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::detail::str_base::str_base(char const*)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const*)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `Py_Initialize'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&)'
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_release/tools/caffe.bin' failed
make: *** [.build_release/tools/caffe.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `boost::python::throw_error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'
.build_release/lib/libcaffe.so: undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Print'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::error_already_set::~error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::detail::str_base::str_base(char const*)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const*)'
.build_release/lib/libcaffe.so: undefined reference to `_Py_NoneStruct'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `vtable for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `Py_Initialize'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&)'
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_release/tools/extract_features.bin' failed
make: *** [.build_release/tools/extract_features.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `boost::python::throw_error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::import(boost::python::str)'
.build_release/lib/libcaffe.so: undefined reference to `PyEval_CallFunction'
.build_release/lib/libcaffe.so: undefined reference to `typeinfo for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `PyErr_Print'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::error_already_set::~error_already_set()'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::detail::str_base::str_base(char const*)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const*)'
.build_release/lib/libcaffe.so: undefined reference to `_Py_NoneStruct'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `vtable for boost::python::error_already_set'
.build_release/lib/libcaffe.so: undefined reference to `Py_Initialize'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'
.build_release/lib/libcaffe.so: undefined reference to `boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&)'
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed
make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1
jalal@klein:~/computer_vision/py-faster-rcnn/caffe-fast-rcnn$
@monajalal have you installed boost ?
sudo apt-get install --no-install-recommends libboost-all-dev
I'm getting the same error as OP does. Solution from @StevenLOL has helped.
When I installed Boost from source-code in Ubuntu 15.10 the problem was fixed. In Ubuntu 14.04 I didn't come across this problem.
I can make all but whrn i call
make test
I have an error
LD .build_debug/src/caffe/test/test_tile_layer.o
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so: undefined reference to cv::AlgorithmInfo::addParam(cv::Algorithm&, char const*, double&, bool, double (cv::Algorithm::*)(), void (cv::Algorithm::*)(double), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so: undefined reference tocv::Exception::Exception(int, std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so: undefined reference to cv::AlgorithmInfo::addParam(cv::Algorithm&, char const*, int&, bool, int (cv::Algorithm::*)(), void (cv::Algorithm::*)(int), std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so: undefined reference tocv::AlgorithmInfo::nameabi:cxx11 const'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so: undefined reference to cv::tempfile[abi:cxx11](char const*)'
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so: undefined reference tocv::AlgorithmInfo::AlgorithmInfo(std::__cxx11::basic_string
/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so: undefined reference to `cv::formatabi:cxx11'
On Ubuntu 16.04 using Python2.7 and make clean before the command get this error:
g++ .build_release/tools/net_speed_benchmark.o .build_release/lib/libcaffe.a -o .build_release/tools/net_speed_benchmark.bin -fPIC -DCPU_ONLY -DNDEBUG -O2 -DUSE_MKL -I/home/lijing/anaconda2/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/home/lijing/Softwares/intel/mkl/include -Wall -Wno-sign-compare -L/home/lijing/anaconda2/lib -L/usr/local/lib -L/usr/lib -L/home/lijing/Softwares/intel/mkl/lib -lglog -lgflags -lpthread -lprotobuf -lleveldb -lsnappy -llmdb -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lmkl_rt
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char, unsigned long) const@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_sync(char*, unsigned long, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
Makefile:445: recipe for target '.build_release/tools/net_speed_benchmark.bin' failed
make: *** [.build_release/tools/net_speed_benchmark.bin] Error 1
make: *** Waiting for unfinished jobs....
the reason is that 'make' can't find opencv files.
if you compile opencv youself, try to uncomment "USE_PKG_CONFIG := 1" in Makefile.config
@StevenLOL
cd build
cmake ..
./configure (??not sure??)
make all
after that ,what to do?
if i
cd ..
make test
there is still error
where to ( the following steps https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-Installation-Guide )
make test
make runtest
make pycaffe -should be finished already, so you can omit this one
make distribute
@gaush123 Encountered the exactly same problem and found no way to solve. Have spent two days on installation...:
$ make runtest -j32.build_release/tools/caffe
.build_release/tools/caffe: symbol lookup error: /home/memray/Project/deep_learning/caffe-0.15.13/.build_release/tools/../lib/libcaffe-nv.so.0.15: undefined symbol: _ZN6google8protobuf8internal15InitEmptyStringEv
Makefile:533: recipe for target 'runtest' failed
make: *** [runtest] Error 127
@gaush123 I have the same problem with the undefined symbol, how did you solve it?
Thanks to solutions above, I met this problem, and fix by following:
opencv_imagecodecs" to the end ofLIBRARIES += opencv_core opencv_highgui opencv_imgproc"libopencv_imgcodecs.so: undefined reference to `png_set_strip_16@PNG16_0
...
"
this is solved by adding
"LINKFLAGS := -Wl,-rpath,$(HOME)/anaconda/lib" in Makefile.config
"$(HOME)/anaconda" change it to your dir.
I don't really understand why, but it worked.
For me Uncommenting This line worked pretty well.
USE_PKG_CONFIG := 1
when I make test , I met the following questions:
I run
make test
display:
ts 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::HDF5DataParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:18996:89: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:18996:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return *ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::HDF5OutputParameter::file_name() const’:
.build_release/src/caffe/proto/caffe.pb.h:19102:92: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19102:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::ImageDataParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:19189:89: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19189:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::ImageDataParameter::mean_file() const’:
.build_release/src/caffe/proto/caffe.pb.h:19411:92: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19411:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::ImageDataParameter::root_folder() const’:
.build_release/src/caffe/proto/caffe.pb.h:19513:94: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return root_folder_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19513:94: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::InfogainLossParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:19571:89: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19571:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::PythonParameter::module() const’:
.build_release/src/caffe/proto/caffe.pb.h:20671:89: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return module_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:20671:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::PythonParameter::layer() const’:
.build_release/src/caffe/proto/caffe.pb.h:20725:88: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return layer_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:20725:88: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::PythonParameter::param_str() const’:
.build_release/src/caffe/proto/caffe.pb.h:20779:92: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return param_str_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:20779:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::WindowDataParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:21740:89: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:21740:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::WindowDataParameter::mean_file() const’:
.build_release/src/caffe/proto/caffe.pb.h:21818:92: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:21818:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::WindowDataParameter::crop_mode() const’:
.build_release/src/caffe/proto/caffe.pb.h:22040:51: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(std::string&) const’
return crop_mode_.GetNoArena(_default_crop_mode_);
^
.build_release/src/caffe/proto/caffe.pb.h:22040:51: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::WindowDataParameter::root_folder() const’:
.build_release/src/caffe/proto/caffe.pb.h:22118:94: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return root_folder_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:22118:94: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::V1LayerParameter::name() const’:
.build_release/src/caffe/proto/caffe.pb.h:22364:87: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:22364:87: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::V0LayerParameter::name() const’:
.build_release/src/caffe/proto/caffe.pb.h:24078:87: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24078:87: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::V0LayerParameter::type() const’:
.build_release/src/caffe/proto/caffe.pb.h:24132:87: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24132:87: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::V0LayerParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:24563:89: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24563:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::V0LayerParameter::meanfile() const’:
.build_release/src/caffe/proto/caffe.pb.h:24641:91: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string) const’
return meanfile_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24641:91: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const string& caffe::V0LayerParameter::det_crop_mode() const’:
.build_release/src/caffe/proto/caffe.pb.h:24977:59: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::GetNoArena(std::string&) const’
return det_crop_mode_.GetNoArena(_default_det_crop_mode_);
^
.build_release/src/caffe/proto/caffe.pb.h:24977:59: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate expects 0 arguments, 1 provided
make: ** [.build_release/src/caffe/test/test_dummy_data_layer.o] Error 1
Make test is not necessary. That is to say, if your "make all - j16" is
pass, you can use caffe as you like.
2017-05-03 15:09 GMT+08:00 billedu notifications@github.com:
when I make test , I met the following questions:
I run
make testdisplay:
ts 0 arguments, 1 provided
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::HDF5DataParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:18996:89: error: no matching
function for call to ‘google::protobuf::internal::
ArenaStringPtr::GetNoArena(const string*) const’
return source_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:18996:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::HDF5OutputParameter::file_name() const’:
.build_release/src/caffe/proto/caffe.pb.h:19102:92: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return file_name_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19102:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::ImageDataParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:19189:89: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return source_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19189:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::ImageDataParameter::mean_file() const’:
.build_release/src/caffe/proto/caffe.pb.h:19411:92: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return mean_file_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19411:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::ImageDataParameter::root_folder() const’:
.build_release/src/caffe/proto/caffe.pb.h:19513:94: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return root_folder_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19513:94: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::InfogainLossParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:19571:89: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return source_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:19571:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::PythonParameter::module() const’:
.build_release/src/caffe/proto/caffe.pb.h:20671:89: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return module_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:20671:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::PythonParameter::layer() const’:
.build_release/src/caffe/proto/caffe.pb.h:20725:88: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return layer_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:20725:88: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::PythonParameter::param_str() const’:
.build_release/src/caffe/proto/caffe.pb.h:20779:92: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return param_str_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:20779:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::WindowDataParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:21740:89: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return source_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:21740:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::WindowDataParameter::mean_file() const’:
.build_release/src/caffe/proto/caffe.pb.h:21818:92: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return mean_file_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:21818:92: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::WindowDataParameter::crop_mode() const’:
.build_release/src/caffe/proto/caffe.pb.h:22040:51: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(std::string&)
const’
return crop_mode_.GetNoArena(default_crop_mode);
^
.build_release/src/caffe/proto/caffe.pb.h:22040:51: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::WindowDataParameter::root_folder() const’:
.build_release/src/caffe/proto/caffe.pb.h:22118:94: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return root_folder_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:22118:94: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::V1LayerParameter::name() const’:
.build_release/src/caffe/proto/caffe.pb.h:22364:87: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return name_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:22364:87: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::V0LayerParameter::name() const’:
.build_release/src/caffe/proto/caffe.pb.h:24078:87: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return name_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24078:87: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::V0LayerParameter::type() const’:
.build_release/src/caffe/proto/caffe.pb.h:24132:87: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return type_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24132:87: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::V0LayerParameter::source() const’:
.build_release/src/caffe/proto/caffe.pb.h:24563:89: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return source_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24563:89: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::V0LayerParameter::meanfile() const’:
.build_release/src/caffe/proto/caffe.pb.h:24641:91: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(const string)
const’
return meanfile_.GetNoArena(&::google::protobuf::internal::
GetEmptyStringAlreadyInited());
^
.build_release/src/caffe/proto/caffe.pb.h:24641:91: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { returnptr_; } ^ /usr/local/include/google/protobuf/arenastring.h:225:31: note:
candidate expects 0 arguments, 1 provided In file included from
./include/caffe/util/cudnn.hpp:8:0, from
./include/caffe/util/device_alternate.hpp:40, from
./include/caffe/common.hpp:19, from ./include/caffe/blob.hpp:8, from
src/caffe/test/test_dummy_data_layer.cpp:6:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘const
string& caffe::V0LayerParameter::det_crop_mode() const’:
.build_release/src/caffe/proto/caffe.pb.h:24977:59: error: no matching
function for call to
‘google::protobuf::internal::ArenaStringPtr::GetNoArena(std::string&)
const’
return det_crop_mode_.GetNoArena(default_det_crop_mode);
^
.build_release/src/caffe/proto/caffe.pb.h:24977:59: note: candidate is:
In file included from .build_release/src/caffe/proto/caffe.pb.h:23:0,
from ./include/caffe/util/cudnn.hpp:8,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/blob.hpp:8,
from src/caffe/test/test_dummy_data_layer.cpp:6:
/usr/local/include/google/protobuf/arenastring.h:225:31: note: const
string& google::protobuf::internal::ArenaStringPtr::GetNoArena() const
inline const ::std::string& GetNoArena() const { return ptr_; }
^
/usr/local/include/google/protobuf/arenastring.h:225:31: note: candidate
expects 0 arguments, 1 provided
make: ** [.build_release/src/caffe/test/test_dummy_data_layer.o] Error 1—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/BVLC/caffe/issues/2348#issuecomment-298837498, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJfCo5RInjJQ6c3m5SUxS5Xl-x6V8XsLks5r2ChFgaJpZM4EF-oC
.
if your opecv vesion is 3.x, uncomment the OPENCV_VERSION := 3 in Makefile.config
Thanks @hritt , it worked for me
Hi guys!
I want config caffe on server.
cd build
cmake ..
make all
make test
But after running make test I received this error?
blas.cpp.o
[100%] Linking CXX executable ../../../test/test.testbin
/usr/local/lib/libboost_thread.so: undefined reference to vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_python.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_python.so: undefined reference to std::range_error::range_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_system.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_thread.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference tostd::__cxx11::basic_ostringstream
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference tostd::basic_istream
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference to std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_thread.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference to vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference toVTT for std::__cxx11::basic_istringstream
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference tostd::__cxx11::basic_istringstream
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_thread.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_thread.so: undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference tostd::__cxx11::basic_stringbuf
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference to vtable for std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/usr/local/lib/libboost_thread.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_thread.so: undefined reference to std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, char)@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference tostd::__cxx11::basic_stringbuf
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_first_not_of(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference toVTT for std::__cxx11::basic_stringstream
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
/usr/local/lib/libboost_thread.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_thread.so: undefined reference to std::runtime_error::runtime_error(std::runtime_error const&)@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference tostd::__cxx11::basic_stringstream
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_imgcodecs.so.3.4.0: undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string
/usr/local/lib/libboost_thread.so: undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/usr/local/lib/libboost_python.so: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_python.so: undefined reference to std::invalid_argument::invalid_argument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_thread.so: undefined reference tostd::__cxx11::numpunct
/usr/local/lib/libboost_thread.so: undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_thread.so: undefined reference toVTT for std::__cxx11::basic_ostringstream
/usr/local/lib/libboost_python.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_construct(unsigned long, wchar_t)@GLIBCXX_3.4.21'
/usr/local/lib/libopencv_core.so.3.4.0: undefined reference tostd::__cxx11::basic_string
/usr/local/lib/libboost_system.so: undefined reference to `std::__cxx11::basic_string
collect2: error: ld returned 1 exit status
make[3]:
make[2]: [src/caffe/test/CMakeFiles/test.testbin.dir/all] Error 2
make[1]: [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
make: * [runtest] Error 2
what should I do now?
Thank you!
I meet the same problem and make a solution.
add "opencv_imgcodecs" in Makefile.(LIBRARIES += glog gflags protobuf leveldb snappy
lmdb boost_system hdf5_hl hdf5 m
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs)
If you input "make all",the problem is the same again.But if you delete all the file in build(rm -rf ./build/*) before "make all",you will success.I just success
Thanks for this useful tip! It works.
For me Uncommenting This line worked pretty well.
USE_PKG_CONFIG := 1
yes it also works for me, there are so many f**k problems while installing
I meet the same problem and make a solution.
add "opencv_imgcodecs" in Makefile.(LIBRARIES += glog gflags protobuf leveldb snappy
lmdb boost_system hdf5_hl hdf5 m
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs)
If you input "make all",the problem is the same again.But if you delete all the file in build(rm -rf ./build/*) before "make all",you will success.I just success
It works, but why?
Thanks to solutions above, I met this problem, and fix by following:
- make sure you installed opencv;
- Note: in "Makefile" (not in 'Makefile.config")
add "opencv_imagecodecs" to the end of
LIBRARIES += opencv_core opencv_highgui opencv_imgproc- then I met errors like @lijingszu mentioned
"libopencv_imgcodecs.so: undefined reference to `png_set_strip_16@PNG16_0 ... "this is solved by adding
"LINKFLAGS := -Wl,-rpath,$(HOME)/anaconda/lib"in Makefile.config
"$(HOME)/anaconda" change it to your dir.I don't really understand why, but it worked.
This is really helpful.
Add "opencv_imagecodecs" to the end of LIBRARIES += opencv_core opencv_highgui opencv_imgpr in Makefile, not in Makefile.config.
Thanks a lot.
Not sure about your problem, by the way, I build caffe by
cd caffe
cp Makefile.config.example Makefile.config
and change setting in Makefile.config
mkdir build
cd build
cmake ..
./configure (??not sure??)
make allwithout using a build folder, for me there will be linking problem says libcaffe.o cant not find "xxx"
Not sure about your problem, by the way, I build caffe by
cd caffe
cp Makefile.config.example Makefile.config
and change setting in Makefile.config
mkdir build
cd build
cmake ..
./configure (??not sure??)
make allwithout using a build folder, for me there will be linking problem says libcaffe.o cant not find "xxx"
--
still error...
CMake Error at cmake/ConfigGen.cmake:95 (list):
list sub-command REMOVE_ITEM requires two or more arguments.
Call Stack (most recent call first):
CMakeLists.txt:92 (caffe_generate_export_configs)
-- Configuring incomplete, errors occurred!
See also "/usr/lib/python3/dist-packages/CMakeFiles/CMakeOutput.log".
See also "/usr/lib/python3/dist-packages/CMakeFiles/CMakeError.log".
Most helpful comment
I meet the same problem and make a solution.
add "opencv_imgcodecs" in Makefile.(LIBRARIES += glog gflags protobuf leveldb snappy
lmdb boost_system hdf5_hl hdf5 m
opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs)
If you input "make all",the problem is the same again.But if you delete all the file in build(rm -rf ./build/*) before "make all",you will success.I just success