Error building test code in VS2012

asked 2013-08-17 03:02:14 -0600

RamiJack gravatar image

updated 2013-08-17 03:23:38 -0600

When i am building the test code in VS2012, i am not able to build the solution, getting the following error. Can anyone help me out?

image description

edit retag flag offensive close merge delete

Comments

Does clean build and then rebuild help?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-17 03:26:08 -0600 )edit
1

Yes i tried that also...but it didn't work then also

RamiJack gravatar imageRamiJack ( 2013-08-17 04:18:21 -0600 )edit

Sure you are using the vc11 folder for libs and dlls? VS2012 only works with visual compiler 11.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-17 13:44:00 -0600 )edit

Yes I am using vc11 folder for libs and dlls. Even i tried with VS2010 and vc10 libs and dlls but still getting the same error.

RamiJack gravatar imageRamiJack ( 2013-08-18 23:48:57 -0600 )edit

It seems that your linker isn't found, which is part of the installation of visual studio. Do you have any other compilers/linkers installed on your system?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-19 01:52:46 -0600 )edit

This time i am not getting the above error, because i started the tutorials from scratch and setup the dev environment freshly. But just before the program is getting executed, now its throwing the Error Saying "cannot locate opencv_core246d.dll" . going through the tutorials once more...cross checking it. i will Let you know once the issue is resolved.

RamiJack gravatar imageRamiJack ( 2013-08-24 11:03:28 -0600 )edit

the dll's are placed correctly and the PATH environment variables are correctly set. and still getting the same cannot locate dll's error

RamiJack gravatar imageRamiJack ( 2013-08-24 13:16:14 -0600 )edit

if you are using the tutorials, it says to put the include path to $OPENCV_DIR$\include. However this is wrong and should be $OPENCV_DIR$....\include because the include folder is two parent folders up. A fix for this had been merged and this will be so in next release.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-24 15:56:29 -0600 )edit

This i have fixed in my Environment Variable.In Tutorials its mentioned that OPENCV_DIR variable should point to "C:\OpenCV\Build\x86\vc11" but i modified the variable to point to "C:\Opencv\Build" and made other changes correctly.

RamiJack gravatar imageRamiJack ( 2013-08-25 00:58:56 -0600 )edit

Now the issue i am facing with is of "dll's not found". Even though my PATH environment variable includes the "%OPENCV_DIR%\x86\vc11\bin".

RamiJack gravatar imageRamiJack ( 2013-08-25 01:01:14 -0600 )edit