Menu

#12 Problems Compiling Raspicam with OpenCV 3.0 due to undeclared variables

1.0
open
nobody
None
2015-08-21
2015-04-27
No

Hey,
I have problems, compiling raspicam_cv.cpp because of undeclared variables (a lot: CV_PROP_FORMAT, CV_PROP_*...)
I use openCV 3.0. with Raspicam 0.1.3.
I tried to remove the "CV_" because I saw the raw variables in opencv2/videoio.hpp didnt have the same variables without the "CV_" prefix, but it wont work for me.

can anyone help me?
Thanks!

Discussion

  • Steffen Ehrle

    Steffen Ehrle - 2015-04-28

    I solved the Problem, by writing cv:: instead of CV_ for every variable.
    If anyone else has this issue.

     
  • Jan Kucera

    Jan Kucera - 2015-08-21

    Hi, I also have the same problem on Raspberry Pi with OpenCV2 (I guess it is 2.4.10). So I commented out the compilation of open-cv stuff in the main CMakeLists.txt file (the few lines beginning with "FIND_PACKAGE(OpenCV)") and it compiles OK then (but the opencv part is missing). I guess the solution you posted would work for me too...

     

Log in to post a comment.