davheld / GOTURN

Source code for paper: Learning to Track at 100 FPS with Deep Regression Networks, Held, et al. ECCV 2016
http://davheld.github.io/GOTURN/GOTURN.html
MIT License
887 stars 316 forks source link

How to solve this linking error in libGOTURN.a? #17

Open rongzhimd opened 8 years ago

rongzhimd commented 8 years ago

Hi, when I make GOTURN, I meet this error:

Scanning dependencies of target GOTURN [ 3%] Building CXX object CMakeFiles/GOTURN.dir/src/helper/bounding_box.cpp.o [ 7%] Building CXX object CMakeFiles/GOTURN.dir/src/train/example_generator.cpp.o [ 11%] Building CXX object CMakeFiles/GOTURN.dir/src/helper/helper.cpp.o [ 15%] Building CXX object CMakeFiles/GOTURN.dir/src/helper/high_res_timer.cpp.o [ 19%] Building CXX object CMakeFiles/GOTURN.dir/src/helper/image_proc.cpp.o [ 23%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/loader_alov.cpp.o [ 26%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/loader_imagenet_det.cpp.o [ 30%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/loader_vot.cpp.o [ 34%] Building CXX object CMakeFiles/GOTURN.dir/src/network/regressor.cpp.o [ 38%] Building CXX object CMakeFiles/GOTURN.dir/src/network/regressor_base.cpp.o [ 42%] Building CXX object CMakeFiles/GOTURN.dir/src/network/regressor_train.cpp.o [ 46%] Building CXX object CMakeFiles/GOTURN.dir/src/network/regressor_train_base.cpp.o [ 50%] Building CXX object CMakeFiles/GOTURN.dir/src/tracker/tracker.cpp.o [ 53%] Building CXX object CMakeFiles/GOTURN.dir/src/tracker/tracker_manager.cpp.o [ 57%] Building CXX object CMakeFiles/GOTURN.dir/src/train/tracker_trainer.cpp.o [ 61%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/video.cpp.o [ 65%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/video_loader.cpp.o [ 69%] Building CXX object CMakeFiles/GOTURN.dir/src/native/vot.cpp.o /home/zmd/GOTURN-master/src/native/vot.cpp: In member function ‘vot_region* VOT::vot_initialize()’: /home/zmd/GOTURN-master/src/native/vot.cpp:237:43: warning: ignoring return value of ‘__ssizet getline(char*, sizet, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] getline(&linebuf, &linesiz, inputfile); ^ Linking CXX static library libGOTURN.a [ 69%] Built target GOTURN Scanning dependencies of target save_videos_vot [ 73%] Building CXX object CMakeFiles/save_videos_vot.dir/src/test/save_videos_vot.cpp.o Linking CXX executable save_videos_vot

/usr/bin/ld: libGOTURN.a(regressor.cpp.o): undefined reference to symbol '_ZN6google4base21CheckOpMessageBuilderD1Ev' //usr/lib/x86_64-linux-gnu/libglog.so.0: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status make[2]: * [save_videos_vot] Error 1 make[1]: * [CMakeFiles/save_videos_vot.dir/all] Error 2 make: *\ [all] Error 2

Can anyone help me?

charlesyann commented 8 years ago

same question, do you know how to solve it? @rongzhimd

rongzhimd commented 8 years ago

Sorry. I have not foud the solution. Unfortunately, I am really not familiar with this part.

2016-10-27 17:17 GMT+08:00 Longchao notifications@github.com:

same question, do you know how to solve it? @rongzhimd https://github.com/rongzhimd

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davheld/GOTURN/issues/17#issuecomment-256590056, or mute the thread https://github.com/notifications/unsubscribe-auth/AV9sCd1BjbKTFUfGaLS7uto9LTu7vEFTks5q4GwUgaJpZM4Ket-b .

junhocho commented 8 years ago

Hi, I could fix it. Look at your open your ./GCMakeLists.txt and somewhere mentions: message("Caffe_DIR is ${Caffe_DIR}") #specify Caffe_DIR in /cmake/Modules/findCaffe.cmake

This is actually /cmake/Modules/FindCaffe.cmake and go into the directory

And Set your Caffe_DIR at line 5

set(Caffe_DIR /home/pil/caffe-mine)

then also change at line 17 :

from ${Caffe_DIR}/lib) to ${Caffe_DIR}/build/lib)

shixiangwen commented 7 years ago

I get this question too, can anyone help me?

lidongxuan commented 7 years ago

Thank you! @junhocho

NaYou114 commented 6 years ago

I get this question too,have you solved it?@rongzhimd