Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, February 2008
Mac OS Library paths


Message 1 in thread

I recently changed my build to use shared libraries instead of static
libraries. Everything builds and runs fine on Windows, but the Mac can't
find the Qt plugins/imageformat files (fails loading, see error below). I
tried adding $QTDIR/plugins to DYLD_LIBRARY_PATH, but that does not help.

How do I tell the Mac where to look for Qt Plugins (regardless of which Qt
application is running)?

Keith
**Please do not reply to me, reply to the list.**

> dyld: Library not loaded: libqjpeg_debug.dylib
>     Referenced from: /.../dpsheet
>     Reason: image not found
> Trace/BPT trap


Message 2 in thread

On 2008-02-28 19:36:22 -0500, Keith Esau <keith.esau@xxxxxxx> said:

>> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
> 
> 
> I recently changed my build to use shared libraries instead of static
> libraries. Everything builds and runs fine on Windows, but the Mac can't
> find the Qt plugins/imageformat files (fails loading, see error below). I
> tried adding $QTDIR/plugins to DYLD_LIBRARY_PATH, but that does not help.
> 
> How do I tell the Mac where to look for Qt Plugins (regardless of which Qt
> application is running)?
> 
> Keith
> **Please do not reply to me, reply to the list.**
> 
>> dyld: Library not loaded: libqjpeg_debug.dylib
>> Referenced from: /.../dpsheet
>> Reason: image not found
>> Trace/BPT trap
> 
> 


I don't think the "install_name" is correct for either the plugin or 
your application. The "install_name" should be:
 Just the name of the plugin
OR
the Absolute path to the plugin
OR
something like @executable_path/../plugins

Can you post the results of "otool -L" on both your plugin and your 
application?

Mike Jackson

--
 [ signature omitted ]