Problems setting up OpenCV with VS2013

asked 2014-11-11 13:57:34 -0500

spartanhooah gravatar image

The first problem I have is when I try to use the environment variable $(OPENCV_DIR) when adding additional include directories. When I start typing ..\, I get a list of directories form inside the Microsoft Visual Studio 12.0 directory! I have confirmed that in the command line %OPENCV_DIR% gets the response "'C:\OpenCV\build\x64\vc12' is not recognized as an internal or external command, operable program or batch file". I have temporarily worked around this by hard-coding the path to these directories.

The second problem comes when I try to run the example program. It builds without any errors, but when I run it, I see the message "'"C:\OpenCV\Projects\OpenCVTest\x64\Debug\OpenCVTest.exe"' is not recognized as an internal or external command, operable program or batch file."

What's going wrong?

edit retag flag offensive close merge delete