Ask Your Question

bernardoreis's profile - activity

2016-08-30 08:37:33 -0600 answered a question How to build opencv 3.1 with CUDA 7.5 and contrib modules?

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.