Results 1 to 1 of 1

Thread: Including qjpeg4.dylib in OSX bundle & so under Linux

  1. #1
    Join Date
    Sep 2011
    Posts
    7
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Including qjpeg4.dylib in OSX bundle & so under Linux

    We need to include the qjpeg4.dylib etc image format libraries in our application under windows, mac, and linux, but I can only get windows working.

    Under windows simply putting then in a imageformat subdirectory under the main application and Qt dll's works a treat.
    Under Linux (RedHat 5.4) doing what was done under windows does not work.
    Under OSX putting them in the Contents/PlugIns/imageformats directory (as specified in the docs) does not seem to work.

    Also, once located in the correct place, does one need to run install_name_tool to get the locations correct - the reason for asking is that they are not dependencies of the app or core/gui Qt libraries (so otool reports) so I'm assuming it's not needed.

    Any clarification on this would be appreciated.

    Best Regards,
    Simon.


    Added after 22 minutes:


    OK, so no sooner than I post this I work it out for OSX, but not Linux

    Just for reference:
    1) Make sure the image dylibs have had their Qt dependencies tweaked with install_name_tool to reference the others in the bundle
    2) Make sure you add the directory that you put the imageformats directory to the librarypath using QApplication::setLibraryPaths() in code.

    Any help still for Linux would be appreciated!
    Last edited by simoncsmith; 3rd April 2012 at 18:56.

Similar Threads

  1. QT embedded QtWebKit on Linux 2.6.22, including MIPS platform
    By Thành Viên Mới in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 11th November 2010, 03:43
  2. including qjpeg4.dll to view images
    By aash_89 in forum Qt Programming
    Replies: 8
    Last Post: 26th July 2010, 07:52
  3. Qt 4.6.1 from Windows/Linux to Mac OS X - .dylib vs .so?
    By wizard_oz in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2010, 23:12
  4. Trying to deploy a bundle
    By afflictedd2 in forum Qt Programming
    Replies: 2
    Last Post: 8th May 2009, 19:39

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.