Ask Your Question
0

Opencv .lib used to work but not anymore

asked 2013-05-22 08:50:45 -0600

william13200 gravatar image

updated 2013-05-22 08:51:50 -0600

Hi there, i'm using VS2012 and i got everything working for the past few weeks thanks to some people here helping me out. I've been working on using serial libraries and opencv at the same time, and now i've got everything bugging again it's driving me nuts.

my OS is 64 bits my environmnt variables are: added a new variable "OPENCV_BUILD" ( with the value c:\opencv\build ) ( i got this from the last tutorial i've been folowing, since the other didn't work anymore)

system path i've added : %OPENCV_BUILD%\x86\vc11\bin (without the";" because it's the very last one)

then in my VS project: -> properties -> C/C++ -> general -> -> $(OPENCV_BUILD)\include;

-> linker -> general -> added lib directories -> $(OPENCV_BUILD)\x86\vc11\lib;

-> input -> other depedences -> opencv_core244d.lib;etc... all the d.lib

when i code i got everything well recognised again ( blue words, libraries not underlined) but when i compile i get ERROR Cxxxx: 'cv' is not a class name 'image' 'waitkey' 'imshow' etc.. unfound or undeclared identifier

what i am doing wrong? only using the PATH environmnt variable i got the same problem do you think i should use x64 rather than x86? ( it used to work for 86 )

I had a lot of trouble getting opencv working and all of a sudden i got everything bugging again.. What could have cause this kind of trouble??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-27 13:31:39 -0600

william13200 gravatar image

Still need help, changing to x64, removing %build% didn't change anything anyone could give me some advices please? thank for your time

edit flag offensive delete link more

Comments

it probably helps, if don't try to solve all problems at once, but divide them into 3 steps, solve one by one:

  1. get it to compile: ( that's about the include paths, picking the right headers, and nothing else )

  2. get it to link: ( that's about choosing libraries, and their respective paths, and nothing else )

  3. get it to run: ( that's about the global PATH var, and the route to your dlls, and again, guess what ... )

berak gravatar imageberak ( 2013-05-27 14:03:42 -0600 )edit

OK Thank you for the tips; I'm adding the build directory and getting errors when generating the file. do you think this is the problem?

example of errors: "imshow .. video ... namedWindow.. unidentified, unfoundable"

william13200 gravatar imagewilliam13200 ( 2013-05-28 04:35:13 -0600 )edit

Question Tools

Stats

Asked: 2013-05-22 08:50:45 -0600

Seen: 245 times

Last updated: May 27 '13