SLAM环境配置--一键安装Opencv2.4脚本

直接运行
sh opencv_install.sh
即可成功安装opencv2

#!/bin/bash

sysInstall='apt-get'
echo "安装unzip" 
sudo apt-get --yes --force-yes install unzip 
echo "安装cmake" 
sudo  apt-get --yes --force-yes install cmake 
echo "安装build-essential" 
sudo  apt-get --yes --force-yes install build-essential
echo "安装gcc-c++" 
sudo  apt-get --yes --force-yes install gcc-c++
echo "安装gcc" 
sudo  apt-get --yes --force-yes  install gcc
echo "安装gtk+-devel" 
sudo apt-get --yes --force-yes install gtk+-devel
echo "安装gimp-devel" 
sudo apt-get --yes --force-yes install gimp-devel
echo "安装gimp-devel-tools" 
sudo apt-get --yes --force-yes install gimp-devel-tools
sudo  apt-get --yes --force-yes install zlib-devel
sudo  apt-get --yes --force-yes install gimp-help-browser
sudo  apt-get --yes --force-yes  install libtiff-devel
sudo  apt-get --yes --force-yes install libjpeg-devel
sudo  apt-get --yes --force-yes install libpng-devel
sudo  apt-get --yes --force-yes  install gstreamer-devel
sudo  apt-get -

你可能感兴趣的:(视觉SLAM)