Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv .lib used to work but not anymore

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??

Opencv .lib used to work but not anymore

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 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; $(OPENCV_BUILD)\include;

-> linker -> general -> added lib directories -> $(OPENCV_BUILD)\x86\vc11\lib; $(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??