Opened 14 years ago
Closed 14 years ago
#8898 closed defect (Fixed)
JPGs are not displayed on Mac OS X
Reported by: | Owned by: | Nigel | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | Ports - OSX | Version: | Unspecified |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Sep 9 12:14:15 mac [0x0-0x119119].org.osx-bundler.MythFrontend[3054]: 2010-09-09 12:14:15.910 MythUIHelper, Error: LoadScaleImage(/Applications/MythFrontend.app/Contents/Resources/share/mythtv/themes/Childish/preview.jpg) failed to load image
This is on 10.6.4. Built trunk @ rev 26174 using the osx-packager.pl script and Qt 4.6. Related to #7124.
Change History (4)
comment:1 Changed 14 years ago by
Status: | new → assigned |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
This adds the relevant plugins:
% svn diff packaging Index: packaging/OSX/build/osx-packager.pl =================================================================== --- packaging/OSX/build/osx-packager.pl (revision 26339) +++ packaging/OSX/build/osx-packager.pl (working copy) @@ -1132,6 +1132,12 @@ # Allow playback of region encoded DVDs &Syscall([ 'cp', "$PREFIX/lib/libdvdcss.2.dylib", "$finalTarget/Contents/Plugins" ]) or die; + + # Allow opening of GIFs and JPEGs: + mkdir("$finalTarget/Contents/MacOS/imageformats"); + &Syscall([ 'cp', "$PREFIX/plugins/imageformats/libqgif.dylib", + "$PREFIX/plugins/imageformats/libqjpeg.dylib", + "$finalTarget/Contents/MacOS/imageformats" ]); } if ( $target eq "MythWelcome" )
but the results are unreliable. I haven't worked out the pattern yet.
Note: See
TracTickets for help on using
tickets.
QImage uses directories listed in QT_PLUGIN_PATH or QCoreApplication::libraryPaths() to load its plugins. On a machine with installed Qt, QImage will have the right directory in there. On a Mac package, libraryPaths will include MythFrontend.app/Contents/MacOS, so this should be a matter of copying some extra libs in there.