I am trying to compile Qt for an iOS simulator as described in this article .
At first I ran into this problem , but after that (kinda) decided that I had a few more.
At first, I continued to get this error after executing the first command, which should build qmake ( ../qt/configure ... etc etc):
The OpenGL ES 2.0 functionality test failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in /Qt/qt/mkspecs/qpa/macx-iphonesimulator-g++.
Because I know that I have the SDK 4.3, I delved into it a little more, analyzed the configuration script, and after some trace I saw that the Makefile, generated by qmake, you want to g ++ - 4.2 (which I did not), so I just ln -s g++ g++-4.2and ln -s gcc gcc-4.2c /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/.
I am not sure if the above steps take place, why I write about them. In any case, the configuration step was successful. Now i have run make. After some compiled files, I got the following:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WebServicesCore.h:15,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:37,
from ../../include/QtCore/private/../../../../qt/src/corelib/kernel/qcore_mac_p.h:83,
from ../../include/QtCore/private/qcore_mac_p.h:1,
from /Qt/qt/src/corelib/tools/qlocale_mac.mm:49:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WSMethodInvocation.h:759:
error: 'CFXMLTreeRef' has not been declared
The same error appears several more times, from several lines of WebServicesCore.h. So, basically, here where I am stuck now.
Any help? Yet again?...
Edit: Absolutely, 100% the same thing happens when I configure and try to make Qt for the device (as opposed to the simulator)
Additional Information:
- gcc --version: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (based on Apple Inc. build 5658) (LLVM build 2336.1.00)
- IOS SDK: I have both 4.3 and 5
- OS X Version: 10.7.2
- Xcode version (if that matters): 4.2.1