opencv2.3.0安装时出现error MSB3073: 命令“setlocal“ 和file INSTALL cannot find opencv_ffmpeg230...
2012-02-16 14:01
627 查看
当安装opencv2.3.0,重新编译(debug)install时,经常会碰到这个问题,一开始没有头绪,怎么调都调不出来。但是在仔细查看错误信息并结合网上内容,终于解决了。应该是由ffmpeg引起的,具体内容可以看下面前辈的分享。
步骤是:1.找到外层目录下的cmake_install.cmake文件
2.找到并用”#“注释掉
#IF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
# FILE(INSTALL DESTINATION "¥{CMAKE_INSTALL_PREFIX}/bin" TYPE FILE FILES "D:/Program
#Files/OpenCV-2.3.0/vs2008/bin/Debug/opencv_ffmpeg230d.dll")
#ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
#IF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
# FILE(INSTALL DESTINATION "¥{CMAKE_INSTALL_PREFIX}/lib" TYPE FILE FILES "D:/Program
#Files/OpenCV-2.3.0/vs2008/lib/Debug/opencv_ffmpeg230d.lib")
#ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
3.重新编译所有内容
详细请看:http://blog.csdn.net/lzq668/article/details/7016986和http://www.byywee.com/page/M0/S591/591361.html
另外补充一下,http://opencv.itseez.com/doc/user_guide/ug_highgui.html中关于支持openni的内容”Configure OpenCV with OpenNI support by setting texttt{WITH_OPENNI} flag in CMake“,我的理解就是在cmake中添加一个选项,搜索 with_openni,然后重新configure和generate,注意OPENNI_LIB_DIR的路径需要手动配置。具体项目可能还要再在include
files和 lib文件中输入openni的路径。
步骤是:1.找到外层目录下的cmake_install.cmake文件
2.找到并用”#“注释掉
#IF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
# FILE(INSTALL DESTINATION "¥{CMAKE_INSTALL_PREFIX}/bin" TYPE FILE FILES "D:/Program
#Files/OpenCV-2.3.0/vs2008/bin/Debug/opencv_ffmpeg230d.dll")
#ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
#IF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
# FILE(INSTALL DESTINATION "¥{CMAKE_INSTALL_PREFIX}/lib" TYPE FILE FILES "D:/Program
#Files/OpenCV-2.3.0/vs2008/lib/Debug/opencv_ffmpeg230d.lib")
#ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "¥{CMAKE_INSTALL_COMPONENT}" STREQUAL "main")
3.重新编译所有内容
详细请看:http://blog.csdn.net/lzq668/article/details/7016986和http://www.byywee.com/page/M0/S591/591361.html
另外补充一下,http://opencv.itseez.com/doc/user_guide/ug_highgui.html中关于支持openni的内容”Configure OpenCV with OpenNI support by setting texttt{WITH_OPENNI} flag in CMake“,我的理解就是在cmake中添加一个选项,搜索 with_openni,然后重新configure和generate,注意OPENNI_LIB_DIR的路径需要手动配置。具体项目可能还要再在include
files和 lib文件中输入openni的路径。
相关文章推荐
- OpenCV 2.3.0 编译错误之 file INSTALL cannot find opencv_ffmpeg230d.dll(无法找到opencv_ffmpeg230d.dll)
- OpenCV 2.3.0 编译错误之 file INSTALL cannot find opencv_ffmpeg230d.dll(无法找到opencv_ffmpeg230d.dll)
- 安装VisualDSP++出现Install cannot proceed.Could not find XML file or the XML file may be corrupted!
- 安装VisualDSP++出现Install cannot proceed.Could not find XML file or the XML file may be corrupted!
- opencv编译安装中出现 file INSTALL cannot set permissions on这种问题
- centos7 安装 gflags 出现config.status: error: cannot find input file: src/Makefile.in
- Linux安装命令出现如下错误:cannot find a valid baseurl for repo :base/7x86_64
- 安装tensorflow,出现libcudart.so.7.5: cannot open shared object file: No such file or directory
- 执行npm安装模块的命令 Cannot find module
- rm: cannot remove `libtoolT': No such file or directory 安装Apr出现的问题
- 安装PHP出现错误:Cannot find MySQL header
- 安装maven的eclipse插件出现Cannot complete the install because one or more required items could not be found
- centos下安装jdk后,出现该错误cannot execute binary file
- 安装libmad、libjpeg库时出现:libpng15.so.15 或 libjpeg : cannot open shared object file的解决方法
- matlab安装时出现这样的错误怎么办?The installer cannot read the mwinstall.dll file, This is probably due to a CD r
- Ruby on Rails 安装出现`require’: cannot load such file — openssl (LoadError)的解决方法
- linux系统中安装jdk出现bash: ./java: cannot execute binary file 问题
- [置顶] yum命令后出现libldap-2.4.so.2: cannot open shared object file
- easy_install 或者pip 安装时出现unable to find vcvarsall.bat解决方法
- Java 调用 FFMPEG 命令时用 url 作为输入源,Linux 下出现 “no such file or directory” 问题的解决