This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 491
compiling errors #54
Comments
Hi, thanks for reporting this error, could you please tell what protobuf library version you are using? |
Problem solved if I comment line 113 of ./include/caffe/training_utils.hpp |
protobuf/2.4.1 |
You need protobuf 2.5.0 version at least which was the first that added set_allocated_foo(Type* foo) for message fields. |
@michalkuligowski Thanks, it is working if I use protobuf/2.6.1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
./include/caffe/training_utils.hpp: In function 'int multiphase_train(caffe::MultiPhaseSolverParameter*, const string&, const string&, const int&, const string&)':
./include/caffe/training_utils.hpp:113:18: error: 'class caffe::SolverParameter' has no member named 'set_allocated_net_param'
solver_param.set_allocated_net_param(&topology_net_param);
^
In file included from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/system_error.hpp:14:0,
from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/thread/exceptions.hpp:22,
from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/thread/pthread/mutex.hpp:12,
from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/thread/mutex.hpp:16,
from ./include/caffe/syncedmem.hpp:52,
from ./include/caffe/blob.hpp:47,
from ./include/caffe/caffe.hpp:44,
from tools/caffe.cpp:54:
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp: At global scope:
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp:222:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]
static const error_category & posix_category = generic_category();
^
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp:223:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]
static const error_category & errno_ecat = generic_category();
^
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp:224:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]
static const error_category & native_ecat = system_category();
^
Makefile:768: recipe for target '.build_release/tools/caffe.o' failed
make: *** [.build_release/tools/caffe.o] Error 1
What is the reason? Thanks!
The text was updated successfully, but these errors were encountered: