我目前在rapsberry pi上有opencv 2.4.1,并且一直在寻找将其升级到2.4.10的方法,这是最新的稳定版本。我是否需要进行全新安装或有升级方法吗?
答案 0 :(得分:1)
您必须下载源代码并编译:
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也可能有用。