[mythtv] error building with qt5 on mac os x

Stuart Auchterlonie stuarta at squashedfrog.net
Fri Mar 13 15:32:48 UTC 2015


On 12/03/15 17:45, brad dreisbach wrote:
> 
>> On Mar 11, 2015, at 11:14 AM, Stuart Auchterlonie <stuarta at squashedfrog.net> wrote:
>>
>> On 11/03/15 13:03, Craig Treleaven wrote:
>>> At 9:59 AM -0400 3/10/15, brad dreisbach wrote:
>>>> i am not a [real] programmer so i wasnt able to figure out what the issue
>>>> was. looking at mythdirs.cpp:93 it seems there is a mac os x hack that
>>>> may no longer be valid.
>>>
>>> Brad, thanks for having a go at this.  It is on my todo list to start
>>> testing master on OSX with QT5.  But I'm not going to get at it for some
>>> weeks.
>>>
>>> I believe you are right--the hack [1] isn't necessary anymore.
>>>
>>> [1]
>>> https://github.com/MythTV/mythtv/commit/34b9f3b64c6d6ef1518658ce6d33eb9a691fad30
>>>
>>>
>>> Since OS X 10.6 (I believe), OS X does not permit programs to daemon(). 
>>> The appropriate way to run mythbackend is via launchd.
>>>
>>> I think the above commit should be reverted.
>>>
>>
>> Removed in
>> http://code.mythtv.org/cgit/mythtv/commit/?id=a17736607c25df5aed13545c54f70c54830ca6b5
>>
>> Regards
>> Stuart Auchterlonie
>>
> 
> thanks. fixed that problem. on to a new one.
> 
> /Users/bradd/mythtv-build-qt5/.osx-packager/build/bin/ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.5 -L/Users/bradd/mythtv-build-qt5/.osx-packager/build/lib -F/Users/bradd/Qt/5.4/clang_64/lib  -Wl,-dynamic,-search_paths_first -Qunused-arguments -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.7 -single_module -dynamiclib -flat_namespace -compatibility_version	0.28 -current_version	0.28.0 -Wl,-install_name, at rpath/libmythservicecontracts-0.28.0.dylib -o libmythservicecontracts-0.28.0.28.0.dylib service.o moc_service.o moc_mythServices.o moc_guideServices.o moc_contentServices.o moc_dvrServices.o moc_channelServices.o moc_videoServices.o moc_captureServices.o m
 o
c_frontendServices.o moc_imageServices.o moc_rttiServices.o moc_enum.o moc_enumItem.o moc_connectionInfo.o moc_databaseInfo.o moc_programAndChannel.o moc_programGuide.o moc_recording.o moc_settingList.o moc_wolInfo.o moc_programList.o moc_encoder.o moc_encoderList.o moc_storageGroupDir.o moc_storageGroupDirList.o moc_channelInfoList.o moc_videoSource.o moc_videoSourceList.o moc_videoMultiplex.o moc_videoMultiplexList.o moc_videoMetadataInfo.o moc_videoMetadataInfoList.o moc_blurayInfo.o moc_timeZoneInfo.o moc_videoLookupInfo.o moc_videoLookupInfoList.o moc_versionInfo.o moc_lineup.o moc_captureCard.o moc_captureCardList.o moc_recRule.o moc_recRuleList.o moc_artworkInfo.o moc_artworkInfoList.o moc_frontendStatus.o moc_frontendActionList.o moc_liveStreamInfo.o moc_liveStreamInfoList.o moc_titleInfo.o moc_titleInfoList.o moc_labelValue.o moc_logMessage.o moc_logMessageList.o moc_imageMetadataInfoList.o moc_imageMetadataInfo.o moc_imageSyncInfo.o moc_channelGroup.o moc_channelGroupList.o
  
moc_input.o moc_inputList.o moc_recRuleFilter.o moc_recRuleFilterList.o moc_castMember.o moc_castMemberList.o moc_frontend.o moc_frontendList.o  -F/Users/bradd/Qt/5.4/clang_64/lib -framework QTKit -framework Foundation -framework QuartzCore -framework CoreVideo -framework AVFoundation -framework CoreMedia -framework CoreFoundation -framework VideoDecodeAcceleration -lcrypto -liconv -L/Users/bradd/mythtv-build-qt5/.osx-packager/build/lib -lfreetype -Wl,-framework,OpenGL -lmp3lame -lm -lbz2 -lz -pthread -L/Users/bradd/mythtv-build-qt5/.osx-packager/src/myth-git/mythtv/external/qjson/lib -lmythqjson -F/Users/bradd/mythtv-build-qt5/.osx-packager/build/lib -framework AVCVideoServices -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework QtScript -framework OpenGL -framework AGL
> Undefined symbols for architecture x86_64:
>   "RecStatus::staticMetaObject", referenced from:
>       qt_meta_extradata_DTC__RecordingInfo in moc_recording.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [libmythservicecontracts-0.28.0.28.0.dylib] Error 1
> make[1]: *** [sub-libmythservicecontracts-make_first] Error 2
> make: *** [libs] Error 2
> [osx-pkg] Failed system call: " /usr/bin/make  " with error code 2
> 
> i fiddled with it a bit. putting this in libmythservicecontracts.pro:
> +HEADERS += ../libmyth/programtypes.h
> 
> enabled that library to compile, but it doesn’t seem like the right way to fix it.
> 
> if you’d rather me start a new thread or open a ticket(or if this isn’t helpful), just let me know.
> 

Tickets please, filed under "Qt5 Issues"

Cheers
Stuart




More information about the mythtv-dev mailing list