[Qt-interest] Including libltdl.3.dylib on OSX into deployable package
Dirk Neumann
dirk.neumann at dn-informatik.de
Wed Jan 4 13:29:58 CET 2012
Hello Samuel,
On Wed, 4 Jan 2012 11:42:19 +0100
Samuel Gaist <samuel.gaist at edeltech.ch> wrote:
>
> Hello,
>
> It happens that some libraries are not copied, so you have to do it manually (as you already do) then you must update the paths of your executable and/or local lib with install_name_tool
>
> i.e: install_name_tool -change /usr/lib/libltdl.3.dylib @executable_path/../Frameworks/libltdl.3.dylib YourCoolApplication.app/Contents/MacOS/YourCoolApplication
Lots of thanks to you. That was the trick I needed. For the protocol:
Important is the string "@executable_path/../Frameworks", I mistakenly
replaced it by the real executable path in the first some tries and so I
head to poke around some time...
>
> Do this on all necessary files BUT only for those that you provide in your bundle (i.e. no system libraries)
>
> You might also be interested in using otool -L to have more information about your application/libraries.
I feared the otool, but now I see it is not as dangerous as I thougt...
Greetings and thanks,
Dirk.
More information about the Qt-interest-old
mailing list