How to debug an external library (OpenCV) in Visual C++?

后端 未结 3 1237
情深已故
情深已故 2020-12-31 20:34

I am developing a project in VC++2008. The project uses the OpenCV library (but I guess this applies to any other library). I am working with the Debug configuration, the li

3条回答
  •  伪装坚强ぢ
    2020-12-31 21:05

    Confirm: are you actually compiling the OpenCV library from source, or are you just linking against it?

    A couple of possibilities come to mind:

    It sounds like the debug info for the OpenCV library is not available (the PDB files). You may have to extend PATH to reference the directory containing these files. It seems to me that there is a way of doing this from VC++ but I'm a few years out from using the tool...

    Is cvStererCalibrate also a "macro function"? If so, find out what real function it refers to and set the breakpoint in the library.

    Finally, although you have already said so, it never hurts to go back and confirm that full debugging has been activated for everything in the project, including external libraries.

    I don't know if this helps, but its a good place to start.

提交回复
热议问题