Linux环境下一些配置记录

本文档详细介绍了如何解决CMake中TheCXXCompilernotfound错误,并提供了在Ubuntu上安装Boost及其依赖项的步骤。同时涵盖了Sublime Text 3的安装方法,以及一些特定项目的配置技巧。

Cmake出现The CXX Compiler not found错误

sudo apt-get update && sudo apt-get install build-essential

sudo apt-get install libglew-dev

sudo apt-get install freeglut3 freeglut3-dev

sudo apt-get install libXmu-dev libXi-dev

 

安装Sublime Text 3

 

For Sublime-Text-2:

sudo add-apt-repository ppa:webupd8team/sublime-text-2

sudo apt-get update

sudo apt-get install sublime-text

For Sublime-Text-3:

sudo add-apt-repository ppa:webupd8team/sublime-text-3

sudo apt-get update

sudo apt-get install sublime-text-installer

 

OpenFlipper/OpenFlipper/widgets/coreWidget/CoreWidget.hh

加入#include <unistd.h>

export QTDIR=/usr/share/qt4

export QTINC=/usr/share/qt4/include

export QTLIB=/usr/share/qt4/lib

export PATH=$QTDIR/bin:$PATH

 

Installing Boost on Ubuntu with an example of using boost array:

Install libboost-all-dev and aptitude

sudo apt-get install libboost-all-dev
 
sudo apt-get install aptitude
 
aptitude search boost

 

1, 首先安装Boost,下载最新的boost ,解压到某个目录

首先要编译生成boost安装工具bjam

进入boost目录执行:

./bootstrap.sh

然后执行刚生成的

./bjam

编译开始,大约半小时,全部编译结束。

./bjam install 将当前目录下编译好的头文件拷贝到相应位置:在/usr/local/include下有头文件夹boost,在/usr/local/lib下有boost的库

具体可参考:http://www.linuxidc.com/Linux/2013-07/87573.htm 这个配置不会出错。

2, 安装m4、GMP、mfpr、

m4可以直接从软件中心进行下载,或者apt-get install也可以;gmp和mfpr可以直接下载源码再进行编译,gmp可以使用./configure ,make , make check, make install设置,mfpr在安装时需要依赖于mfpr,推荐使用”./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib“ ”make 、make check、 make install” 进行建立,但本人在“make check”时却出现了问题:"error while loading shared libraries : libgmp.so.3 : can't open shared object file",最终也没能解决,但是也可以install。希望有知道的朋友可以支会声。

3,安装cgal 可参考http://www.cgal.org/Manual/latest/doc_html/installation_manual/contents.html

cmake-gui .

make

sudo make install

默认头文件装在 usr/local/include/,  库文件装在 usr/local/lib/.

转载于:https://www.cnblogs.com/jast/p/4913885.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值