Results 1 to 2 of 2

Thread: Linking to specific PNG JPEG and TIFF libraries when building Qt

  1. #1

    Default Linking to specific PNG JPEG and TIFF libraries when building Qt

    Hi All,
    I'm trying to build the Qt framework from source on Mac OS X leopard and I have various version of libpng.dylib libtiff.dylib libjpeg.dylib installed on different places in my system. I would like to link Qt to some specific version of this libraries. How could I do that?

    If I don't do nothing i noticed that it just link to the first one into the path.
    Could somebody clarify me if setting the LD_LIBRARY_PATH before launching the configuration script make any difference?

    Thanks!

  2. #2
    Join Date
    Feb 2011
    Location
    Romania
    Posts
    53
    Thanks
    1
    Thanked 11 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Linking to specific PNG JPEG and TIFF libraries when building Qt

    I just want to report the same problem on linux(ubuntu), because on the windows works well. I have my applcation linked with latest version of GDAL, which don't have the same libpng version as Qt. My application project looks like:

    QT -= core gui
    GDALDIR = LIBS/GDAL/gdal-1.8
    LIBS = -L$$GDALLIBDIR -lGDAL

    When I try to open png file, libnpg say that it's linked with a newer version. Indeed when I debugged my application, it use the libpng open file function from Qt/3dparty/png instead of my GDAL. On windows platform works just fine.

    Can someone explain how to solve this problem ?

    Thanks

Similar Threads

  1. static and dynamic libraries linking
    By buddax2 in forum Newbie
    Replies: 2
    Last Post: 27th December 2010, 15:55
  2. Linking to libraries
    By Maluko_Da_Tola in forum Newbie
    Replies: 3
    Last Post: 17th October 2010, 12:19
  3. Linking Third party Libraries
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2009, 06:18
  4. Jpeg/Gif/Tiff support in -shared
    By gimel in forum Installation and Deployment
    Replies: 3
    Last Post: 27th December 2008, 17:39
  5. linking libraries
    By JustaStudent in forum Newbie
    Replies: 29
    Last Post: 2nd May 2006, 08:30

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.