Opened 13 years ago

Closed 13 years ago

#2213 closed defect (fixed)

mythtranscode fails to compile on Mac OS X after upgrading to XCode 2.4

Reported by: awk@… Owned by: Nigel
Priority: minor Milestone: unknown
Component: mythtv Version:
Severity: medium Keywords:
Cc: nigel@… Ticket locked: no

Description

transcode.cpp fails to compile after upgrading to Mac OS X due to issues with the use of always_inline (see also Ticket #2212)

Attached patch changes the include order in transcode.cpp to avoid the problems.

Attachments (1)

transcode.cpp.diff (423 bytes) - added by awk@… 13 years ago.
patch to transcode.cpp to rearrange header include order to avoid 'always_inline errors'

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by awk@…

Attachment: transcode.cpp.diff added

patch to transcode.cpp to rearrange header include order to avoid 'always_inline errors'

comment:1 Changed 13 years ago by Isaac Richards

Owner: changed from Isaac Richards to Nigel

comment:2 Changed 13 years ago by Nigel

Status: newassigned

The patch rectifies the compile error in libmythtv, but the build then goes on to have link (template closure?) issues in libmythui:

g++ -headerpad_max_install_names -Wl,-search_paths_first -prebind -dynamiclib -seg1addr 0xCC000000 -compatibility_version       0.19 -current_version   0.19.0 -install_name    libmythui-0.19.0.dylib -o libmythui-0.19.0.19.0.dylib mythmainwindow.o mythpainter.o mythimage.o myththemebase.o mythpainter_qt.o xmlparsebase.o mythscreenstack.o mythscreentype.o mythgesture.o mythuitype.o mythuiimage.o mythuitext.o mythuistatetype.o mythlistbutton.o mythfontproperties.o mythuibutton.o myththemedmenu.o mythdialogbox.o moc_mythmainwindow.o moc_mythuitype.o moc_mythlistbutton.o moc_myththemedmenu.o moc_mythdialogbox.o  -L/Volumes/MythOSXbuild/.osx-packager/src/qt-mac-free-3.3.6/lib -L/usr/lib -L/Volumes/MythOSXbuild/.osx-packager/build/lib -L../libmyth -lmyth-0.19 -framework Carbon -framework OpenGL -lqt-mt 
ld: warning prebinding disabled because dependent library: libmyth-0.19.0.dylib is not prebound
ld: Undefined symbols:
__ZTI14QPtrCollection
__ZTI6QEvent
__ZTI6QGDict
__ZTI7QGArray
__ZTI7QWidget
__ZTI7QObject
/usr/bin/libtool: internal link edit command failed


XCode 2.4 is just looking like bad news at the moment :-(

comment:3 Changed 13 years ago by Nigel

Last comment was actually for #2212. Rebuilding all the required software (esp. Qt/Mac?) with this toolset got the build all the way through. Actually, I just reverted the mhi.h change locally and it got all the way through, so I am beginning to suspect that the patch wasn't necessary?

comment:4 Changed 13 years ago by Nigel

Spoke too soon - the mhi.h change was necessary, and because I wasn't going --enable-backend, I didn't see the transcode error.

comment:5 Changed 13 years ago by Nigel

Resolution: fixed
Status: assignedclosed

(In [10932]) Moved an include line to for Mac OS X (Xcode 2.4) compilation. Closes #2213

Note: See TracTickets for help on using tickets.