x86_64下多平台编译qt4.8.6

来源:互联网 发布:ubuntu创建用户和目录 编辑:程序博客网 时间:2024/05/26 02:55

x86_64下多平台编译qt4.8.6

qt-everywhere-opensource-src-4.8.6.tar.gz



1) 编译:linux x86_64:

installdir="`pwd`/mylocal"myoption="-I ."mkdir -p $installdir# make confclean./configure -nomake examples make -j4make installmake -j4make install


2) 编译:linux i386:

<pre name="code" class="cpp">installdir="`pwd`/mylocal"myoption="-I ."mkdir -p $installdir# make confclean./configure -prefix $installdir -platform linux-g++-32 -fast -nomake examples -nomake demos -nomake tools -no-webkit -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg && { make -j4; }make installmake -j4make install


 Incorrect register `%rbp' used with `l' suffix 这是错误提示
出错的文件是qatomic_i386.h这个头文件

报错, 网上解决方案:

提出了一个解决办法 我按照那个办法 把172行的cmpxchgl换成cmpxchg就可以了 我重新make了一次 果然这个地方不报错了 但是报了下面的一个地方 188行 于是我又把183的xchgl改成了xchg 现在还在编译中 目前还没有报错



2) 编译:linux win32:

installdir="`pwd`/mylocal"myoption="-I ."mkdir -p $installdir# make confclean./configure -prefix $installdir -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- -nomake examples make -j4make installmake -j4make install


0 0
原创粉丝点击