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

后端 未结 2 630
逝去的感伤
逝去的感伤 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} )
    

提交回复
热议问题