Compiling Qt for iOS (UIKit beacon)

I tried to compile Qt for iOS, but I had some crazy problems that no one else seems to have (at least from what I read on the last day).

I followed the instructions from this article: Article URL

  • I cloned the latest Qt 4.8 from git: $ git clone git://gitorious.org/qt/qt.git
  • I created a folder qt-lighthouse-ios-simulator, cd to it.
  • I ran a long line of code from the article: $ ../qt/configure -qpa -xplatform qpa/macx-iphonesimulator-g++ -arch i386 -developer-build -release -opengl es2 -no-accessibility -no-qt3support -no-multimedia -no-phonon-backend -no-svg -no-webkit -no-scripttools -no-openssl -no-sql-mysql -no-sql-odbc -no-cups -no-iconv -no-dbus -static -nomake tools -nomake demos -nomake docs -nomake examples -nomake translations
  • o pensource license
  • yes I accept the agreement

I get the following errors:

In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Accessibility.h:13, from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/HIServices.h:49, from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:34, from generators/mac/pbuilder_pbx.cpp:56: /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h:65: error: CGCharCode has not been declared /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h:65: error: CGKeyCode has not been declared

After you came across this, going there and there, and did not find anything useful (even nothing about the fact that CGKeyCode or CGCharCode is actually, I decided to "hack" it and just added the definitions to pbuilder_pbx.cpp:

typedef u_int16_t CGCharCode; /* Character represented by event, if any */ typedef u_int16_t CGKeyCode; /* Virtual keycode for event */

. qcore_mac_p.h, , , u_int16_t,

typedef unsigned short u_int16_t; /* compile, god damn you!!! */

.

, :

ld: in /System/Library/Frameworks//CoreGraphics.framework/CoreGraphics, missing required architecture x86_64 in file for architecture x86_64

, . ?

:

  • gcc --version: i686-apple-darwin10-g++ - 4.2.1
  • iOS SDK: 4.2, 4.3
  • X: 10.6.7
  • Xcode ( ): 4.0.2
+5
1

- , Mac OS X 10.7.1

, , qmake .

0

All Articles