zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Linux下编译boost库和qt和ImageMagick

LinuxQt 编译 Boost ImageMagick
2023-09-11 14:19:35 时间

需要把整个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

 

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