Results 1 to 3 of 3

Thread: How to link against a libqjpeg_debug.dylib?

  1. #1
    Join Date
    Oct 2008
    Posts
    20
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default How to link against a libqjpeg_debug.dylib?

    Hello! I have Qt4 installed on MAC OS.

    I need to build a library that uses libJPEG functions. Since I don't have this library installed, I used declarations from Qt4 plugins folder to compile my object files.

    After that I tried to link the library against libqjpeg_debug.dylib (I used g++ -dynamic -dynamiclib -L<path to plugins/imageformats> -lqjpeg_debug <other parameters, frameworks and libraries>).

    As a result I got a set of unresolved symbols such as jpeg_CreateCompress and similar. I did not encounter this problem when linking against Qt3 libs. Maybe, this approach works on Qt 3 because Qt 3 has libJPEG functions embedded in the qt library (but I'm not quite sure about it).

    So, is there a way to link against the dylib.
    Last edited by Alex_123; 23rd May 2009 at 10:54.

  2. #2
    Join Date
    Oct 2008
    Posts
    20
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to link against a libqjpeg_debug.dylib?

    One more thing. nm libqjpeg_debug.dylib prints all the symbols I need, so there must be a problem in linking.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to link against a libqjpeg_debug.dylib?

    qjpeg_debug is also a library that uses libjpeg to do its work. You should link to libjpeg directly, without linking to the plugin.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. The following user says thank you to wysota for this useful post:

    Alex_123 (24th May 2009)

Similar Threads

  1. Link errors when linking chained libraries on windows
    By darkadept in forum Qt Programming
    Replies: 5
    Last Post: 26th May 2008, 14:52
  2. QLabel link color
    By dragon in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2007, 07:09
  3. ignore following link in anchorClicked()
    By jh in forum Qt Programming
    Replies: 4
    Last Post: 16th July 2006, 16:33
  4. LINK : fatal error LNK1181: can't open 'delayimp.lib'
    By fcamlar in forum Installation and Deployment
    Replies: 10
    Last Post: 7th July 2006, 13:04
  5. Text Browser Link Question
    By taylor34 in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2006, 19:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.