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

fatal error: opencv2/gpu/gpu.hpp: No such file or directory #24

Closed
VinACE opened this issue Jun 14, 2018 · 1 comment
Closed

fatal error: opencv2/gpu/gpu.hpp: No such file or directory #24

VinACE opened this issue Jun 14, 2018 · 1 comment

Comments

@VinACE
Copy link

VinACE commented Jun 14, 2018

(cv) vinsent_research@instance-group-1-3p16:~/dense_flow$ sudo make
Scanning dependencies of target denseFlow_gpu
[ 50%] Building CXX object CMakeFiles/denseFlow_gpu.dir/denseFlow_gpu.cpp.o
/home/vinsent_research/dense_flow/denseFlow_gpu.cpp:4:31: fatal error: opencv2/gpu/gpu.hpp: No such file or directory
compilation terminated.
CMakeFiles/denseFlow_gpu.dir/build.make:62: recipe for target 'CMakeFiles/denseFlow_gpu.dir/denseFlow_gpu.cpp.o' failed
make[2]: *** [CMakeFiles/denseFlow_gpu.dir/denseFlow_gpu.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/denseFlow_gpu.dir/all' failed
make[1]: *** [CMakeFiles/denseFlow_gpu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I have installed all the necessary packages by following
https://github.com/VinACE/Install-TensorFlow-OpenCV-GPU-Ubuntu-17.10
my opencv 3.4.1 install in ubutu 18

sudo cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_PYTHON_EXAMPLES=ON
-D INSTALL_C_EXAMPLES=OFF
-DPYTHON2_EXECUTABLE=/usr/bin/python2
-D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib-3.4.1/modules
-D PYTHON_EXECUTABLE=
/.virtualenvs/cv/bin/python
-D WITH_CUDA=ON
-D CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-5
-D CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-5
-D BUILD_EXAMPLES=ON ..

@wanglimin
Copy link
Owner

This code is for opencv2.4 and ubuntu 14.04.

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