linux下qt封装boost库,Linux下编译boost库和qt和ImageMagick

本文档详细介绍了如何将依赖Windows环境的PCIE工程移植到Linux系统中,涉及到了cmake的调整、SVN的安装与使用、boost库、Qt以及ImageMagick的编译步骤。通过这一系列操作,读者可以了解如何在Linux下进行跨平台的工程管理和编译工作。
摘要由CSDN通过智能技术生成

需要把整个PCIE的工程移植到Linux下,当初就是用cmake来管理的工程的。但是命令行之类的还是需要改动。改动还不少,cmake里面很多东西都依赖于windows。包括我用cmake重新管理的工程IMageMagick,相当繁琐,工作量也大。

当然,首先需要在Linux下安装SVN:

http://www.cnblogs.com/macula/archive/2012/02/12/2347637.html

http://www.blogjava.net/jasmine214--love/archive/2011/01/12/342839.html

sudo apt-get install subversion一下就行了

然后

svn checkout url [desnation dir]

然后输入本机的账户的密码,之后再输入svn的账户和密码。然后就从server上抓取文件了

boost库的编译:

http://blog.csdn.net/summer_liuwei/article/details/6224467

http://www.boost.org/boost-build2/doc/html/index.html  (官方文档,墙裂推荐)

boost工程大概是这样配置:

chmod 777 ./bootstrap.sh

chmod 777 ./tools/build/v2/engine/build.sh

./bootstrap.sh

./b2 address-model=64  --with-system --with-filesystem --with-program_options --with-regex --with-python --with-date_time link=static threading=multi runtime-link=static --build-dir=${CMAKE_BINARY_DIR} --stagedir=${CMAKE_BINARY_DIR} stage

qt的编译:

http://qt-project.org/doc/qt-5/configure-options.html

Qt工程大概是这样配置:

./configure -prefix /home/username/qt -static -confirm-license -opensource -qt-zlib -no-libpng -no-libjpeg -qt-freetype -qt-xcb -opengl desktop -nomake tests -nomake examples -skip activeqt -skip declarative -skip doc -skip graphicaleffects -skip quick1 -skip sensors -skip serialport -skip tools -skip translations -skip webkit -skip webkit-examples -skip x11extras -skip xmlpatterns -skip location -skip connectivity

make install

ImageMagick的工程大概是这样配置的:

./configure --prefix=/home/username/ImageMagick --with-pic --with-gnu-ld

make install

都是自带的工具配置编译的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值