1. 程式人生 > >GOTURN-(達到100FPS的深度學習跟蹤演算法程式碼)

GOTURN-(達到100FPS的深度學習跟蹤演算法程式碼)

本程式碼是基予caffe的linux的, 安裝好caffe之後需要編譯GOTURN程式碼,在編譯過程中會出現如下錯誤:

fatal error: caffe/proto/caffe.pb.h: No such file or directory #include "caffe/proto/caffe.pb.h" 解決方法: 用protoc從caffe/src/caffe/proto/caffe.proto生成caffe.pb.h和caffe.pb.cc [email protected]:~/GOTURN-master/build$ protoc --cpp_out=/home/thomas/GOTURN-master/caffe-master/include/caffe/ caffe.proto   之後在 /home/thomas/GOTURN-master/caffe-master/include/caffe目錄下新建資料夾,命名為proto,然後把編譯出來的caffe.pb.h和caffe.pb.cc放進去 之後,錯誤消失。 附:如出現以下錯誤: libcudart.so.7.5: cannot open shared object file: No such file or directory 解決方法: 64-bit:sudo ldconfig /usr/local/cuda/lib64 參考:使用caffe時編譯出錯 include and lib 使用自己機器編譯的include和lib (caffe/build/lib, caffe/include) caffe.pb.h丟失問題: /home/wuliwei/caffe/include/caffe/blob.hpp:9:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory #include "caffe/proto/caffe.pb.h" 解決方法: 用protoc從caffe/src/caffe/proto/caffe.proto生成caffe.pb.h和caffe.pb.cc
[email protected]
:~/caffe/src/caffe/proto$ protoc --cpp_out=/home/wuliwei/caffe/include/caffe/ caffe.proto  stdc++ linker error: /usr/bin/ld: caffe_cnn_handler.o: undefined reference to symbol '[email protected]@GLIBCXX_3.4' //usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line 是找不到libstdc++.so.6,解決方法是在Makefile中加入: LIBS += -L/usr/lib/x86_64-linux-gnu -lstdc++