- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
保留问答环节:
我在使用最新 (v.2.4.2) OpenCV 版本时遇到了一个奇怪的问题,安装失败并出现以下错误:
In file included from /OpenCV-2.4.2/modules/core/src/system.cpp:460:
/OpenCV-2.4.2/release/modules/core/version_string.inc:37:1: warning: missing terminating " character In file included from /OpenCV-2.4.2/modules/core/src/system.cpp:460: /OpenCV-2.4.2/release/modules/core/version_string.inc:37: error: missing terminating " character
那么到底出了什么问题呢? 看看我的回答。
最佳答案
如 this bug report 中所述问题是 cmake 的旧版本 (2.8.2)。所以解决方案是获取 cmake 源的新副本,编译它并使用它来安装 OpenCV。
注意 18/09/2012:这也适用于带有 cmake 2.8.9 的 Ubuntu 12.04!
# get the cmake src
wget http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz
# extract archive
tar xfvz cmake-2.8.8.tar.gz
# build the new version
cd cmake-2.8.8
cmake .
make
sudo make install
# get the OpenCV src
wget -O OpenCV-2.4.2.tar.bz2 http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.2/OpenCV-2.4.2.tar.bz2/download
# extract it …
tar -xvf OpenCV-2.4.2.tar.bz2
# build it
mkdir build
cd build
/usr/local/bin/cmake -D CMAKE_BUILD_TYPE=RELEASE ..
make
sudo make install
# setup OpenCV
sudo echo “/usr/local/lib” >> /etc/ld.so.conf
sudo ldconfig
就是这样。
关于unix - 为 Debian Lenny 编译 OpenCV 2.4.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11470217/
我在安装 java 后在 Debian Lenny 上安装了 Eclipse (apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk
嘿, 尝试将 qooxdoo 与 debian lenny 一起使用。qooxdoo SDK 1.2 create-application.py 好的,但我在generate.py 上遇到了问题: /
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
我正在尝试在我的 debian - lenny 上编译 VXI11 源代码,但出现此错误: make rpcgen -M vxi11.x make: rpcgen: command not found
如果世界上某个地方已经有这个问题的答案,请提前道歉,但我已经花了 3 小时尝试将它安装到我的生产服务器中,但我没有任何进展。 我的需求: 我想在我的服务器上运行 git 命令(例如:推送、提交等)。为
在 OpenSuse 11.2 上,我成功编译、链接并运行了以下代码,该代码使用 unixODBC 为 MySQL 数据库安装了数据源: #include #include #include #
我在一些服务器上安装的 Python (2.6) 编译时没有我现在需要的 curses 支持,尽管服务器安装了 libncurses5,Python 没有为它编译绑定(bind),所以当我“导入 cu
我正在 Debian Lenny 上从源代码构建 python2.6。 (./configure make make altinstall) 我不希望它与现有的任何东西发生冲突,但我希望它位于 bas
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 9 年前。 Improve this
短篇小说: 我需要 sqlite3 的 >3.7.3 版本,但我目前有 3.5.?。如何升级软件包? 长话短说: 尝试安装 etherpad-lite(etherpad 的 node.js 实现)。由
我尝试通过下载源代码并执行以下命令安装pycrypto模块python setup.py install,然后出现错误 running install running build running bu
我在生产服务器上遇到 unicode 文件名问题。当我尝试保存文件时,发生 UnicodeEncodeError 异常。 Devserver 工作正常。 www-data 的所有语言环境都是“en_U
保留问答环节: 我在使用最新 (v.2.4.2) OpenCV 版本时遇到了一个奇怪的问题,安装失败并出现以下错误: In file included from /OpenCV-2.4.2/modul
我正在使用 Selenium 测试我的网站,它使用 Firefox 打开一个 URL,登录并在页面上做一些事情,然后注销并关闭 Firefox。这一切在 Windows 7 上运行良好。代码以: We
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 10 年前。 Improve thi
我按照 node.js wiki 中的说明安装了 node.js。所以我将 debian sid 源放在我的源列表中并安装了 Node 。之后,我使用 wiki 站点的 curl cmd 安装了 np
我想在我的 php ini 文件中关闭生产环境中的 display_errors,并将错误保存在日志文件中。在尝试了几个小时都没有成功之后,我决定征求建议。 我做了什么: 在根据php信息加载的ini
我试过了 apt-get update 在 Debian Lenny 上,但出现以下错误。如何解决此问题以便可以安装 PostgreSql 9.1? root:~# apt-get update Ig
我正在尝试通过 NPM 在 Debian Lenny (5.0) 上永久安装,但我在安装过程中收到以下错误,开头为: > node-waf configure build npm ERR! TypeE
我想用 XtraDB 将我的 Debian Lenny 32 位服务器上的 MySQL 5.1 替换为 Percona Server。主要原因是 Percona 的性能更好。 它是运行着许多服务的生产
我是一名优秀的程序员,十分优秀!