zoukankan      html  css  js  c++  java
  • 为iphone及iphone simulator编译qt库

    获取qt库,打开terminal,键入cd /Users/test/Downloads回车,git clone git://gitorious.org/+qt-iphone/qt/qt-iphone-clone.git 等待片刻,在当前目录会有一个目录qt-iphone-clone,进入目录,打开ios.txt,里面模拟器及真机的编译方法

    按照方法,键入./configure -xplatform iphonesimulator-g++42 -platform macx-ios-g++42 -opensource -ios -no-accessibility -no-qt3support -no-multimedia -no-phonon -no-phonon-backend -no-webkit -no-scripttools -no-sql-mysql -no-sql-odbc -no-cups -no-dbus -no-opengl -static -nomake demos -nomake docs -nomake examples -prefix /libs/qt_742_sim

    执行完后可再执行make

    make install

    如果要删除生成的一些文 件,可以键入 make confclean

    现来编译 iPad版本,需键入./configure -xplatform iphone-device-g++42 -platform macx-g++-i386 -opensource -ios -no-pch -no-accessibility -no-qt3support -no-xmlpatterns -no-multimedia -no-phonon -no-phonon-backend -no-svg -no-webkit -no-scripttools -no-openssl -no-sql-mysql -no-sql-odbc -no-cups -no-iconv -no-dbus -no-opengl -static -nomake tools -nomake demos -nomake docs -nomake examples -nomake translations -prefix /libs/qt_742_armv7

    执行好后进入qt-iphone-clone/src/corlib,打开Makefile.Debug及Makefile.Release,删除 -fasm-blocks,不然会

    报以下错误

    animation/qabstractanimation.cpp:1: error: -fasm-blocks option not supported for ARM
    make[2]: *** [.obj/release-static/qabstractanimation.o] Error 1
    make[1]: *** [release] Error 2
    make: *** [sub-corelib-make_default-ordered] Error 2

    如果还有这种类型的错误 ,也参照这种方式处理

    进入以下目录,将makefile.debug makefile.release里的-fasm-blocks都删掉

    src/corlib

    src/xml

    src/network

    src/sql

    src/testlib

    src/gui

    src/script

    src/declarative

    src/plugins/sqldrivers/sqllite

    src/plugins/bearer/generic

    src/plugins/imageformats/ico

    src/plugins/graphicssystems/trace
    src/imports/folderlistmodel/
    src/imports/particles/
    src/imports/gestures/

    ------------------------------

     该版本是基于一个qt for iphone的移值版本,它的网址是:

    https://qt.gitorious.org/+qt-iphone/qt/qt-iphone-clone

    基于4.8.0的地址是:

    https://qt.gitorious.org/~ianfromafrica/qt/qt-ios-plaszma

    可以用命令获取代码:

    git clone git://gitorious.org/~ianfromafrica/qt/qt-ios-plaszma.git

  • 相关阅读:
    SQL列类型
    垂直显示查询结果
    在mysql中如何写注释语句
    离开Autodesk,开启新篇章
    Autodesk 为其云技术发布新品牌- Autodesk Forge
    Using View and Data API with Meteor
    View and Data API Tips: Constrain Viewer Within a div Container
    View and Data API Tips: Hide elements in viewer completely
    View and Data API Tips : Conversion between DbId and node
    使用AxisHelper帮助理解View and Data API中的坐标系统
  • 原文地址:https://www.cnblogs.com/yuanxiaoping_21cn_com/p/2530632.html
Copyright © 2011-2022 走看看