本来跑的好好的,重启一下电脑就报错了
Showing All Errors Only
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:71:9: No member named 'clock_t' in the global namespace
Showing All Errors Only
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:73:9: No member named 'time_t' in the global namespace; did you mean 'size_t'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:78:9: No member named 'clock' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:79:9: No member named 'difftime' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:80:9: No member named 'mktime' in the global namespace; did you mean 'mktemp'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:81:9: No member named 'time' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:83:9: No member named 'asctime' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:84:9: No member named 'ctime' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:85:9: No member named 'gmtime' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:86:9: No member named 'localtime' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/ctime:88:9: No member named 'strftime' in the global namespace
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/chrono:1581:12: Unknown type name 'time_t'; did you mean 'size_t'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/chrono:1582:35: Unknown type name 'time_t'; did you mean 'size_t'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/chrono:2949:10: Unknown type name 'time_t'; did you mean 'size_t'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/chrono:2956:33: Unknown type name 'time_t'; did you mean 'size_t'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/chrono:2951:14: Use of undeclared identifier 'time_t'; did you mean 'size_t'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/__threading_support:325:28: Incomplete result type '__libcpp_timespec_t' (aka 'timespec') in function definition
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/__threading_support:329:23: Variable has incomplete type '__libcpp_timespec_t' (aka 'timespec')
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/c++/v1/__threading_support:531:24: Variable has incomplete type '__libcpp_timespec_t' (aka 'timespec')
解决办法:
重新编译ffmpeg库
sh compile-ffmpeg.sh clean
sh compile-ffmpeg.sh all