[Qt-creator] iOS dylib problem
Eike Ziller
Eike.Ziller at qt.io
Fri Mar 24 12:45:44 CET 2017
> On Mar 24, 2017, at 11:43 AM, Robert Bielik <Robert.Bielik at dirac.com> wrote:
>
> Hi all,
>
> Using Qt 5.8 I'm trying to get an iOS app running. I depend on a truckload of third party libs, all of which are packed together into a single dynamic library. But I have found no info, yet, on how to incorporate the dynamic lib into the iOS app (i.e. deployment into the .app folder).
>
> Hints are appreciated! đ
I donât have any iOS dylibs available, but Iâd expect something like this should work:
- make sure your dylibs have installname â@rpath/mylib.dylibâ or such (check first line of âotool -L /path/to/mylib.dylibâ, if it is not, then change with âinstall_name_tool -id @rpath/mylib.dylibâ)
- add the following to the application .pro file
# make the app find the libs:
QMAKE_RPATHDIR = @executable_path/Frameworks
# deploy the libs:
mylib.files = /path/to/mylib.dylib
mylib.path = Frameworks
QMAKE_BUNDLE_DATA += mylib
Br, Eike
> Regards
> /Robert
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer
The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
eike.ziller at qt.io
http://qt.io
Geschäftsfßhrer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list