After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755100 - qt: add build support for iOS/OSX
qt: add build support for iOS/OSX
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-16 08:23 UTC by Matthew Waters (ystreet00)
Modified: 2015-10-02 12:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
qt: add support for building on iOS/OSX (6.51 KB, patch)
2015-09-16 08:30 UTC, Matthew Waters (ystreet00)
accepted-commit_after_freeze Details | Review

Description Matthew Waters (ystreet00) 2015-09-16 08:23:05 UTC
See commit message.
Comment 1 Matthew Waters (ystreet00) 2015-09-16 08:30:33 UTC
Created attachment 311440 [details] [review]
qt: add support for building on iOS/OSX

There's still a number of build issues with Qt's libtool .la and pkgconfig files that have not been resolved.
1. The pkg-config files only point/link to/against the simulator versions (x86/x64 arch depending on installed Qt archs)
2. The libtool files place -framework arguments in dependency_libs rather than the more correct inherited_linker_flags.

Has been successfully tested on the iOS simulator (with a severe memory leak).
Comment 2 Sebastian Dröge (slomo) 2015-09-16 08:40:50 UTC
Comment on attachment 311440 [details] [review]
qt: add support for building on iOS/OSX

Looks good. The leaks you talk about are in Qt and independent from our code?


Did you report the pkg-config / libtool brokenness to the Qt people so they can fix their stuff?
Comment 3 Matthew Waters (ystreet00) 2015-09-16 09:14:04 UTC
(In reply to Sebastian Dröge (slomo) from comment #2)
> qt: add support for building on iOS/OSX
> 
> Looks good. The leaks you talk about are in Qt and independent from our code?

Not sure yet.

> Did you report the pkg-config / libtool brokenness to the Qt people so they
> can fix their stuff?

There's this old bug for the libtool frameworks issue https://bugreports.qt.io/browse/QTBUG-2390 which I commented on.

For the iOS pkgconfig machine architecture issue: https://bugreports.qt.io/browse/QTBUG-48303
Comment 4 Sebastian Dröge (slomo) 2015-10-02 08:20:28 UTC
What's the status here?
Comment 5 Matthew Waters (ystreet00) 2015-10-02 12:41:11 UTC
Both OSX and iOS require modifications to the pkg-config/libtool files in order to build against correctly.

As I could not repoen the closed libtool bug, I created a new one :/ https://bugreports.qt.io/browse/QTBUG-48575

Qt officially does not support using the pkg-config/libtool files on iOS so getting them to modify their build setup seems unlikely.

That being said, for those that are feeling adventurous, I've pushed the required patch to build/use QT on OSX and iOS.

commit 30194cc3682ad5a304f493cf558dc70a05bbd42a
Author: Matthew Waters <matthew@centricular.com>
Date:   Tue Sep 15 03:14:37 2015 +1000

    qt: add support for building on osx/ios
    
    Including:
    - Necessary configure checks
    - Necessary compile time platform checks
    - Necessary runtime qt iOS/OSX platform detection
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755100