ios - No member named 'clock' in the global namespace when using FFmpeg pod -
my app (ios 7+, xcode 6) uses cocoapods dependencies. 1 of dependencies ffmpeg.
when build app several similar looking issues
/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/include/c++/v1/ctime:60:9: no member named 'clock' in global namespace; did mean 'flock'?
i learned because ffmpeg includes time.h file in libavutil subfolder. time.h hides system time.h compiler , errors.
i tried manually rename ffmpeg's time.h else , this helps. want automatically , in way survive next 'pod update'.
i tried add libavutil sub-directories exclude in recursive searches doesn't @ all.
i tried remove "${pods_root}/headers/public/ffmpeg/libavutil" header search paths , didn't either.
i know there prepare_command , post_install hooks 1 can use in podfile unfortunately don't know if these helpful in case.
so, how can exclude time.h in libavutil of ffmpeg pod header search paths (i don't mind rename or remove time.h)?
for people have same issue ffmpeg's time.h:
you might search system's time.h , include manually in ffmpeg's time.h:
open ffmpeg's time.h (in libavutil) , insert #include </usr/include/time.h> in beginning.
of course lazy workaround, it's easy way include both time.h headers.
Comments
Post a Comment