example compilation error
Hi
I have installed the opencv successfully and then i tried to compile the very first example that came along with the tutorial on the website. I am getting the following error:
/////////////////////////////////////////////// sajjad@sajjad-G74Sx:~/Documents/test/opencv/first$ cmake . -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/sajjad/Documents/test/opencv/first sajjad@sajjad-G74Sx:~/Documents/test/opencv/first$ make Scanning dependencies of target DisplayImage [100%] Building CXX object CMakeFiles/DisplayImage.dir/main.cpp.o /home/sajjad/Documents/test/opencv/first/main.cpp: In function ‘int main(int, char)’: /home/sajjad/Documents/test/opencv/first/main.cpp:17:33: error: ‘CV_WINDOW_AUTOSIZE’ was not declared in this scope make[2]: [CMakeFiles/DisplayImage.dir/main.cpp.o] Error 1 make[1]: [CMakeFiles/DisplayImage.dir/all] Error 2 make: * [all] Error 2
///////////////////////////////////////////////
Do i have to set any LD_LIBRARY_PATH and environment variable path after installation ?
Thanks
did you get the opencv code from github ? any chance , you're compiling against the master(3.0) branch ?
it's cv::WINDOW_AUTOSIZE there.
Sorry sajis997,by mistake i typed a slightly wrong command of compiling,but i edited it now,also i have posted other anwer,if still the problem doesn't go off please share your code,I will be happy to look to help you out :)