本文共 1692 字,大约阅读时间需要 5 分钟。
#!/bin/sh
gcc
sudo apt-get updatesudo apt-get install build-essential software-properties-common -ysudo add-apt-repository ppa:ubuntu-toolchain-r/test -ysudo apt-get updatesudo apt-get install gcc-snapshot -ysudo apt-get install gcc-6 gcc-6--multilib g++-6 g++-6-multilib -ysudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50 --slave /usr/bin/g++ g++ /usr/bin/g++-5sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 70 --slave /usr/bin/g++ g++ /usr/bin/g++-6
opencv
sudo apt-get remove x264 libx264-dev -ysudo apt-get install build-essential checkinstall cmake pkg-config yasm -ysudo apt-get install git gfortran -ysudo apt-get install libjpeg8-dev libjasper-dev libpng12-dev -ysudo apt-get install libtiff5-dev zlib1g-dev -ysudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libavresample-dev -ysudo apt-get install libxine2-dev libv4l-dev -ysudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev -ysudo apt-get install qt5-default libgtk2.0-dev libtbb-dev libtbb2 -ysudo apt-get install libatlas-base-dev -ysudo apt-get install libopenblas-dev -y sudo apt-get install libfaac-dev libmp3lame-dev libtheora-dev -ysudo apt-get install libvorbis-dev libxvidcore-dev -ysudo apt-get install libopencore-amrnb-dev libopencore-amrwb-dev -ysudo apt-get install x264 v4l-utils -ysudo apt-get install libprotobuf-dev protobuf-compiler -ysudo apt-get install libgoogle-glog-dev libgflags-dev -ysudo apt-get install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen -ysudo apt-get install ffmpeg libdc1394-22-dev libv4l-dev liblapacke-dev -ywget -c -t 0 https://codeload.github.com/opencv/opencv/zip/3.4.8unzip 3.4.8
转载地址:http://mrgof.baihongyu.com/