在 raspberry pi 上升级 opencv

upgrade opencv on raspberry pi

我目前在我的 rapsberry pi 上安装了 opencv 2.4.1,并且一直在寻找将其升级到最新稳定版本 2.4.10 的方法。我需要重新安装还是有升级的方法?

您必须下载源代码并编译:

wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/opencv-2.4.10.zip

docs 中 linux 的说明基本上是:

Create a temporary directory, which we denote as <cmake_binary_dir>, where you want to put the generated Makefiles, project files as well the object files and output binaries.
Enter the <cmake_binary_dir> and type
cmake [<some optional parameters>] <path to the OpenCV source directory>
For example
cd ~/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
Enter the created temporary directory (<cmake_binary_dir>) and proceed with:
make
sudo make install

ubuntu 14.04 的详尽 tutorial 可能也有用。