Ask Your Question
0

aruco.hpp no such file or directory

asked 2015-10-18 09:25:34 -0600

the_joker1987 gravatar image

Hello, i have a problem, with the opencv_conrib, i have installed and build both opencv and opencv-contrib. Using the guide in github. But now when i excute the command: g++ detect_board.cpp

I have the following error: aruco.hpp no such file or directory. It is refered to the following instruction: #include<opencv2 aruco.hpp=""> But the file is there. It is in the directory opencv_contrib-master/modules/aruco/include/aruco.hpp. Someone can help me? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-10-21 04:10:43 -0600

mshabunin gravatar image

You should provide paths to OpenCV include and libraries directories to compiler. You can achieve this is by using cmake to build your application. See the example project: https://github.com/Itseez/opencv/tree...

Other method is even easier: since you are trying to build packaged example, you just need to enable BUILD_EXAMPLES cmake option when building OpenCV library:

cmake -DBUILD_EXAMPLES=ON -DOPENCV_EXTRA_MODULES_PATH=<path-to-contrib>/modules <path-to-opencv>
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-10-18 09:25:34 -0600

Seen: 3,214 times

Last updated: Oct 21 '15