OpenCV2.4.6 + CUDA5.0 + VS2010, in debug mode, don't display images

后端 未结 2 627
逝去的感伤
逝去的感伤 2021-01-26 03:00

winodws 7, 64-bit, Graphics adapter is NVIDIA GeForce GT 610, I have correctly installed the graphics driver and CUDA 5, I use CMake correctly compiled OpenCV2.4.6 + GPU.In Rele

相关标签:
2条回答
  • 2021-01-26 03:17

    Use CMake to link libraries and include directories. It makes your life easier and also for anyone else who will be extending/reading your code in the future.

    For example, to link OpenCV, use the follow lines of code:

    FIND_PACKAGE( OpenCV REQUIRED )
    TARGET_LINK_LIBRARIES( myProject ${OpenCV_LIBS} )
    
    0 讨论(0)
  • 2021-01-26 03:34

    Be sure to link the debug libraries and only the debug libraries. I once had this problem while mixing debug and non debug libraries in debug mode.

    0 讨论(0)
提交回复
热议问题