[FFmpeg-devel] How to resolve "ERROR: sdl2 requested but not found" when cross compile?

JACKY_ZZ[猫猫爱吃鱼] jackyxinli at 163.com
Sun Jul 5 13:46:04 EEST 2020


I did compile SDL2 first, and run command "sudo ln -s /home/lixin/SDL2/bin/sdl2-config /usr/bin/arm-linux-gnueabihf-sdl2-config", but I got "ERROR: sdl2 requested but not found" message when I did cross compile. Here are commands what I did run for cross compile listed below:
# export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
# export CC=${CROSS_COMPILE}gcc
# ln -s /root/build/SDL2/bin/sdl2-config /usr/bin/arm-linux-gnueabihf-sdl2-config
# ./configure --prefix=/root/build/ffmpeg --cross-prefix=$CROSS_COMPILE --enable-gpl --enable-version3 --enable-nonfree --enable-cross-compile --arch=arm --target-os=linux --cross-prefix=$CROSS_COMPILE --enable-pthreads --disable-doc --disable-debug --disable-x86asm --disable-static --enable-shared --enable-sdl2


More information about the ffmpeg-devel mailing list