Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error #72

Open
3bobo opened this issue May 20, 2018 · 1 comment
Open

Make error #72

3bobo opened this issue May 20, 2018 · 1 comment

Comments

@3bobo
Copy link

3bobo commented May 20, 2018

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!

@RJVisee44
Copy link

any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants