zoukankan      html  css  js  c++  java
  • opencv-3.4.1编译到84%错误记录

    collect2: error: ld returned 1 exit status
    samples/gpu/CMakeFiles/example_gpu_driver_api_multi.dir/build.make:125: recipe for target 'bin/example_gpu_driver_api_multi' failed
    make[2]: *** [bin/example_gpu_driver_api_multi] Error 1
    CMakeFiles/Makefile2:39358: recipe for target 'samples/gpu/CMakeFiles/example_gpu_driver_api_multi.dir/all' failed
    make[1]: *** [samples/gpu/CMakeFiles/example_gpu_driver_api_multi.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....

    在samples/gpu/CMakeLists.txt添加金色部分

     foreach(sample_filename ${all_samples})
       ocv_define_sample(tgt ${sample_filename} gpu)
       ocv_target_link_libraries(${tgt} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
      if(HAVE_CUDA AND NOT ANDROID)
        ocv_target_link_libraries(${tgt} ${CUDA_CUDA_LIBRARY})
      endif()
       if(HAVE_opencv_xfeatures2d)
         ocv_target_link_libraries(${tgt} opencv_xfeatures2d)
       endif()  

  • 相关阅读:
    模板为webpack的目录结构
    实例和内置组件
    微信小程序之富文本解析
    微信小程序获取输入框(input)内容
    for循环的语法和执行顺序
    循环
    选择结构(二)
    选择结构
    算术运算
    变量
  • 原文地址:https://www.cnblogs.com/gris/p/10834573.html
Copyright © 2011-2022 走看看