Ask Your Question

gordo's profile - activity

2019-06-13 07:25:01 -0600 received badge  Famous Question (source)
2018-05-18 05:33:05 -0600 received badge  Notable Question (source)
2015-12-13 14:13:12 -0600 received badge  Popular Question (source)
2013-12-24 11:40:15 -0600 commented question CV_LOAD_IMAGE_COLOR not defined in this scope

I'm guessing this:

/usr/local/lib/libopencv_*.so.3.0.0

confirms your suspicion. I'm pretty sure that I downloaded the bits from the download page, but I can't confirm it.

Thanks!

2013-12-23 18:53:12 -0600 asked a question CV_LOAD_IMAGE_COLOR not defined in this scope

I cut-n-paste'd the source code from the "Load, Modify, and Save an Image". When I attempt to compile, I am encountering

g++ load.cpp

load.cpp: In function ‘int main(int, char**)’: load.cpp:17:29: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file ^

load.cpp:25:36: error: ‘CV_WINDOW_AUTOSIZE’ was not declared in this scope namedWindow( "Display window", CV_WINDOW_AUTOSIZE );// Create a window for display.

So, the compiler is finding the correct include files, but the include files are missing the required #define's.

I think this goes back to the trouble I had building opencv. Cmake kept accessing the static files, and not the shared files (this is a 64 bit machine). I was attempting to debug this problem, and I used cmake -i to build the makefile. I accepted all the default values, and my problem went away. Apparently, the default values don't put the necessary #define's in the includes.

What did I miss during the cmake step??