Results 1 to 2 of 2

Thread: Linking to a different libjpeg?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Delft, Netherlands
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Linking to a different libjpeg?

    Dear all,

    Qt uses libjpeg to handle the JPG image format (compression and decompression). Does anyone know if it is possible to override the actual libjpeg used for linking in the qmake (.pro) file of a project?

    Specifically, I would like to override usage of the standard libjpeg on my Debian system with an IPP (Intel Performance Primitives) version of libjpeg that resides in /opt/intel/ipp/6.0.2.076/em64t/lib/libjpeg.ipp.a and /opt/intel/ipp/6.0.2.076/em64t/sharedlib/libjpeg.ipp.so, since the IPP version is 2,5x as fast (which matters in my application).

    Regards, Sidney

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Linking to a different libjpeg?

    probably yes, if you
    * provide a link to the expected .so-name (assuming the versions) are compatible
    (check with ldd what libjpeg is required)
    * set LD_LIBRARY_PATH and/or LD_RUN_PATH to include your libjpeg's directory
    * maybe add LIBPATH to your .pro file

    if the libs are not compatible, you might have to configure and build Qt against your libjpeg

Similar Threads

  1. Qt linking problem
    By LovesTha in forum Newbie
    Replies: 3
    Last Post: 30th March 2009, 23:31
  2. Linking
    By ^NyAw^ in forum General Programming
    Replies: 7
    Last Post: 30th October 2008, 17:37
  3. Replies: 1
    Last Post: 16th September 2008, 17:29
  4. problem with order of libs during linking
    By minimax in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2008, 10:32
  5. Replies: 4
    Last Post: 20th February 2006, 09:11

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.