环境:
Ubuntu 16.04
ffmpeg source code version 3.4.2
安装了SDL2
$ pkg-config --exists --print-errors sdl2
$ sdl2-config --cflags
-I/usr/include/SDL2 -D_REENTRANT
$ sdl2-config --libs
-L/usr/lib/x86_64-linux-gnu -lSDL2
$ sdl2-config --version
2.0.4
以下是我的配置shell脚本的一部分:
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$TARGET_DIR/lib/pkgconfig" ./configure \
--prefix="$TARGET_DIR" \
--pkg-config-flags="--static" \
--enable-sdl2 \
当我运行脚本时,我得到的错误是" sdl2已请求但未找到。"
我错过了什么?问候。