问题和解决方案如下:

[email protected]:~/DisplayImage$make

[ 50%] Linking CXX executable DisplayImage
/usr/bin/ld: 找不到 -lopencv_dep_cudart
collect2: error: ld returned 1 exit status
CMakeFiles/DisplayImage.dir/build.make:120: recipe for target 'DisplayImage' failed
make[2]: *** [DisplayImage] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/DisplayImage.dir/all' failed
make[1]: *** [CMakeFiles/DisplayImage.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

[email protected]:~/DisplayImage$cmake -DCUDA_USE_STATIC_CUDA_RUNTIME=OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jennifer/DisplayImage
[email protected]:~/DisplayImage$make
[ 50%] Linking CXX executable DisplayImage
[100%] Built target DisplayImage
[email protected]:~/DisplayImage$./DisplayImage lena.jpeg
init done

opengl support available

opencv 2413测试, /usr/bin/ld: 找不到 -lopencv_dep_cudart

相关文章:

  • 2022-03-01
  • 2022-01-27
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-01-05
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2021-06-08
  • 2021-06-30
  • 2022-12-23
相关资源
相似解决方案