Open IlIllIl opened 7 months ago
I never compiled under MacOS...
too few template arguments for class template 'map'"
fatal error: 'sys/sysinfo.h' file not found
This header does not exist on MacOS:
https://stackoverflow.com/questions/12523704/mac-os-x-equivalent-header-file-for-sysinfo-h-in-linux
The only reason it is needed is to get the number of CPU cores. You could use sysctl to get them using the HW_NCPU parameter.
To get things compiled fast you could simply set the number of cores manually.
gcc version:
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Applications/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
and more error:
ffmpegfs.cc:867:41: error: no matching function for call to 'search_by_value'
SAMPLE_FMT_MAP::const_iterator it = search_by_value(sample_fmt_map, sample_fmt);
^~~~~~~~~~~~~~~
ffmpegfs.cc:1242:41: error: no matching function for call to 'search_by_value'
AUDIOCODEC_MAP::const_iterator it = search_by_value(audiocodec_map, audio_codec);
^~~~~~~~~~~~~~~
ffmpegfs.cc:1252:41: error: no matching function for call to 'search_by_value'
AUDIOCODEC_MAP::const_iterator it = search_by_value(videocodec_map, video_codec);
^~~~~~~~~~~~~~~
ffmpegfs.cc:1262:39: error: no matching function for call to 'search_by_value'
AUTOCOPY_MAP::const_iterator it = search_by_value(autocopy_map, autocopy);
^~~~~~~~~~~~~~~
ffmpegfs.cc:1308:41: error: no matching function for call to 'search_by_value'
RECODESAME_MAP::const_iterator it = search_by_value(recode_map, recode);
^~~~~~~~~~~~~~~
ffmpegfs.cc:1354:38: error: no matching function for call to 'search_by_value'
PROFILE_MAP::const_iterator it = search_by_value(profile_map, profile);
^~~~~~~~~~~~~~~
ffmpegfs.cc:1402:36: error: no matching function for call to 'search_by_value'
LEVEL_MAP::const_iterator it = search_by_value(level_map, level);
Apple clang version 15.0.0 (clang-1500.0.40.1)
Until now, I built with clang 14.0.6, I just tried with 15.0.6 also, the build went trough fine. Of course the AMD/Intel Version, but the headers should be the same for ARM or AMD/Intel. The only ARM machines I have are Raspberry Pies, I also built with clang 15 successfully.
Sorry but I can't help you out with MacOS.
and more error:
ffmpegfs.cc:867:41: error: no matching function for call to 'search_by_value' SAMPLE_FMT_MAP::const_iterator it = search_by_value(sample_fmt_map, sample_fmt); ^~~~~~~~~~~~~~~ ffmpegfs.cc:1242:41: error: no matching function for call to 'search_by_value' AUDIOCODEC_MAP::const_iterator it = search_by_value(audiocodec_map, audio_codec); ^~~~~~~~~~~~~~~
Do you have a link to the documentation of your std::map version? too few template arguments for class template 'map'
seems that your implementation does not have the same set of parameters.
make version:
GNU Make 3.81 built for i386-apple-darwin11.3.0
run
make
and get these error: