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!
Bookmarks