How to run sample of OpenCV in Eclipse indigo?-Collection of common programming errors
I follow this tutorial.
I successfully complete all steps when I go to Project->Build all it will give me errors in file. Displayimage.cpp
entire file with red lines.
Please help me how to run sample of OpenCV in my eclipse (I am using ubuntu).
Console display following.
**** Build of configuration Debug for project OpenCV ****
make all
Building file: ../src/Displayimage.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/opencv -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Displayimage.d" -MT"src/Displayimage.d" -o "src/Displayimage.o" "../src/Displayimage.cpp"
../src/Displayimage.cpp: In function ‘int main(int, char**)’:
../src/Displayimage.cpp:45: warning: comparison between signed and unsigned integer expressions
Finished building: ../src/Displayimage.cpp
Building target: OpenCV
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o "OpenCV" ./src/Displayimage.o
./src/Displayimage.o: In function `main':
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:22: undefined reference to `cvLoadImage'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:29: undefined reference to `cvGetSize'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:29: undefined reference to `cvCreateImage'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:30: undefined reference to `cvCreateMemStorage'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:32: undefined reference to `cvCvtColor'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:35: undefined reference to `cvSmooth'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:37: undefined reference to `cvGetSize'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:37: undefined reference to `cvCreateImage'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:38: undefined reference to `cvGetSize'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:38: undefined reference to `cvCreateImage'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:39: undefined reference to `cvCanny'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:42: undefined reference to `cvHoughCircles'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:43: undefined reference to `cvCvtColor'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:47: undefined reference to `cvGetSeqElem'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:52: undefined reference to `cvCircle'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:55: undefined reference to `cvCircle'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:61: undefined reference to `cvNamedWindow'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:62: undefined reference to `cvShowImage'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:64: undefined reference to `cvSaveImage'
/home/rainc/android_setup/workspace/OpenCV/Debug/../src/Displayimage.cpp:65: undefined reference to `cvWaitKey'
collect2: ld returned 1 exit status
make: *** [OpenCV] Error 1
**** Build Finished ****
Originally posted 2013-11-06 03:08:06.