I am getting an error [I get an error opencv_core242.dll is missing] when trying to compile a test program from http://karanjthakkar.wordpress.com/2012/11/21/usin-opencv-2-4-2-with-visual-studio-2012-on-windows-7-64-bit/ .
I tried to add the specified information in something called a environment variable, however I do not know if I am doing it correctly. Can anyone clearly state step-by-step what I am supposed to do to add as the value? I put the paths to the directories that I need but it doesn't seem to resolve this error when I try to build the program.
@Code Head has got one of the answer.
Or you can just copy all the dll's in opencv/build/vc11/bin
into your program directory.
I know this is really an ugly solution but this surely works for a starter. At least I myself find it really useful when I first started using OpenCV.
Here's what you need to do:
In "Local Windows Debugger -> Environment" Write:
Path=$(Path);C:\\path_to_opencv\\build\\x86\\vc11\\bin
or (if compiling 64 bit):
Path=$(Path);C:\\path_to_opencv\\build\\x64\\vc11\\bin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.