Trying to build ffmpeg-tools with
PROJECT=Generic ARCH=x86_64 scripts/create_addon ffmpeg-tools
is failing building ffmpegx's dependency x265.
Building x265 on it's own with
PROJECT=Generic ARCH=x86_64 scripts/build x265
fails with the error:
/home/simon/AdditionalStorage/git/http://LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.2-devel/x265-3.2/source/common/param.cpp:57:14: error: 'char* strtok_r(char*, const char*, char**)' was declared 'extern' and later 'static' [-fpermissive]
static char* strtok_r(char* str, const char* delim, char** nextp)
The full output is here: pastebin link
ffmpeg-tools builds successfully on the same machine (Arch Linux) for the RPi4 - is it something to do with the x86_64 compiler? Maybe the settings for the ARM compiler are more relaxed?
Any help gratefully received,
Cheers,
Simon