您的位置:首页 > 编程语言 > Qt开发

x86_64下多平台编译qt4.8.6

2016-07-22 21:34 399 查看

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 -j4
make install

make -j4
make 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 install

make -j4
make 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 -j4
make install

make -j4
make install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: