Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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 tocv::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 tocv::_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 tocv::waitKey(int)' src\DisplayImage.o: In function ~Mat': C:/opencv/build/include/opencv2/core/mat.hpp:278: undefined reference tocv::fastFree(void*)' src\DisplayImage.o: In function ZN2cv3MataSERKS0_': C:/opencv/build/include/opencv2/core/mat.hpp:298: undefined reference tocv::Mat::copySize(cv::Mat const&)' src\DisplayImage.o: In function ZN2cv3Mat7releaseEv': C:/opencv/build/include/opencv2/core/mat.hpp:367: undefined reference tocv::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

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

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). path).

I installed Opencv 2.4.5 on Windows 7 (64 bits) & eclipse-cpp-helios-SR2-win32-x86_64 & the last Mingw linker. 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':
`main':
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:18: undefined reference tocv::imread(std::string to `cv::imread(std::string const&, int)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:26: undefined reference to cv::namedWindow(std::string `cv::namedWindow(std::string const&, int)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:27: undefined reference tocv::_InputArray::_InputArray(cv::Mat to `cv::_InputArray::_InputArray(cv::Mat const&)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:27: undefined reference to cv::imshow(std::string `cv::imshow(std::string const&, cv::_InputArray const&)'
C:\eclipse\workspace\DisplayImage\Debug/../src/DisplayImage.cpp:29: undefined reference tocv::waitKey(int)'
src\DisplayImage.o: In function ~Mat':
to `cv::waitKey(int)'
src\DisplayImage.o: In function `~Mat':
C:/opencv/build/include/opencv2/core/mat.hpp:278: undefined reference tocv::fastFree(void*)'
src\DisplayImage.o: In function ZN2cv3MataSERKS0_':
to `cv::fastFree(void*)'
src\DisplayImage.o: In function `ZN2cv3MataSERKS0_':
C:/opencv/build/include/opencv2/core/mat.hpp:298: undefined reference tocv::Mat::copySize(cv::Mat to `cv::Mat::copySize(cv::Mat const&)'
src\DisplayImage.o: In function ZN2cv3Mat7releaseEv':
`ZN2cv3Mat7releaseEv':
C:/opencv/build/include/opencv2/core/mat.hpp:367: undefined reference tocv::Mat::deallocate()'
to `cv::Mat::deallocate()'
collect2: ld a retourné 1 code d'état d'exécution
Build error occurred, build is stopped

stopped

Could you help please ?
Thank's in advance regards