x86_64下多平台编译qt4.8.6

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值