Opened 9 years ago

Closed 9 years ago

#8898 closed defect (Fixed)

JPGs are not displayed on Mac OS X

Reported by: Britney Fransen <britney.fransen@…> 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 9 years ago by robertm

Status: newassigned

comment:2 Changed 9 years ago by Nigel

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.

comment:3 Changed 9 years ago by Nigel

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.

comment:4 Changed 9 years ago by Nigel

Resolution: Fixed
Status: assignedclosed

(In [26663]) Bundle up Qt image decoding plugins. Closes #8898. Also now include mythpreviewgen binary, and makes sure a dir exists before coping a file into it.

Note: See TracTickets for help on using tickets.