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

Compilation for only CPU mode #17

Open
kushalvyas opened this issue Mar 12, 2017 · 2 comments
Open

Compilation for only CPU mode #17

kushalvyas opened this issue Mar 12, 2017 · 2 comments

Comments

@kushalvyas
Copy link

I want to compile the library for a plain CPU . Installation asks for Opencv_contrib with CUDA support.

Scanning dependencies of target od_common
[ 30%] [ 32%] [ 34%] Building CXX object common/CMakeFiles/od_common.dir/pipeline/ObjectDetector.cpp.o
[ 36%] Building CXX object common/CMakeFiles/od_common.dir/pipeline/ODScene.cpp.o
Building CXX object common/CMakeFiles/od_common.dir/utils/utils.cpp.o
Building CXX object common/CMakeFiles/od_common.dir/utils/ODFeatureDetector2D.cpp.o
In file included from
open_detection/opendetection/common/utils/ODFeatureDetector2D.cpp:6:0:
open_detection/opendetection/common/utils/ODFeatureDetector2D.h:16:38: fatal error: opencv2/cudafeatures2d.hpp: No such file or directory
#include <opencv2/cudafeatures2d.hpp>
^
compilation terminated.
make[2]: *** [common/CMakeFiles/od_common.dir/utils/ODFeatureDetector2D.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [common/CMakeFiles/od_common.dir/all] Error 2
make: *** [all] Error 2

Any hack around this ?

@shyam671
Copy link

Hi kushal,
If go through the code base of OD many of the functions require cuda support and moreover you also need to install opencv along with cudafeatures2d .

@anuj-rathore
Copy link

anuj-rathore commented Mar 27, 2017

Since CUDA is one of the dependancy, so you will be needing:

  • A CUDA-capable GPU
    
  • A supported version of Microsoft Windows
    
  • A supported version of Microsoft Visual Studio
    
  • the NVIDIA CUDA Toolkit (available at http://developer.nvidia.com/cuda-downloads)
    

You can get more information here:
http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#ixzz4cVj6ykqx

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