linux重装后配一些库

#先要设置软件源

sudo apt-get update
sudo apt-get upgrade

#播放器
sudo apt-get install smplayer


qt
sudo apt-get install qt-sdk
sudo apt-get install qt4-dev-tools #开发包   
sudo apt-get install qtcreator #IDE  
sudo apt-get install qt4-doc #开发帮助文档   
sudo apt-get install qt4-qtconfig #配置工具   
sudo apt-get install qt4-demos #DEMO源码  QT

#网上下载qt安装包 
#https://download.qt.io/official_releases/qt/
chmod +x [包名字]
./[包名字]


#build-essential
#我们在ubuntu上编译程序,不是说有了gcc就行了,需要先apt-get install build-essential,
#这个包提供了很多编译相关的软件包,里面有:
#dpkg-dev fakeroot g++ g++-4.6 libalgorithm-diff-perl
#  libalgorithm-diff-xs-perl libalgorithm-merge-perl
#  libdpkg-perl libstdc++6-4.6-dev libtimedate-perl
sudo apt-get install build-essential

#gl
sudo apt-get install libgl1-mesa-dev


#git
sudo apt-get install git

cmake
sudo apt-get install cmake

eigen3
sudo apt-get install libeigen3-dev

opencv 
sudo apt-get install libopencv-dev

#网上下载opencv软件包
#https://opencv.org/releases.html
#安装依赖
sudo apt-get install build-essential cmakelibgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
mkdir build
cd build
cmake .. 
make 
sudo make install




qglviewer
sudo apt-get install libqglviewer-dev
sudo apt-get install freeglut3

boost
sudo apt-get install libboost-dev

g2o
git clone https://github.com/RainerKuemmerle/g2o.git
cd g2o
mkdir build
cd build
cmake ..
make -j4
sudo make install

glog
sudo apt-get install libgoogle-glog-dev 

ceres
sudo apt-get install libatlas-base-dev
sudo apt-get install libsuitesparse-dev
git clone https://ceres-solver.googlesource.com/ceres-solver
cd ceres-slover
mkdir build
cd build
cmake .. 
make 
sudo make install



posted @ 2018-08-23 19:22  narjaja  阅读(224)  评论(0编辑  收藏  举报