Compile the QT library for iPhone and iPhone Simulator

Source: Internet
Author: User

Obtain the QT library, open terminal, type CD/users/test/downloads, press enter, git clone git: // gitorious.org/#qt-iphone/qt/qt-iphone-clone.git plugin, and compile the simulator and real machine in it.

Enter. /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-plugin-no-OpenGL-static-nomake demos-nomake docs-nomake examples-Prefix/libs/qt_742_sim

Make can be executed again after execution.

Make install

To delete some generated files, type make confclean

To compile the iPad version, enter. /configure-xplatform iPhone-device-G ++ 42-platform macx-G ++-i386-opensource-Ios-no-PCH-no-Accessibility-no-qt3support-no-xmlpatterns- no-multimedia-no-phonon-backend-no-SVG-no-WebKit-no-scripttools-no-OpenSSL-no-SQL-mysql-no-SQL- ODBC-no-cups-no-iconv-no-plugin-no-OpenGL-static-nomake tools-nomake demos-nomake docs-nomake examples-nomake translations-Prefix/libs/qt_742_armv7

After execution, go to QT-iPhone-clone/src/corlib, open makefile. debug and makefile. release, and delete-FASM-blocks. Otherwise

The following error is reported:

Animation/qiniactanimation. cpp: 1: Error:-FASM-blocks option not supported for ARM
Make [2]: *** [. OBJ/release-static/qiniactanimation. O] Error 1
Make [1]: *** [release] Error 2
Make: *** [sub-corelib-make_default-ordered] Error 2

If this type of error persists, use this method to handle it.

Go to the following directory and delete-FASM-blocks in makefile. debug makefile. Release.

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/Participant/
Src/imports/Gestures/

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

This version is based on a value-shifting version of QT for iPhone. Its URL is:

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

The 4.8.0-based address is:

Https ://Qt.Gitorious.org /~ Ianfromafrica/Qt/Qt-IOS-Plaszma

You can run the following command to obtain the Code:

Git clone git: // gitorious.org /~ Ianfromafrica/QT/qt-ios-plaszma.git

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.