Opened 17 years ago

Closed 17 years ago

#3042 closed defect (fixed)

Mac OSX compile error with Firewire SDK 23

Reported by: danielk Owned by: danielk
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

We use some of the example code in the Firewire SDK in our OS X firewire recorder, but this code has changed in version 23 of the SDK. Long term we should eliminate our usage of the example code, short term we should rejig the includes so that this compiles as is with the new SDK.

g++ -c -pipe -mcpu=7450 -mtune=7450 -mpowerpc-gfxopt -faltivec -Wno-long-double -F/System/Library/Frameworks/{AGL,ApplicationServices,Carbon,Cocoa,OpenGL,QuickTime}.framework/Frameworks -F/System/Library/PrivateFrameworks/{DVD}.framework/Frameworks -F/Developer/FireWireSDK23/Examples/Framework -Wall -W -O3 -I/nobackup/myth/.osx-packager/build/include -no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare -fomit-frame-pointer -Wall -Wno-switch -Wno-non-virtual-dtor -fno-inline-functions -I/nobackup/myth/.osx-packager/build/include/freetype2 -I/nobackup/myth/.osx-packager/build/include -DPIC -fPIC  -DUSING_APPLEREMOTE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/nobackup/myth/.osx-packager/build\" -DLIBDIR=\"/nobackup/myth/.osx-packager/build/lib\" -D_LARGEFILE_SOURCE -DUSING_H264TOOLS -DUSING_FRONTEND -DUSING_OSX_FIREWIRE -DUSING_FIREWIRE -DUSING_DBOX2 -DUSING_IPTV -DUSING_HDHOMERUN -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_ACCESSIBILITY_SUP
 PORT -I/nobackup/myth/.osx-packager/src/qt-mac-free-3.3.6/mkspecs/default -I. -I../../../../../build/include -I../../../../../build/include -I../.. -I.. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg -Iiptv -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/UsageEnvironment/include -I/nobackup/myth/.osx-packager/src/qt-mac-free-3.3.6/include -o darwinfirewiredevice.o darwinfirewiredevice.cpp
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:56: error: 'kFWAVCStreamReceivedBadPacket' was not declared in this scope
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:57: error: 'kFWAVCStreamDCLOverrun' was not declared in this scope
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:58: error: 'kFWAVCStreamAllocateIsochPort' was not declared in this scope
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:59: error: 'kFWAVCStreamReleaseIsochPort' was not declared in this scope
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:73: error: 'kFWAVCNumMPEG2ReceiveSegments' was not declared in this scope
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:74: error: 'kFWAVCCyclesPerMPEG2ReceiveSegment' was not declared in this scope
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:75: error: 'kFWAVCMaxNumMPEG2ReceivePacketsPerCycle' was not declared in this scope
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:149: error: 'FWAVCMPEGReceiveCycleData' does not name a type
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:152: error: 'MPEGReceiveCycleData' has not been declared
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:262: error: ISO C++ forbids declaration of 'MPEGReceiveCycleData' with no type
/Developer/FireWireSDK23/Examples/Framework/AVCVideoServices.framework/Headers/MPEG2Receiver.h:262: error: expected ';' before '*' token
make[2]: *** [darwinfirewiredevice.o] Error 1
make[1]: *** [sub-libmythtv] Error 2
make: *** [sub-libs] Error 2
[osx-pkg] Failed system call: " /usr/bin/make " with error code 2
Died at /nobackup/myth/.osx-packager/src/myth-svn/mythtv/contrib/OSX/osx-packager.pl line 885.

Attachments (1)

Firewire.diff (486 bytes) - added by gnassas@… 17 years ago.
trivial fix

Download all attachments as: .zip

Change History (3)

Changed 17 years ago by gnassas@…

Attachment: Firewire.diff added

trivial fix

comment:1 Changed 17 years ago by gnassas@…

Turns out the enum defined in MPEG2Receiver.h depends on a value defined in AVSShared.h. I've attached a trivial one-line fix that gets things building for me.

comment:2 Changed 17 years ago by danielk

Resolution: fixed
Status: newclosed

(In [13956]) Fixes #3042. Applies patch fro gnassas at mac dot com, to allow compiling with the latest FireWire? SDK on OS X.

Note: See TracTickets for help on using tickets.