1
It is very important to initialize the qt-iphone library. To do the following to the beginning to main. This function will re-enter main.
2
#ifdef Q_WS_IOS
3
    QiOSInit(argc, argv);
4
#endif
5
6
If the application is not terminating as expected add an exit(0); to the end of main. These are some of the current limitations to the library.
7
8
9
-------------------
10
   Configuration
11
-------------------
12
13
To build for the iPhone Simulator (using the 4.2 SDK) - Shadow Build recommended:
14
15
../<path_to_qt>/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
16
17
To build for the iPhone Device - Shadow Build recommended:
18
19
../<path_to_qt>/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
20
21
To build for the iPad Device - Shadow Build recommended:
22
23
../<path_to_qt>/configure -xplatform ios-arm7-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 -little-endian
24
25
Note that currently the iPhone SDK used when building for the device is set in mkspecs/iphone-device-g++42/qmake.conf