[FFmpeg-user] Cross Compiler Setup Fix

rubean pfourier at q.com
Fri Feb 2 10:02:44 EET 2024


RE
ffmpeg-2.1.8

DJGPP CROSS COMPILER, GCC v12.2.0
https://github.com/andrewwutw/build-djgpp

host 
macbook pro, macOS Monterey

BUILD SCRIPT
#!/usr/bin/env bash
# Essential environment variables
export DJGPP_PREFIX=${DJGPP_PREFIX-/Users/owner/djcc}
export PATH="$DJGPP_PREFIX/bin:$PATH"
export LIB="$DJGPP_PREFIX/lib/"
export GCC_EXEC_PREFIX="$DJGPP_PREFIX/lib/gcc/"
export INCLUDE="$DJGPP_PREFIX/inc/"
# make CFLAGS="-O1" -d
# make clean
# ./configure --bindir=/Users/owner/djsrc/built/ --disable-runtime-cpudetect 
--enable-cross-compile --disable-avfilter --arch=i486 --target-os=ms-dos 
--enable-static --disable-sse --disable-sse2 --disable-ssse3 --disable-network 
--disable-mmx --disable-avx --yasmexe=EXE --cc=CC --dep-cc=DEPCC --enable-debug=3 
--extra-cflags=-I/usr/local/include/SDL2/ --extra-ldflags=-L/usr/local/lib/

ffmpeg built binary size
ffmpeg.exe; 7,994,768 bytes (8 MB on disk)

ffmpeg.exe launch dialog
LOG: E_Exit: DOS:Not enough memory for COM executable
E_Exit: DOS:Not enough memory for COM executable
*************
ATT: ffmpeg support
This is the 1st attempt to build ffmpeg package from source with referenced stats.
Please let me know if referenced compiler is compatible with this source code?

With that said, why does ffmpeg.exe output referenced dialog, when launched?
Finally, what is the trick to build ffplay.c, bundled in ffmpeg package?
Please help if whoever can, thanks!



More information about the ffmpeg-user mailing list