Create Aruco Marker in Visual Studio 2012 : opencv_aruco320.dll is missing from your computer

asked 2017-03-11 22:15:51 -0500

raisa_ gravatar image

updated 2017-03-11 22:27:22 -0500

I followed the entire steps from OpenCV Basics - 15 - Aruco Markers tutorial video : youtube.com/watch?v=ZI9uZ9EEeYQ about how to create aruco marker using OpenCV in Visual Studio(by George Lecakes). However after build the markers were not generated, and when I run the application I encountered error :

The program can't start because opencv_aruco320.dll is missing from your computer. Try reinstalling to fix this problem

What I have done ?

  1. VC++ Directories Include Dirctory : Specified. OK
  2. C\C++ Additional Include Directory : Specified. OK
  3. Linker Additional Library Directories : Specified. OK
  4. Use Library Dependency Input : Checked
  5. Linker Input Additional Dependencies : opencv_aruco320.lib, opencv_calib3d320.lib, opencv_ccalib320.lib, opencv_core320.lib, opencv_highgui320.lib, opencv_imgcodecs320.lib, opencv_imgproc320.lib, opencv_video320.lib, opencv_videoio320.lib (Here, I'm using Release)
  6. Opencv bin & lib Path in Windows Environment : Specified. OK
  7. Restart both of VS2012 or Windows.

Any advice ? Thanks in advance.

edit retag flag offensive close merge delete

Comments

can you find opencv_aruco320.dll in your computer? Have you build with success aruco module in opencv_contrib?

LBerger gravatar imageLBerger ( 2017-03-12 04:44:13 -0500 )edit

Yes, I can find it inside the exact same folder that I have specified. Of couse.. I have build aruco module using CMake.

raisa_ gravatar imageraisa_ ( 2017-03-12 07:30:30 -0500 )edit

Check if you are in debug or release (x320d.dll or x320.dll). If you have stil problem copy all dll where is your exe file. Of course it will not solve your problem for next project...

LBerger gravatar imageLBerger ( 2017-03-12 09:32:53 -0500 )edit

Yes, I actually also did the dirty trick by copying all the .dll files I need in my Release executable folder (contained .exe file). I just wonder if there's a more decent way to fix this error.

raisa_ gravatar imageraisa_ ( 2017-03-12 21:22:18 -0500 )edit

Yes you have to add in Path variable (systeme varaible) folder where all release dll are and all debug dll too.

LBerger gravatar imageLBerger ( 2017-03-13 01:53:41 -0500 )edit