[cmake] fix & allow FFmpeg cross compilations #2973

Open
Lizzie wants to merge 5 commits from ffmpeg-cross-compile into master
Member

Should allow to cross compile FFmpeg.

Signed-off-by: lizzie lizzie@eden-emu.dev

Should allow to cross compile FFmpeg. Signed-off-by: lizzie lizzie@eden-emu.dev
Lizzie force-pushed ffmpeg-cross-compile from 72ee86f3ed
All checks were successful
eden-license / license-header (pull_request) Successful in 35s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Build succeeded – Release published
to fb7169156c
All checks were successful
eden-license / license-header (pull_request) Successful in 45s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Build succeeded – Release published
2025-11-29 08:53:20 +01:00
Compare
DraVee approved these changes 2025-11-29 19:01:58 +01:00
Dismissed
Member

@crueter need to check cmake changes

@crueter need to check cmake changes
Member

cc: @crueter

cc: @crueter
Lizzie force-pushed ffmpeg-cross-compile from fb7169156c
All checks were successful
eden-license / license-header (pull_request) Successful in 45s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Build succeeded – Release published
to ff78766185
Some checks failed
eden-license / license-header (pull_request) Has been cancelled
2026-02-14 06:38:03 +01:00
Compare
Lizzie dismissed DraVee's review 2026-02-14 06:38:03 +01:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

license
All checks were successful
eden-license / license-header (pull_request) Successful in 25s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
cd2874731d
@ -15,2 +53,4 @@
if (UNIX AND NOT ANDROID AND NOT DEFINED FFmpeg_IS_CROSS_COMPILING)
find_package(PkgConfig REQUIRED)
if (NOT ANDROID)
Member

This IF can be removed

This IF can be removed
DraVee marked this conversation as resolved
DraVee requested review from DraVee 2026-02-21 01:21:51 +01:00
Lizzie force-pushed ffmpeg-cross-compile from cd2874731d
All checks were successful
eden-license / license-header (pull_request) Successful in 25s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
to 7996cc4304
All checks were successful
eden-license / license-header (pull_request) Successful in 27s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
2026-03-08 19:54:58 +01:00
Compare
crueter left a comment
Owner

Please run cmake-format on your changes.

Please run cmake-format on your changes.
@ -15,0 +47,4 @@
--sysroot="${CMAKE_SYSROOT}"
--cross-prefix="${FFmpeg_CROSS_PREFIX}"
)
set(FFmpeg_IS_CROSS_COMPILING TRUE)
Owner
https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING.html
Lizzie marked this conversation as resolved
@ -21,0 +57,4 @@
pkg_check_modules(LIBVA libva)
pkg_check_modules(CUDA cuda)
pkg_check_modules(FFNVCODEC ffnvcodec)
pkg_check_modules(VDPAU vdpau)
Owner

?

?
Lizzie marked this conversation as resolved
@ -223,6 +249,7 @@ else()
--enable-pic
--cc="${FFmpeg_CC}"
--cxx="${FFmpeg_CXX}"
${FFmpeg_CROSS_COMPILE_FLAG}
Owner

should be FLAGS

should be FLAGS
Lizzie marked this conversation as resolved
Lizzie force-pushed ffmpeg-cross-compile from 7996cc4304
All checks were successful
eden-license / license-header (pull_request) Successful in 27s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
to 161cf4065e
All checks were successful
eden-license / license-header (pull_request) Successful in 20s
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
2026-03-30 10:35:10 +02:00
Compare
All checks were successful
eden-license / license-header (pull_request) Successful in 20s
Required
Details
GitHub Actions [CI] Build succeeded
GitHub Releases [CD] Release published
This pull request doesn't have enough approvals yet. 0 of 2 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ffmpeg-cross-compile:ffmpeg-cross-compile
git switch ffmpeg-cross-compile
Sign in to join this conversation.
No description provided.