Ask Your Question

Revision history [back]

The first waning (LNK4044) is caused by an error on CMakeLists.txt of tag 3.1.0, as it is shown by this SO answer. As shown there, you can either change the following excerpt of CMakeLists.txt

foreach(p ${CUDA_LIBS_PATH})
  set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} -L${p})
endforeach()

to

foreach(p ${CUDA_LIBS_PATH})
  set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${CMAKE_LIBRARY_PATH_FLAG}${p})
endforeach()

OR

Use a new version of the source code, as it has been fixed since the commit cb4818.