Opened 12 years ago

Closed 12 years ago

#4170 closed defect (fixed)

MythTV on OS X is not building - fails with error "You need to add endian swap macros for you're system"

Reported by: ryebrye@… Owned by: Nigel
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords: osx osx-packager
Cc: Ticket locked: no

Description

Running osx-packager.pl on the current svn trunk doesn't work. It fails. Here is a paste of the results of running osx-packager.pl --verbose leading up to the error message.

-- gcc -c -pipe -march=pentium4 -fomit-frame-pointer -O3 -I/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/include -no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -fPIC -DPIC -fno-common -w -DMMX -Di386 -DUSING_APPLEREMOTE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build\" -DLIBDIR=\"/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/lib\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DDVDNAV_COMPILE -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -I/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/mkspecs/default -I. -I../../../../../build/include -I../../../../../build/include -I.. -I../.. -I/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/include -o ifo_read.o ifo_read.c gcc -c -pipe -march=pentium4 -fomit-frame-pointer -O3 -I/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/include -no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -fPIC -DPIC -fno-common -w -DMMX -Di386 -DUSING_APPLEREMOTE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build\" -DLIBDIR=\"/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/lib\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DDVDNAV_COMPILE -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -I/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/mkspecs/default -I. -I../../../../../build/include -I../../../../../build/include -I.. -I../.. -I/Users/ryangardner/src/myth-svn/mythtv/contrib/OSX/.osx-packager/build/include -o nav_read.o nav_read.c In file included from nav_read.c:26: bswap.h:98:2: error: #error "You need to add endian swap macros for you're system" In file included from ifo_read.c:28: bswap.h:98:2: error: #error "You need to add endian swap macros for you're system" make[2]: * [nav_read.o] Error 1 make[2]: * Waiting for unfinished jobs.... make[2]: * [ifo_read.o] Error 1 make[1]: * [sub-libmythdvdnav] Error 2 make: * [sub-libs] Error 2 [osx-pkg] Failed system call: " /usr/bin/make -j2 " with error code 2 Died at ./osx-packager.pl line 905.

Change History (2)

comment:1 Changed 12 years ago by Nigel

Owner: changed from Isaac Richards to Nigel

Changeset [14800] removed these lines:

if test "$targetos" = darwin; then 
  echo "#define CONFIG_DARWIN 1"  >> $TMPH 
fi

which, predictable, broke Mac OS X builds. I really need to sync my working tree more often :-)

comment:2 Changed 12 years ago by Nigel

Resolution: fixed
Status: newclosed

(In [14867]) On OSX/Darwin, CONFIG_DARWIN, disable IVTV. Closes #4170

Note: See TracTickets for help on using tickets.