构建dense_flow(https://github.com/yjxiong/dense_flow)时,
Value = @parm
其中../../../3rd-party/opencv-2.4.13/已经建成。
然而,当我做的时候
OpenCV_DIR=../../../3rd-party/opencv-2.4.13/build/ cmake .. -DCUDA_USE_STATIC_CUDA_RUNTIME=OFF
这样的错误就出来了。 不知怎的,我试图链接这样的库,但是我找不到那个库。
答案 0 :(得分:0)
我遇到了同样的问题,添加了以下符号链接对我有用:
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppial.so /usr/local/lib/libopencv_dep_nppial.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppicc.so /usr/local/lib/libopencv_dep_nppicc.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppicom.so /usr/local/lib/libopencv_dep_nppicom.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppidei.so /usr/local/lib/libopencv_dep_nppidei.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppif.so /usr/local/lib/libopencv_dep_nppif.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppig.so /usr/local/lib/libopencv_dep_nppig.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppim.so /usr/local/lib/libopencv_dep_nppim.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppist.so /usr/local/lib/libopencv_dep_nppist.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppisu.so /usr/local/lib/libopencv_dep_nppisu.so
ln -s /usr/local/cuda-9.2/targets/x86_64-linux/lib/libnppitc.so /usr/local/lib/libopencv_dep_nppitc.so
答案 1 :(得分:-1)
: ../ cmake / templates / OpenCVConfig.cmake.in:
foreach(l ${OpenCV_CUDA_LIBS_ABSPATH})
get_filename_component(_tmp "${l}" NAME_WE)
string(REGEX REPLACE "^lib" "" _tmp "${tmp}")
if(NOT TARGET "opencv_dep${tmp}") # protect against repeated inclusions
add_library("opencv_dep${tmp}" UNKNOWN IMPORTED)
set_target_properties("opencv_dep${_tmp}" PROPERTIES IMPORTED_LOCATION "${l}")
endif()
endforeach()
像这样全部评论, 无需添加:设置(CUDA_USE_STATIC_CUDA_RUNTIME OFF) 与opencv的其他项目链接,将不具有opencv_dep_npp *依赖项