[Development] allow Qt for iOS to be built as shared libraries
Mike Krus
mike.krus at kdab.com
Sun Dec 27 23:56:59 CET 2015
Hi
has anybody taken this any further?
Enabling dynamic builds as frameworks causes link errors. For example, when linking QtNetwork.framework for the simulator, I get:
ld: warning: ignoring file /.../qt5_ios/qtbase/lib/QtCore.framework/QtCore, missing required architecture i386 in file /.../qt5_ios/qtbase/lib/QtCore.framework/QtCore (2 slices)
This is because QtCore.framework/QtCore is a device build (armv7 arm64). However, QtCore.framework/QtCore_iphonesimulator does exist but ld does not know to use it at that point.
Tried restricting the build to one platform only, restricting sdk to iphoneos works, but not iphonesimulator:
Project ERROR: iOS simulator is handled automatically for iphonesimulator_and_iphoneos
May need to do separate device and simulator builds or at least build into separate bundles (at the cost of duplicating headers).
Thought we could use lipo to build a fat binary but I believe that functionality has been removed from qt’s build system.
(plus the SDKs aren’t the same so I’m not sure it can be made to work anyway)
Other options? things I missed?
Mike
> On 13 Sep 2015, at 22:28, Jake Petroules <jake.petroules at petroules.com> wrote:
>
>
>> On Sep 13, 2015, at 4:26 AM, Robin Lobel <divide at divideconcept.net> wrote:
>>
>> Hi Jake,
>>
>> Do you have any update on this ?
>> https://codereview.qt-project.org/#/c/123023/
>>
>> I agree It'd be great to have such option starting with iOS 8.
>>
>> thanks
>> Robin Lobel
>
> Yes, I'm going to do some more testing on this today.
> --
> Jake Petroules - jake.petroules at petroules.com
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
--
Mike Krus | mike.krus at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel: UK Office +44 1625 809908 Mobile +44 7833 491941
KDAB - The Qt Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3859 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20151227/9bbc5922/attachment.bin>
More information about the Development
mailing list