Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

first example code error

hi all i've installed opencv version 3 from github....but when i try to do the first example code using Eclipse ( the code line way works well) i obtain this error and i don't know what to do. Thank you for your help

18:42:03 * Incremental Build of configuration Debug for project DI * make all Building file: ../src/DI.cpp Invoking: GCC C++ Compiler g++ -I/usr/local/include/opencv -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/DI.d" -MT"src/DI.d" -o "src/DI.o" "../src/DI.cpp" Finished building: ../src/DI.cpp

Building target: DI Invoking: GCC C++ Linker g++ -L/usr/local/lib -o "DI" ./src/DI.o -lopencv_core -lopencv_imgproc -lopencv_highgui /usr/bin/ld: ./src/DI.o: undefined reference to symbol '_ZN2cv6imreadERKNS_6StringEi' //usr/local/lib/libopencv_imgcodecs.so.3.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: * [DI] Errore 1

18:42:03 Build Finished (took 763ms)

click to hide/show revision 2
retagged

updated 2014-11-09 08:36:06 -0500

berak gravatar image

first example code error

hi all i've installed opencv version 3 from github....but when i try to do the first example code using Eclipse ( the code line way works well) i obtain this error and i don't know what to do. Thank you for your help

18:42:03 * Incremental Build of configuration Debug for project DI * make all Building file: ../src/DI.cpp Invoking: GCC C++ Compiler g++ -I/usr/local/include/opencv -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/DI.d" -MT"src/DI.d" -o "src/DI.o" "../src/DI.cpp" Finished building: ../src/DI.cpp

Building target: DI Invoking: GCC C++ Linker g++ -L/usr/local/lib -o "DI" ./src/DI.o -lopencv_core -lopencv_imgproc -lopencv_highgui /usr/bin/ld: ./src/DI.o: undefined reference to symbol '_ZN2cv6imreadERKNS_6StringEi' //usr/local/lib/libopencv_imgcodecs.so.3.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: * [DI] Errore 1

18:42:03 Build Finished (took 763ms)