Archive building error with architecture armv7s in IOS device
robust1231 last edited by
I wrote a iOS program that run at armv7s.it is fine in the simulator(i guess simulator is not the newest architecture).But when i build archive or run at device(ipad 4), there are many link errors.The reason from the information is libQt5Core and libQt5Network are not build for architecture armv7s.
so, Is this a bug,or i used wrong lib?
by the way,i use QT 5.2 Beta1,lib path is ios_armv7,developer IDE is xcode 5.0.1.
Please help me!
Thanks a lot!
Hi and welcome to devnet,
You have to use a Qt build that was built agains the iPhone SDK for that. The simulator uses another SDK.
This means you need two different builds, one for the simulator and one for the actual devices.
I've built Qt 5.3 for iOS, and it compiles for armv7 by default. Does anybody know how could I compile it also for armv7s and, if possible, for arm64?
Haven't tested it but you can try by editing the macx-io-clang mkspec and add arm64 to the QMAKE_IOS_DEVICE_ARCHS
thanks, I have already done that, and it didn't work.
Did you re-run configure after modifying the file ?
You are right, but after reconfiguring, I get this error while compiling:
clang: error: cannot use 'precompiled-header' output with multiple -arch options
Because they where generated when you configured the first time, you have to do a make confclean when modify things like that.
It seems that confclean is not working on Qt5. I'm trying now with 'make clean', but I think I have tried it before.
Then just delete the build folder and start from scratch