#1283 closed defect (duplicate)
Lastest version cannot compie by NDK
Reported by: | K.Y.H | Owned by: | |
---|---|---|---|
Priority: | important | Component: | build system |
Version: | git-master | Keywords: | NDK |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I am using android with NDK and msys.
Msys can download at "http://xhmikosr.1f0.de/tools/MSYS_MinGW_GCC_470_x86-x64.7z"
More information is "http://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_compile_the_MPC"
After setup build system.
I run configure below script.
#!/bin/sh trap exit ERR LIB_DIR=arm-v5 FFMPEG_DIR=ffmpeg-$LIB_DIR SCRIPT_DIR=$( (cd -P $(dirname $0) && pwd) ) rm -rf $FFMPEG_DIR mkdir $FFMPEG_DIR cd $FFMPEG_DIR mkdir -p dist NDK=D:/android/android-ndk SYSROOT=$NDK/platforms/android-14/arch-arm FLAGS="--prefix="dist" --cross-prefix=arm-linux-androideabi- --enable-cross-compile --target-os=linux" FLAGS="$FLAGS --arch=arm" FLAGS="$FLAGS --enable-asm --disable-debug --enable-optimizations --enable-pthreads" FLAGS="$FLAGS --disable-ffserver --disable-ffmpeg --disable-ffprobe --disable-encoders --disable-muxers --disable-avdevice --disable-hwaccels " FLAGS="$FLAGS --enable-swscale" EXTRA_CFLAGS="-DANDROID -O3 -fpic -fasm -ffast-math -marm" EXTRA_CFLAGS="$EXTRA_CFLAGS -msoft-float --sysroot=$SYSROOT" EXTRA_LDFLAGS="--sysroot=$SYSROOT" EXTRA_CXXFLAGS="-Wno-multichar -fno-exceptions -fno-rtti" echo "FLAGS: $FLAGS --extra-cflags=$EXTRA_CFLAGS --extra-ldflags=$EXTRA_LDFLAGS --extra-cxxflags=$EXTRA_CXXFLAGS " ../../ffmpeg/configure $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" --extra-cxxflags="$EXTRA_CXXFLAGS" make clean make -j4
As result...
..
..
..
License: LGPL version 2.1 or later
Creating config.mak and config.h...
WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail.
/Workspace/ffmpeg/library.mak:95: * missing separator. Stop.
Change History (2)
follow-up: 2 comment:1 by , 13 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Your checkout is corrupt, please see ticket #1209.