Opened 12 years ago

Closed 12 years ago

#5173 closed defect (worksforme)

Compile error on Mac OSX 10.5

Reported by: mythtv.org@… Owned by: Isaac Richards
Priority: minor Milestone: 0.21.1
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description (last modified by Nigel)

I'm trying to compile mythtv (backend) on OSX 10.5. I'm using the osx-packager.pl in 0.21-fixes but I am getting the following error:

$ osx-packager.pl \

-svnbranch release-0-21-fixes \ -verbose \ -clean

...

Clean up Build

[osx-pkg] Forcing -usehdimage due to case-insensitive filesystem
[osx-pkg] /usr/bin/hostinfo | grep 'processors$'
[osx-pkg] Using 2 parallel CPUs
[osx-pkg] Including components: mythtv myththemes mythplugins
[osx-pkg] Using previously downloaded freetype
[osx-pkg] Using previously unpacked freetype
[osx-pkg] Using previously configured freetype
[osx-pkg] Using previously built freetype
[osx-pkg] Using previously downloaded lame
[osx-pkg] Using previously unpacked lame
[osx-pkg] Using previously configured lame
[osx-pkg] Using previously built lame
[osx-pkg] Using previously downloaded mysqlclient
[osx-pkg] Using previously unpacked mysqlclient
[osx-pkg] Using previously configured mysqlclient
[osx-pkg] Using previously built mysqlclient
[osx-pkg] Using previously downloaded qt-mt
[osx-pkg] Using previously unpacked qt-mt
[osx-pkg] Using previously configured qt-mt
[osx-pkg] Using previously built qt-mt
[osx-pkg] Using previously downloaded tiff
[osx-pkg] Using previously unpacked tiff
[osx-pkg] Using previously configured tiff
[osx-pkg] Using previously built tiff
[osx-pkg] Using previously downloaded exif
[osx-pkg] Using previously unpacked exif
[osx-pkg] Using previously configured exif
[osx-pkg] Using previously built exif
[osx-pkg] Using previously downloaded dvdcss
[osx-pkg] Using previously unpacked dvdcss
[osx-pkg] Using previously configured dvdcss
[osx-pkg] Using previously built dvdcss
[osx-pkg] Using previously downloaded libmad
[osx-pkg] Using previously unpacked libmad
[osx-pkg] Using previously configured libmad
[osx-pkg] Using previously built libmad
[osx-pkg] Using previously downloaded taglib
[osx-pkg] Using previously unpacked taglib
[osx-pkg] Using previously configured taglib
[osx-pkg] Using previously built taglib
[osx-pkg] Using previously downloaded libogg
[osx-pkg] Using previously unpacked libogg
[osx-pkg] Using previously configured libogg
[osx-pkg] Using previously built libogg
[osx-pkg] Using previously downloaded vorbis
[osx-pkg] Using previously unpacked vorbis
[osx-pkg] Using previously configured vorbis
[osx-pkg] Using previously built vorbis
[osx-pkg] Using previously downloaded flac
[osx-pkg] Using previously unpacked flac
[osx-pkg] Using previously configured flac
[osx-pkg] Using previously built flac
[osx-pkg] Cleaning previous installs of MythTV
[osx-pkg] rm -fr /Users/mini/build-myth/.osx-packager/src/myth-svn/mythtv/config
[osx-pkg] Checking out source code
[osx-pkg] /usr/local/bin/svn co http://svn.mythtv.org/svn/branches/release-0-21-fixes/mythtv http://svn.mythtv.org/svn/branches/release-0-21-fixes/myththemes http://svn.mythtv.org/svn/branches/release-0-21-fixes/mythplugins /Users/mini/build-myth/.osx-packager/src/myth-svn
A    /Users/mini/build-myth/.osx-packager/src/myth-svn/mythtv/config
Checked out revision 16979.
Checked out revision 16979.
Checked out revision 16979.
[osx-pkg] Cleaning MythTV makefiles containing PREFIX
[osx-pkg] find . -name Makefile -exec egrep -q PREFIX {} ; -delete
[osx-pkg] echo 'Index: libs/libmythui/mythmainwindow.cpp
===================================================================
--- libs/libmythui/mythmainwindow.cpp  (revision 12154)
+++ libs/libmythui/mythmainwindow.cpp  (working copy)
@@ -1094,6 +1094,10 @@
         {
             QKeyEvent *ke = dynamic_cast<QKeyEvent*>(e);
 
+            // Work around weird GCC run-time bug. Only manifest on Mac OS X
+            if (!ke)
+                ke = (QKeyEvent *)e;
+
             if (currentWidget())
             {
                 ke->accept();
' | patch -p0 --forward
patching file libs/libmythui/mythmainwindow.cpp
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file libs/libmythui/mythmainwindow.cpp.rej
[osx-pkg] Failed system call: " echo 'Index: libs/libmythui/mythmainwindow.cpp
===================================================================
--- libs/libmythui/mythmainwindow.cpp  (revision 12154)
+++ libs/libmythui/mythmainwindow.cpp  (working copy)
@@ -1094,6 +1094,10 @@
         {
             QKeyEvent *ke = dynamic_cast<QKeyEvent*>(e);
 
+            // Work around weird GCC run-time bug. Only manifest on Mac OS X
+            if (!ke)
+                ke = (QKeyEvent *)e;
+
             if (currentWidget())
             {
                 ke->accept();
' | patch -p0 --forward " with error code 1
[osx-pkg] Configuring mythtv
[osx-pkg] ./configure --prefix=/Users/mini/build-myth/.osx-packager/build --disable-distcc
ERROR! You must have FreeType installed to compile MythTV.
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
mythtv-dev@mythtv.org mailing list or IRC #mythtv on irc.freenode.net
Include the log file "config.err" produced by configure as this will help
solving the problem.
[osx-pkg] Failed system call: " ./configure --prefix=/Users/mini/build-myth/.osx-packager/build --disable-distcc " with error code 1
Died at /Users/mini/Documents/osx-packager.pl line 984.

Change History (3)

comment:1 Changed 12 years ago by Nigel

It look like this might be a previous build (image) that you upgraded? Try doing a -thirdclean first?

comment:2 Changed 12 years ago by Nigel

Description: modified (diff)
Status: newinfoneeded_new

Is this still a problem? Did the clean (-thirdbuild) help?

comment:3 Changed 12 years ago by Nigel

Resolution: worksforme
Status: infoneeded_newclosed

I have heard nothing, and have now done 10.5 builds myself, so will assume was a temporary thing

Note: See TracTickets for help on using tickets.