我正在尝试在ubuntu 16.04下为android构建ffmpeg,我所有的依赖项和配置脚本运行正常。
运行后让程序开始编译代码几分钟,然后无缘无故停止。
没有生成输出(ffmpeg或库),终端
没有显示错误运行的命令是:
export PKG_CONFIG="$(which pkg-config)"
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
export CPP="${CROSS_PREFIX}cpp"
export CXX="${CROSS_PREFIX}g++"
export CC="${CROSS_PREFIX}gcc"
export LD="${CROSS_PREFIX}ld"
export AR="${CROSS_PREFIX}ar"
export NM="${CROSS_PREFIX}nm"
export RANLIB="${CROSS_PREFIX}ranlib"
export LDFLAGS="-L$PREFIX/lib -L$SYSROOT/usr/lib -L$NDK/sysroot/usr/lib/$HOST -fPIE -pie --sysroot=$SYSROOT "
export CFLAGS="$OPTIMIZE_CFLAGS -I$PREFIX/include -I$NDK/sysroot/usr/include -I$TOOLCHAIN -fPIE "
export CXXFLAGS="$CFLAGS "
export CPPFLAGS="-I$PREFIX/include -I$NDK/sysroot/usr/include -I$TOOLCHAIN --sysroot=$SYSROOT "
export STRIP=${CROSS_PREFIX}strip
export PATH="$PATH:$PREFIX/bin:$NDK/build:${PREBUILT_TOOLCHAIN}/bin"
export CROSS_SYSROOT="${SYSROOT}"
pushd ffmpeg
CROSS_COMPILE_FLAGS="--target-os=linux \
--arch=$ARCH \
--cross-prefix=$CROSS_PREFIX \
--enable-cross-compile \
--sysroot=$SYSROOT"
./configure --prefix=$PREFIX \
$CROSS_COMPILE_FLAGS \
--pkg-config=$(which pkg-config) \
--pkg-config-flags="--static" \
--enable-pic \
--enable-small \
--enable-gpl \
--enable-nonfree \
\
--disable-shared \
--enable-static \
\
--enable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
\
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libx264 \
--enable-libfdk-aac \
--enable-bsf=aac_adtstoasc \
--enable-librtmp \
--enable-zlib \
--enable-libfreetype \
--enable-openssl \
--enable-libfontconfig \
\
--disable-doc \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make -j8
make install V=1
像这样停下来:
^
/home/rafa/Desktop/missao/ndk17/sysroot/usr/include/linux/swab.h:72:30: warning: always_inline function might not be inlinable [-Wattributes]
static __always_inline __u64 __swab64p(const __u64 * p) {
^
/home/rafa/Desktop/missao/ndk17/sysroot/usr/include/linux/swab.h:65:30: warning: always_inline function might not be inlinable [-Wattributes]
static __always_inline __u32 __swab32p(const __u32 * p) {
^
/home/rafa/Desktop/missao/ndk17/sysroot/usr/include/linux/swab.h:58:30: warning: always_inline function might not be inlinable [-Wattributes]
static __always_inline __u16 __swab16p(const __u16 * p) {
^
rafa@ubuntu:~/Desktop/m3$
我已经检查过,在${PREFIX}
找不到任何库或二进制文件有没有我可以检查的日志?