[Cross compiling] - Need to pass the --arch=arm to ffmpeg build when cross compiling - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [Cross compiling] - Need to pass the --arch=arm to ffmpeg build when cross compiling (/showthread.php?tid=343996) |
[Cross compiling] - Need to pass the --arch=arm to ffmpeg build when cross compiling - graysky - 2019-05-18 I am building Kodi for armv7h on another ARM machine that runs armv8. I get this errors on the ffmpeg step: Code: ... From googling this, it seems the problem is due to ffmpeg is including headers from the armv8 system, rather than from the cross-compiled target environment. I think the solution might be to pass the --arm switch when cmake starts building ffmpeg. Does Kodi offer any switch I can add to cmake to set this to only affect the ffmpeg build? The following patch is a dirty hack I put together, but it allows for a successful build: Code: diff -uprN a/tools/depends/target/ffmpeg/CMakeLists.txt b/tools/depends/target/ffmpeg/CMakeLists.txt RE: [Cross compiling] - Need to pass the --arch=arm to ffmpeg build when cross compiling - kuro2357509 - 2019-05-31 Hi, Kodi offers use external ffmpeg option to compile Kodi. -DENABLE_INTERNAL_FFMPEG=OFF -DFFMPEG_PATH=</path/to/your/ffmpeg> Maybe it's helpful for you. Reference to Kodi source code: CMakeList.txt |