|
From: Patrick C. <pat...@ma...> - 2015-08-06 15:17:15
|
I am trying to build MFXLib on OSX 10.9 64 bit. It appears that fstat64 is deprecated on OSX, although it is available. Otherwise, there are a few actual errors that I don’t quite understand, and I hoped that you could provide some clarity.
Thanks,
Patrick
Patricks-MacBook-Pro-2:mxflib-master-2 patrickcusack$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in mxflib
if g++ -DHAVE_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DDEFAULT_DICT_PATH=\"/usr/local/share/mxflib\" -Wall -g -O2 -MT crypto.o -MD -MP -MF ".deps/crypto.Tpo" -c -o crypto.o crypto.cpp; \
then mv -f ".deps/crypto.Tpo" ".deps/crypto.Po"; else rm -f ".deps/crypto.Tpo"; exit 1; fi
In file included from crypto.cpp:31:
In file included from ../mxflib/mxflib.h:42:
../mxflib/system.h:546:69: warning: 'fstat64' is deprecated: first deprecated in OS X 10.6 [-Wdeprecated-declarations]
inline Int64 FileSize(FileHandle file) { struct stat64 buf; return fstat64(fileno(file), &buf) != 0 ? -1 : buf.st_size; }
^
/usr/include/sys/stat.h:378:5: note: 'fstat64' has been explicitly marked deprecated here
int fstat64(int, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA);
^
In file included from crypto.cpp:31:
In file included from ../mxflib/mxflib.h:88:
../mxflib/smartptr.h:667:48: error: member reference base type 'SmartPtr<T> *' is not a structure or union
bool operator<(SmartPtr &Other) { return this.operator<(*Other->GetPtr()); }
~~~~^~~~~~~~~~
In file included from crypto.cpp:31:
In file included from ../mxflib/mxflib.h:117:
../mxflib/mxffile.h:108:25: error: extra qualification on member 'ReadMasterPartition'
PartitionPtr MXFFile::ReadMasterPartition(Length MaxScan, bool CheckForCompleteFooter = false);
~~~~~~~~~^
In file included from crypto.cpp:31:
In file included from ../mxflib/mxflib.h:121:
../mxflib/essence.h:1578:16: warning: 'mxflib::EssenceSubSource::Use' hides overloaded virtual function [-Woverloaded-virtual]
virtual void Use(WrappingOptionPtr WrapOpt)
^
../mxflib/essence.h:247:16: note: hidden overloaded virtual function 'mxflib::EssenceSource::Use' declared here: type mismatch at 1st parameter ('WrappingOptionPtr &'
(aka 'SmartPtr<mxflib::WrappingOption> &') vs 'WrappingOptionPtr' (aka 'SmartPtr<mxflib::WrappingOption>'))
virtual bool Use(WrappingOptionPtr &UseWrapping)
^
2 warnings and 2 errors generated.
make[2]: *** [crypto.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
|