You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote these in CMakeLists.txt: set(Caffe_DIR /home/zqk/caffe) set(Caffe_INCLUDE_DIRS /home/zqk/include)
and cmake ..,but here are my error: 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: Caffe_LIBRARIES linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN
-- Configuring incomplete, errors occurred!
so I set set(Caffe_LIBRARIES /home/zqk/caffe/include/caffe) in CMakeLists.txt, and cmake passes with warning:
WARNING: Target "show_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_imagenet" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_imagenet" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "save_videos_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "save_videos_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "train" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "train" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
and then make error:
[ 20%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/loader_imagenet_det.cpp.o
[ 22%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/loader_vot.cpp.o
[ 25%] Building CXX object CMakeFiles/GOTURN.dir/src/network/regressor.cpp.o
In file included from /home/zqk/work/track/GOTURN/src/network/regressor.cpp:1:0:
/home/zqk/work/track/GOTURN/src/network/regressor.h:4:27: fatal error: caffe/caffe.hpp: No such file or directory
compilation terminated.
CMakeFiles/GOTURN.dir/build.make:254: recipe for target 'CMakeFiles/GOTURN.dir/src/network/regressor.cpp.o' failed
make[2]: *** [CMakeFiles/GOTURN.dir/src/network/regressor.cpp.o] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/GOTURN.dir/all' failed
make[1]: *** [CMakeFiles/GOTURN.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
is it because that the caffe/include files don't link to the src/ code? and how to solve it? thanks!
The text was updated successfully, but these errors were encountered:
I wrote these in CMakeLists.txt:
set(Caffe_DIR /home/zqk/caffe)
set(Caffe_INCLUDE_DIRS /home/zqk/include)
and
cmake ..
,but here are my error: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:
Caffe_LIBRARIES
linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN
linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN
linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN
linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN
linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN
linked by target "GOTURN" in directory /home/zqk/work/track/GOTURN
-- Configuring incomplete, errors occurred!
so I set
set(Caffe_LIBRARIES /home/zqk/caffe/include/caffe)
in CMakeLists.txt, and cmake passes with warning:WARNING: Target "show_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_imagenet" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_imagenet" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "GOTURN" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_alov" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "save_videos_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "save_videos_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "train" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "train" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "test_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "show_tracker_vot" requests linking to directory "/home/zqk/caffe/include/caffe". Targets may link only to libraries. CMake is dropping the item.
and then make error:
[ 20%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/loader_imagenet_det.cpp.o
[ 22%] Building CXX object CMakeFiles/GOTURN.dir/src/loader/loader_vot.cpp.o
[ 25%] Building CXX object CMakeFiles/GOTURN.dir/src/network/regressor.cpp.o
In file included from /home/zqk/work/track/GOTURN/src/network/regressor.cpp:1:0:
/home/zqk/work/track/GOTURN/src/network/regressor.h:4:27: fatal error: caffe/caffe.hpp: No such file or directory
compilation terminated.
CMakeFiles/GOTURN.dir/build.make:254: recipe for target 'CMakeFiles/GOTURN.dir/src/network/regressor.cpp.o' failed
make[2]: *** [CMakeFiles/GOTURN.dir/src/network/regressor.cpp.o] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/GOTURN.dir/all' failed
make[1]: *** [CMakeFiles/GOTURN.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
is it because that the
caffe/include
files don't link to thesrc/
code? and how to solve it? thanks!The text was updated successfully, but these errors were encountered: