caffe – goturn 安装问题汇总


Caffe_DIR is /home/zagncq/benchmark/caffe-master/build/
Caffe_INCLUDE_DIRS is /home/zagncq/benchmark/caffe-master/include/caffe
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:

修改 ~/GOTURN/cmake/Modules/FindCaffe.cmake文件第5行,将caffe绝对路径加上即可。

2. 未找到 caffe.pb.h

$$/home/embedded/caffe/include/caffe/blob.hpp:9:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory$$



cd caffe/src/caffe/proto/
protoc --cpp_out=/home/yourdir/caffe/include/caffe/ caffe.proto #必须使用绝对路径

3.boost regex 问题

‘boost::re_detail_106200::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const’未定义的引用

4.tx2 安装 opencv失败

sudo: unable to resolve host tegra-ubuntu
[sudo] password for nvidia: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libopencv-dev : Depends: libopencv-core-dev (=
                 Depends: libopencv-ml-dev (=
                 Depends: libopencv-imgproc-dev (=
                 Depends: libopencv-video-dev (=
                 Depends: libopencv-objdetect-dev (=
                 Depends: libopencv-highgui-dev (=
                 Depends: libopencv-calib3d-dev (=
                 Depends: libopencv-flann-dev (=
                 Depends: libopencv-features2d-dev (=
                 Depends: libopencv-legacy-dev (=
                 Depends: libopencv-contrib-dev (=
                 Depends: libopencv-ts-dev (=
                 Depends: libopencv-photo-dev (=
                 Depends: libopencv-videostab-dev (=
                 Depends: libopencv-stitching-dev (=
                 Depends: libopencv-gpu-dev (=
                 Depends: libopencv-superres-dev (=
                 Depends: libopencv-ocl-dev (= but it is not going to be installed
                 Depends: libopencv2.4-java (= but it is not going to be installed
                 Depends: libopencv2.4-jni (= but it is not going to be installed
                 Depends: libcv-dev (=
                 Depends: libhighgui-dev (=
                 Depends: libcvaux-dev (=


sudo apt install libopencv-ocl-dev libopencv2.4-java libopencv2.4-jni

5.waring  it doesnt matter

/home/nvidia/GOTURN/src/native/vot.cpp: In member function ‘vot_region* VOT::vot_initialize()’:
/home/nvidia/GOTURN/src/native/vot.cpp:237:43: warning: ignoring return value of ‘__ssize_t getline(char**, size_t*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
     getline(&linebuf, &linesiz, inputfile);


libGOTURN.a(vot.cpp.o): In function `VOT::vot_initialize()':
vot.cpp:(.text+0x250): undefined reference to `trax_server_setup'
vot.cpp:(.text+0x264): undefined reference to `trax_server_wait'
vot.cpp:(.text+0x26c): undefined reference to `trax_image_get_path'
vot.cpp:(.text+0x288): undefined reference to `trax_server_reply'
vot.cpp:(.text+0x2bc): undefined reference to `trax_region_get_rectangle'
vot.cpp:(.text+0x2c4): undefined reference to `trax_region_release'
vot.cpp:(.text+0x2cc): undefined reference to `trax_image_release'
libGOTURN.a(vot.cpp.o): In function `VOT::vot_quit()':
vot.cpp:(.text+0x4a4): undefined reference to `trax_cleanup'
libGOTURN.a(vot.cpp.o): In function `VOT::vot_frame()':
vot.cpp:(.text+0x644): undefined reference to `trax_server_wait'
vot.cpp:(.text+0x658): undefined reference to `trax_image_get_path'
vot.cpp:(.text+0x66c): undefined reference to `trax_image_release'
libGOTURN.a(vot.cpp.o): In function `VOT::vot_report(vot_region*)':
vot.cpp:(.text+0x6f0): undefined reference to `trax_region_create_rectangle'
vot.cpp:(.text+0x704): undefined reference to `trax_server_reply'
vot.cpp:(.text+0x70c): undefined reference to `trax_region_release'


  • 首先下载trax,

    git clone

  • 然后编译trax

    cd trax
    mkdir build
    cd build 
    cmake ..
  • 修改CMakeLists.txt of GOTURN around line 84:把trax的实际路径写上

    #Note: If can't find trax, please download trax and build it, then uncomment the below line and set the path manually
    target_link_libraries(${PROJECT_NAME}home/your dir/trax/build/