Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 322

Can't find opencv.hpp, however it is not installed in /usr/include/

$
0
0
Context: I am a new Ubuntu 16.04 user and I am trying to get OpenCV running on my system. I had some problems downloading and installing OpenCV with CUDA installed, so I used the solution as proposed by daveselinger in his last post here: https://github.com/opencv/opencv/issues/6677. This left me with OpenCV installed at: `~/Documents/my\ folder/opencv/`. Notably, this also includes: `~/Documents/my\ folder/opencv/include/opencv2/opencv.hpp`. Now as far as I have been able to figure out, there should (also?) be a copy at: `/usr/include/opencv2/opencv.hpp`. At least, if I have interpreted the answer here correctly: http://www.answers.opencv.org/question/14712/opencvhpp-not-in-opencv2/. Now the issue is that there is no folder "openCV2" (nor a folder "openCV") in `/usr/include/`. This probably is the reason why `#include ` leads to "fatal error: opencv2/opencv.hpp: No such file or directory". Does anyone know how to solve this error? Normally I would try several times of reinstalling, but installing openCV took around 4 hours, so I'd like to take a more structured approach if possible. Edit: the solution was that I failed to use `sudo make install` in the installation of openCV. This caused the files to fail to be copied to `/usr/local/include`. That in turn made them impossible to find for programs trying to use those files.

Viewing all articles
Browse latest Browse all 322

Latest Images

Trending Articles



Latest Images