opencv compilation error when using StereoSGBM [message #628266] |
Thu, 23 September 2010 10:53 |
Wilco 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02758 seconds