0

Using OpenCV 2.4.10 (same case with 2.3.1) I got this trouble when compling my project in Visual Studio 2012 error LNK1104: cannot open file 'opencv_core2410d.lib' I added PATH Variables; on Visual Studio, I done Additionnal Include Directories; and Input Linker is :

opencv_core2410d.lib
opencv_imgproc2410d.lib
opencv_highgui2410d.lib
opencv_ml2410d.lib
opencv_video2410d.lib
opencv_features2d2410d.lib

and else Libraries Please help (My code was just to test if OpenCV works with VS1012)

Screens:

https://i.sstatic.net/8mySR.jpg

https://i.sstatic.net/Cmykc.jpg

2
  • BTW, Get the vc9 lib folder out of your Visual Studio 2010 paths. Remember it is not safe to mix and match versions of Visual Studio or mix and match Debug and Release. Commented Dec 11, 2014 at 15:37
  • Also in your explorer you are showing x64 libraries but using Visual Studio 2010 to generate a 32 bit application in the other screen capture. Good thing you are correctly using the x86 libraries in that screen capture. Commented Dec 11, 2014 at 15:39

1 Answer 1

3

You don't add the paths to additional include directories (that's where it looks for headers), but under "Additional Library Directories", under the linker section of the project properties.

Sign up to request clarification or add additional context in comments.

9 Comments

I did !! two libs: ****/opencv/build/include/lib & ****/opencv/build/include
@BiLLiXx are the files actually there? Is the error that it can't find them? If so, the path is probably misspelled or you didn't fill in the correct section.
Of course files already exists !! everything is okay, but <I got this error ! dunnow why !! I tried 2012 & 2010 Visual Studio, with 2.4.10 & 2.3.1 & even 1.0.0 opencv HEEEELP >_<
@BiLLiXx Shouting and exclamation marks won't help. First, calm down. Second, understand that visual studio works this way - you tell it the directories to look in and what files to look for. It's unlikely it's a bug with the IDE. Can you post 2 screenshots - one with the files in the directory, one with your project settings and additional include directories?
@BiLLiXx that's a different issue, post another question. ;)
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.