Step through OpenCV source when debugging in Macports OpenCV 2.4.6, Xcode 5

asked 2013-11-21 16:02:39 -0600

drdan14 gravatar image

updated 2013-11-21 16:20:13 -0600

berak gravatar image

I am using OpenCV 2.4.6, installed by Macports on OS X 10.9, along with Xcode 5. I am attempting to use the OpenCV stitching library to make a mosaic of some images. I'm using the stitching.cpp file included with OpenCV. The mosaic works fine for some sets of images, and gives the following error for other sets:

OpenCV Error: Assertion failed ((globalDescIdx>=0) && (globalDescIdx < size())) in getLocalIdx, file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-, line 163
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv- error: (-215) (globalDescIdx>=0) && (globalDescIdx < size()) in function getLocalIdx

I would like to step through the OpenCV code using the debugger in Xcode, but when I attempt to peek into the stitcher.stitch() method in Xcode, all I see is assembly code. Is there a way to make Xcode aware of the OpenCV source or debugging information so that I can step through built-in OpenCV functions to find out what's going wrong?

Thank you in advance!

edit retag flag offensive close merge delete