Opened 15 months ago

Last modified 14 months ago

#10160 new defect

How to build FFmpeg on windows arm64ec using MSVC

Reported by: Yang Shino Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Yang Shino)

Summary:
We try MSVC to run on x64, it works. But we tried to build for target arm64ec, this project failed to build. How to build FFmpeg on windows arm64ec using MSVC? Could you please help look at this issue? Thanks in advance.

steps of x64:

  1. Open a VS 2019 x64 prompt
  2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
  3. git clone ​https://github.com/FFmpeg/FFmpeg F:\gitP\FFmpeg/FFmpeg
  4. cd F:\gitP\FFmpeg\FFmpeg\..\
  5. set FFMPEG_SRC_PATH=F:\gitP\FFmpeg\FFmpeg
  6. set FFMPEG_FATE_PATH=../fate-suite/
  7. set path=F:\gitP\FFmpeg\FFmpeg\..\tools;%PATH%
  8. set MSYS2_PATH_TYPE=inherit
  9. .\tools\msys32\usr\bin\sh.exe --login -i -c "/F/gitP/ffmpeg/tools/build.sh"

steps of ARM64EC:

  1. Open a VS 2019 x64 prompt
  2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
  3. git clone ​https://github.com/FFmpeg/FFmpeg F:\gitP\FFmpeg/FFmpeg
  4. cd F:\gitP\FFmpeg\FFmpeg\..\
  5. set FFMPEG_SRC_PATH=F:\gitP\FFmpeg\FFmpeg
  6. set FFMPEG_FATE_PATH=../fate-suite/
  7. set path=F:\gitP\FFmpeg\FFmpeg\..\tools;%PATH%
  8. set MSYS2_PATH_TYPE=inherit
  9. set FFMPEG_TARGET=ARM64EC
  10. .\tools\msys32\usr\bin\sh.exe --login -i -c "/F/gitP/ffmpeg/tools/build.sh"

Error message:
Starting build in F:\gitP\FFmpeg\FFmpeg for target ARM64EC
Configure build
cl.exe is unable to create an executable file.
If cl.exe is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Failed to configure!

Change History (2)

comment:1 by Yang Shino, 15 months ago

Description: modified (diff)

comment:2 by Balling, 14 months ago

VS 2019 x64

What about VS 2022?

Note: See TracTickets for help on using tickets.