Ask Your Question

sajis997's profile - activity

2014-02-12 17:47:03 -0600 commented answer example compilation error

Thanks Abhishek for your your effort ! Unfortunately, the problem persists. It would be nice if you share your email address with me so that i can attach my source and you can run it own your end.

2014-02-11 09:55:28 -0600 commented answer example compilation error

Do i really need to all these. These are not mentioned inside the tutorial at all. I already tried

pkg-config --cflags opencv

And the output i got is as follows:

-I/usr/local/include/opencv -I/usr/local/include

Then i tried pkg-config --libs opencv and got the similar outout.

2014-02-10 11:43:55 -0600 asked a question 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