Ask Your Question
0

Building Project stopped with errors on cv/ opencv2.4.5/X64/eclipse

asked 2013-05-31 05:22:41 -0600

shamidi gravatar image

updated 2013-07-02 04:36:26 -0600

Hello !

I'm trying the example "DisplayImage.cpp" I got in your documentation (this site) but I couldn't understand the error in build step according to the include (I set the path).

I installed Opencv 2.4.5 on Windows 7 (64 bits) & eclipse-cpp-helios-SR2-win32-x86_64 & the last Mingw linker. I entered the settings in the properties manager pages.

While building the projet, I get this :

**** Internal Builder is used for build               ****
g++ -IC:\opencv\build\include -IC:\opencv\build\include\opencv -IC:\opencv\build\include\opencv2 -IC:\opencv\build\x64\vc10\bin -IC:\MinGW\bin -O0 -g3 -Wall -c -fmessage-length=0 -osrc\DisplayImage.o ..\src\DisplayImage.cpp
g++ -LC:\opencv\build\x64\vc10\lib -LC:\opencv\build\x64\mingw\lib -LC:\opencv\build\x64\mingw\bin -oDisplayImage.exe src\DisplayImage.o -lopencv_calib3d245d -lopencv_contrib245d -lopencv_core245d -lopencv_features2d245d -lopencv_flann245d -lopencv_gpu245d -lopencv_highgui245d -lopencv_imgproc245d -lopencv_legacy245d -lopencv_ml245d -lopencv_nonfree245d -lopencv_objdetect245d -lopencv_photo245d -lopencv_stitching245d -lopencv_ts245d -lopencv_video245d -lopencv_videostab245d
src\DisplayImage.o: In function `main':
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:18: undefined reference to `cv::imread(std::string const&, int)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:26: undefined reference to `cv::namedWindow(std::string const&, int)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:27: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:27: undefined reference to `cv::imshow(std::string const&, cv::_InputArray const&)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:29: undefined reference to `cv::waitKey(int)'
src\DisplayImage.o: In function `~Mat':
C:/opencv/build/include/opencv2/core/mat.hpp:278: undefined reference to `cv::fastFree(void*)'
src\DisplayImage.o: In function `ZN2cv3MataSERKS0_':
C:/opencv/build/include/opencv2/core/mat.hpp:298: undefined reference to `cv::Mat::copySize(cv::Mat const&)'
src\DisplayImage.o: In function `ZN2cv3Mat7releaseEv':
C:/opencv/build/include/opencv2/core/mat.hpp:367: undefined reference to `cv::Mat::deallocate()'
collect2: ld a retourné 1 code d'état d'exécution
Build error occurred, build is stopped

Could you help please ?
Thank's in advance regards

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-07-02 02:27:37 -0600

Nenad Bulatovic gravatar image
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2013-05-31 05:22:41 -0600

Seen: 2,531 times

Last updated: Jul 02 '13