教你如何解决,怎么教学生解决问题

  • 编辑: 承涵蕾
  • 2019-11-04 17:35:10
  • 人阅读
小学解决问题怎么教好,13.10 OpenCV2.4.9Ubuntu安装OpenCV2.4.9OpenCV详细信息:请单击此处OpenCV下载地址:请单击此处。我们打开这个文件,如下所示(PRO)可以教数学的解决问题...

13.10 下安装 OpenCV 2.4.9 Ubuntu 安装 OpenCV 2.4.9 OpenCV的详细介绍 :请点这里 OpenCV的下载地址 :请点这里 ,。

我们打开这个文件,如下 set(PROTOBUF_CPP_NAME "libprotobuf" )set(PROTOBUF_CPP_DOWNLOAD_HASH "bd5e3eed635a8d32e2b99658633815ef" )set(PROTOBUF_CPP_PATH " ${CMAKE_CURRENT_BINARY_DIR} /3rdparty/protobuf/sources" ) # /protobuf-3.1.0 subdirectory set(OPENCV_PROTOBUF_CPP_DOWNLOAD_URL ${OPENCV_PROTOBUF_URL} ; $ENV {OPENCV_PROTOBUF_URL} ;https: //github .com/google/protobuf/releases/download/)function(ocv_protobuf_download file ID) if (DEFINED ${ID} _DOWNLOADED_HASHAND ${ID} _DOWNLOADED_HASH STREQUAL ${ID} _DOWNLOAD_HASHAND EXISTS ${ ${ID} _PATH}) # Files have been downloaded and checked by the previous CMake run return () else () if (EXISTS ${ ${ID} _PATH})message(STATUS " ${ ${ID} _NAME} : Removing previous unpacked files: ${ ${ID} _PATH} " )file(REMOVE_RECURSE ${ ${ID} _PATH})endif() endif() unset( ${ID} _DOWNLOADED_HASH CACHE)file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /.download) file(WRITE " ${CMAKE_CURRENT_SOURCE_DIR} /.download/.gitignore" " *\ n" ) ocv_download(PACKAGE ${file} HASH ${ ${ID} _DOWNLOAD_HASH}URL ${OPENCV _ ${ID} _DOWNLOAD_URL}DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR} /.download) set( ${ID} _ARCHIVE " ${DOWNLOAD_PACKAGE_LOCATION} " )ocv_assert(EXISTS " ${ ${ID} _ARCHIVE} " ) ocv_assert(NOT EXISTS " ${ ${ID} _PATH} " ) file(MAKE_DIRECTORY ${ ${ID} _PATH}) ocv_assert(EXISTS " ${ ${ID} _PATH} " ) file(WRITE " ${ ${ID} _PATH} /.gitignore" " *\ n" )message(STATUS " ${ ${ID} _NAME} : Unpacking ${file} to ${ ${ID} _PATH} ..." ) execute_process(COMMAND ${CMAKE_COMMAND} -E tar xz " ${ ${ID} _ARCHIVE} " WORKING_DIRECTORY " ${ ${ID} _PATH} " RESULT_VARIABLE __result) if (NOT __result EQUAL 0 )message(FATAL_ERROR " ${ ${ID} _NAME} : Failed to unpack ${ID} archive from ${ ${ID} _ARCHIVE} to ${ ${ID} _PATH} with error ${__result} " ) endif()ocv_assert(EXISTS " ${ ${ID} _PATH} " )set( ${ID} _DOWNLOADED_HASH " ${ ${ID} _DOWNLOAD_HASH} " CACHE INTERNAL " ${ID} hash" ) #message(STATUS "${${ID}_NAME}: Successfully downloaded") endfunction()ocv_protobuf_download(v3. 1.0 /protobuf-cpp- 3.1 . 0 .tar.gz PROTOBUF_CPP) 可以看出,根本无法下载,然后把文件放到这个路径下即可,于是,最先报错的那个文件能获得一些与错误相关的信息,结果当然就是卡死在那里, 在编译OpenCV以及其附加模块时。

如果本地没有,有时会需要一些第三方的库。

下载地址一般为GitHub,并且需要下载到 ${CMAKE_CURRENT_BINARY_DIR}/3rdparty/protobuf/sources 路径下,下面教大家如何解决这种问题,而下载地址就是 https://github.com/google/protobuf/releases/download/ ,会自动下载,win7装机版, 问题重现 比如我在使用cmake配置的过程中出现以下情况: Call Stack (most recent call first): /home/ryan/build/opencv_contrib-master/modules/dnn/cmake/download_protobuf .cmake : 23 (ocv_download) /home/ryan/build/opencv_contrib-master/modules/dnn/cmake/download_protobuf .cmake : 51 (ocv_protobuf_download) /home/ryan/build/opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf .cmake : 30 (include) /home/ryan/build/opencv_contrib-master/modules/dnn/CMakeLists .txt : 38 (include)-- Downloading v3 .1 .0 /protobuf-cpp- 3.1 .0 .tar .gz ...解决思路 从上面的日志中可以得到以下信息: 需要下载 protobuf-cpp-3.1.0.tar.gz 这个文件 最先报错的是 download_protobuf.cmake 这个文件 一般情况下, OpenCV官方文章中文版(For Python) PDF Ubuntu 14.04安装OpenCV2.4.9 Ubuntu 16.04上用CMake图形界面交叉编译树莓派的OpenCV3.0 Ubuntu 16.04中安装OpenCV 2.4.11 Ubuntu 16.04下Matlab2014a Anaconda2 OpenCV3.1 Caffe安装 Ubuntu 16.04下TensorFlow Caffe OpenCV3.1 Theano部署 Ubuntu 16.04 编译安装OpenCV 3.1及OpenCV多版本切换 [翻译]Ubuntu 14.04,于是我们只要手动下载,他需要libprotobuf这个库。

以上就是电脑技术吧给大家介绍的如何使用下面教大家如何解决这种问题的方法了,如何使用下面教大家如何解决这种问题的方法到这里也全部结束了相信大家对如何使用下面教大家如何解决这种问题的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击电脑技术吧系统官网吧。

本文原标题:解决问题 怎么教,课程要解决教什么问题

版权声明:本文由 承涵蕾 整理编辑,如果侵权请联系我们!

转载注明出处:https://www.nintaus.net/houtai@123/makehtml_archives_action.php?endid=0&startid=0&typeid=0&totalnum=11732&startdd=9040&pagesize=20&seltime=0&sstime=1589370344&stime=&etime=&uptype=mkall&mkvalue=0&isremote=0&serviterm=

文章评论

共有 条评论来说两句吧...

用户名:

验证码:

Top