[Qt-interest] Including libltdl.3.dylib on OSX into deployable package

Dirk Neumann dirk.neumann at dn-informatik.de
Wed Jan 4 11:01:56 CET 2012


Hello!

I am writing an Qt-application for MacOSX, and I use macdeployqt to
generate a deployable app-bundle. Now I have the problem that some
external libraries I use (mpg123) point to /usr/lib/libltdl.3.dylib in
app-bundle. On OSX 10.5 and 10.6 this works fine, but on 10.7 there is
no /usr/lib/libltdl.3.dylib but /usr/lib/libltld.7.dylib. So I tried to
incorporate the libltdl.3 from my devel-computer (OSX 10.5, Qt 4.5.3)
with LIBS+= -L/usr/lib\
       -lltdl
in the .pro-file, regenerated all (make distclean, qmake, make) and
reran macdeployqt. But there is still no libltdl.3.dylib in
Frameworks-directory. 
Copying libldtdl.3.dylib manually to the Frameworks-directory before
running macdeployqt also has no positive effect: libs pointing still
to /usr/lib/libltdl.3.dylib instead of Frameworks/libltdl.3.dylib.

I think I go into the wrong direction here, and I hope some one has
time to look at my compass.

Greetings,

Dirk.



More information about the Qt-interest-old mailing list