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

Trouble with compiling #12

Open
hirennearlab opened this issue May 20, 2016 · 2 comments
Open

Trouble with compiling #12

hirennearlab opened this issue May 20, 2016 · 2 comments

Comments

@hirennearlab
Copy link

Hi,

I am a new to opencv. I have compiled opencv, VTK, PCL and all other dependencies. but when I try to compile opendetection, I get the following error:

In file included from /opt/opendetection/common/utils/ODFeatureDetector2D.cpp:6:0:
/opt/opendetection/common/utils/ODFeatureDetector2D.h:16:38: fatal error: opencv2/cudafeatures2d.hpp: No such file or directory
#include <opencv2/cudafeatures2d.hpp>
^
compilation terminated.

I checked the file is there in opencv2 folder.

Could you please suggest a solution?

Thank you.

Regards,
Hiren.

@krips89
Copy link
Owner

krips89 commented May 23, 2016

Hi,
This means opencv is not compiled and installed with CUDA. Can you please follow the installation instruction exactly as provided in the website? (http://opendetection.com/installation_instruction.html)

Thanks,
Kripa

@arunavanag591
Copy link

I am having the same problem, I am using CUDA 9.1 and opencv 3.4 and opencv_contrib 3.4 @krips89

opencv cmake flags used:

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_CUDA=ON -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.1 -DOPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules ..
Was this solved???

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

3 participants