Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » opencv compilation error when using StereoSGBM
opencv compilation error when using StereoSGBM [message #628266] Thu, 23 September 2010 10:53
Wilco  is currently offline Wilco Friend
Messages: 1
Registered: September 2010
Junior Member
I had a working opencv disparity mapping program using opencv 2.1 but decided to try instead of StereoBM a different algorithm that is new in 2.1 StereoSGBM.

When compiling I get the following error:
Quote:
**** Internal Builder is used for build ****
g++ -IC:\tools\OpenCV2.1\include\opencv -IC:\Program Files\IDS\uEye\Develop\include -O0 -g3 -Wall -c -fmessage-length=0 -oCameraClass.o ..\CameraClass.cpp
..\CameraClass.cpp: In function 'void CameraClass()':
..\CameraClass.cpp:21:13: warning: converting to non-pointer type 'HIDS' from NULL
g++ -IC:\tools\OpenCV2.1\include\opencv -IC:\Program Files\IDS\uEye\Develop\include -O0 -g3 -Wall -c -fmessage-length=0 -omain.o ..\main.cpp
g++ -IC:\tools\OpenCV2.1\include\opencv -IC:\Program Files\IDS\uEye\Develop\include -O0 -g3 -Wall -c -fmessage-length=0 -ostereoCamera.o ..\stereoCamera.cpp
g++ -LC:\tools\OpenCV2.1\lib -LC:\Program Files\IDS\uEye\Develop\Lib -oStereoDepthSegmentation.exe stereoCamera.o main.o CameraClass.o -lcv210 -lcv210d -lcvaux210 -lcvaux210d -lcxcore210 -lcxcore210d -lhighgui210 -lhighgui210d -luEye_api -lcxts210 -lml210
stereoCamera.o: In function `Z18ProcesCameraStreamv':
C:\eclipse_workspace\StereoDepthSegmentation\Debug/../stereo Camera.cpp:458: undefined reference to `cv::StereoSGBM::StereoSGBM()'
C:\eclipse_workspace\StereoDepthSegmentation\Debug/../stereo Camera.cpp:458: undefined reference to `cv::StereoSGBM::~StereoSGBM()'



The only main difference I can see is that StereoBM what I used before is defined in cv.h while the new one is defined in cv.hpp
Annoyingly enough, it just easily works when I try this with Visual studio.

I already updated mingw so I now have g++ 4.5.0 but that does the same as the old 3.4.5

I suspect it's something silly but I have no clue what setting I'm missing.
Previous Topic:Include paths subdirectories
Next Topic:CDT Debugging with GDB is not working anymore
Goto Forum:
  


Current Time: Wed Sep 25 09:41:16 GMT 2024

Powered by FUDForum. Page generated in 0.02758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top