caffe build: finetuning glog linking error

129 views
Skip to first unread message

Michel Wan Der Maas Soares

unread,
Jun 30, 2016, 3:21:51 PM6/30/16
to Caffe Users
I got the following error building caffe and I was not able to fix it:

[ 78%] Linking CXX executable finetune_net
CMakeFiles/finetune_net.dir/finetune_net.cpp.o: In function `main':
/global/homes/m/mwdmaas/caffe/caffe_original/caffe/tools/finetune_net.cpp:(.text+0x3e): undefined reference to `google::LogMessageFatal::LogMessageFatal(char const*, int)'
/global/homes/m/mwdmaas/caffe/caffe_original/caffe/tools/finetune_net.cpp:(.text+0x47): undefined reference to `google::LogMessage::stream()'
/global/homes/m/mwdmaas/caffe/caffe_original/caffe/tools/finetune_net.cpp:(.text+0x5f): undefined reference to `google::LogMessageFatal::~LogMessageFatal()'
/global/homes/m/mwdmaas/caffe/caffe_original/caffe/tools/finetune_net.cpp:(.text+0x68): undefined reference to `google::LogMessageFatal::~LogMessageFatal()'
CMakeFiles/finetune_net.dir/finetune_net.cpp.o: In function `__sti__$E':
/global/homes/m/mwdmaas/caffe/caffe_original/caffe/tools/finetune_net.cpp:(.text+0x98): undefined reference to `boost::system::generic_category()'
/global/homes/m/mwdmaas/caffe/caffe_original/caffe/tools/finetune_net.cpp:(.text+0xa4): undefined reference to `boost::system::generic_category()'
/global/homes/m/mwdmaas/caffe/caffe_original/caffe/tools/finetune_net.cpp:(.text+0xb0): undefined reference to `boost::system::system_category()'
/usr/bin/ld: link errors found, deleting executable `finetune_net'
make[2]: *** [tools/finetune_net] Error 1
make[1]: *** [tools/CMakeFiles/finetune_net.dir/all] Error 2
make: *** [all] Error 2

I will add that the Makefile was created with:
cmake -DCPU_ONLY=ON -DBLAS=open -DUSE_LEVELDB=OFF -DUSE_OPENCV=OFF ..

I will also add that I am running this on a Linux machine and I do not have admin privileges.

Jesse Connell

unread,
Jun 30, 2016, 3:48:07 PM6/30/16
to Caffe Users
Not sure about boost, but as far as glog goes, what version are you building against?  I couldn't get it to work with the latest glog release (0.3.4) but did have it work with 0.3.3.  The build should work without admin privileges, too, as long as you have write access to the install prefix.  You can use:
-D CMAKE_INSTALL_PREFIX:PATH="$PREFIX"

as an argument to cmake for that.

Michel Wan Der Maas Soares

unread,
Jun 30, 2016, 5:09:17 PM6/30/16
to Caffe Users
I just installed glog 0.3.3 instead, and I got the same error.

Jesse Connell

unread,
Jul 5, 2016, 10:48:10 AM7/5/16
to Caffe Users
Does the output from cmake report that it actually did find glog and boost?  If you attach the full output from cmake and make I can try comparing with mine.  (I'm using a custom install of glog/gflags/boost/caffe so possibly not all that different from yours.)

Developer

unread,
Oct 15, 2018, 12:41:24 PM10/15/18
to Caffe Users
how to finetune the network when i have a model named 'xxx.model' 
it's possible to finetune when the model have the extention .model and not a caffemodel??? 
please any one help me 
Reply all
Reply to author
Forward
0 new messages