你好,游客 登录 注册 搜索
背景:
阅读新闻

x86_64下多平台编译Qt4.8.6

[日期:2017-10-16] 来源:Linux社区  作者:eastonwoo [字体: ]

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

本文永久更新链接地址http://www.linuxidc.com/Linux/2017-10/147674.htm

linux
相关资讯       编译Qt4 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款