OpenCv2.4.13 + Aruco

asked 2016-10-12 13:51:37 -0500

DrN22 gravatar image

Hello, I have problem to compile OpenCv with Aruco 2.0.13, i'ts my first time to use Cmake.! So I put link to Aruco in "Source code", and link to build folder. Configure to VS 2013 WIN64 with Specify native compilers, and I have error. I attach in picture. image description

Please explain to me in a simple way how to compile aruco. I have Windows 10, VS 2013.

I tried to use this guide: Tutorial

I was able to compile everything correctly, I added to the VS 2013 and operates aruco but the library does not have files there aruco.h, cvdrawingutils.h. Only charuco and dictionary

Or how to add these files to the files that I was able to compile from the guide.

edit retag flag offensive close merge delete


it won't work with opencv2.4

please get opencv master (3.1 currently) , and try again.

berak gravatar imageberak ( 2016-10-12 18:00:09 -0500 )edit

I get opencv master, and again I put link to Aruco in "Source code", and link to build folder. Then CMake Error at CMakeLists.txt:51 (FIND_PACKAGE): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one.

Could not find a package configuration file provided by "OpenCV" with any of the following names:


So I link to openCV master 3.1 in OPENCV_DIR and again compiel but: Found OpenCV Windows Pack but it has no binaries compatible with your configuration.

I must complie OpenCV-master and add Aruco in opencv_contrib and compile or what?

DrN22 gravatar imageDrN22 ( 2016-10-13 02:01:33 -0500 )edit

instead of an outdated 3rd party tutorial, please follow build iinstructions here

currently, it seems:

  • you did not point cmake to your (main) opencv src folder correctly
  • you did not set the path to opencv_contrib/modules correctly (pointing it at only the aruco folder is wrong)
berak gravatar imageberak ( 2016-10-13 02:15:47 -0500 )edit

opencv_contrib/modules i compile with openCV, and it's a aruco and work in there but not include aruco.h, cvdrawingutils.h, only aruco.hpp, charuco and dictionary.

DrN22 gravatar imageDrN22 ( 2016-10-13 02:19:40 -0500 )edit

That's why I wanted to compile aruco 2.0.13, because there are those files

DrN22 gravatar imageDrN22 ( 2016-10-13 02:23:36 -0500 )edit

no idea, why you'd expect it to be otherwise.

berak gravatar imageberak ( 2016-10-13 02:23:51 -0500 )edit

wait, can it simply be, the onfusion is about the original aruco lib with the (aruco based) extensions in opencv_contrib, which kinda focus on calibration ?

in that case, - apologies, i probably misread your post entirely.

berak gravatar imageberak ( 2016-10-13 02:25:38 -0500 )edit

yes, I want to add oryginal aruco lib, to openCV, but I dont know how.

DrN22 gravatar imageDrN22 ( 2016-10-13 02:28:22 -0500 )edit

well, my bad then, sorry for confusion & waste of time.

berak gravatar imageberak ( 2016-10-13 02:31:44 -0500 )edit

So unfortunately do not help?

DrN22 gravatar imageDrN22 ( 2016-10-13 02:33:36 -0500 )edit