tar zxvf glog-0.3.4.tar.gz
cd glog-0.3.4
./configure
make
sudo make install
安装完成后可以在目录/usr/local/lib下看到liblog.so动态库# CMake
sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev
# BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# SuiteSparse and CXSparse (optional)
# - If you want to build Ceres as a *static* library (the default)
# you can use the SuiteSparse package in the main Ubuntu package
# repository:
sudo apt-get install libsuitesparse-dev
# - However, if you want to build Ceres as a *shared* library, you must
# add the following PPA:
sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687
sudo apt-get update
sudo apt-get install libsuitesparse-dev
# 依赖项安装完成,安装Ceres
tar zxf ceres-solver-1.3.0.tar.gz
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver-1.3.0
make -j3
make test
# Optionally install Ceres, it can also be exported using CMake which
# allows Ceres to be used without requiring installation, see the documentation
# for the EXPORT_BUILD_DIR option for more information.
make install
安装完成后可以在/usr/local/lib下发现libceres_shared.so文件等将该部分:
poolsize = matlabpool('size');
if poolsize == 0 %if not, we attemp to do it:
matlabpool open;
end
修改为:
if isempty(gcp('nocreate'))
parpool;
end
#安装gcc
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7
sudo apt-get install g++-4.7
#查看g++安装路径
which gcc
#先切换到g++安装路径下
cd /usr/bin/ //我电脑中g++安装路径
#在该路径下将gcc链接到gcc-4.7
sudo rm g++ //删除原来的符号链接
sudo ln -s g++-4.7 g++ //重新创建链接
g++ -v //可见版本已经为4.7了
ln -sf /usr/lib/x86_-linux-gnu/libstdc++.so.6 /usr/local/MATLAB/R2015b/sys/os/glnxa/libstdc++.so.6
参考链接:
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- stra.cn 版权所有 赣ICP备2024042791号-4
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务