arm-linux-androideabi-pkg-config not found, ffmpeg-0.10.2, ndk-r7c, android-8, armv7-a

4,671 views
Skip to first unread message

roemer

unread,
Apr 23, 2012, 11:02:25 AM4/23/12
to andro...@googlegroups.com
hey there!

i've successfuly configured ffmpeg and am now stuck in compiling it.

I always get the warning: "WARNING: /android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-pkg-config not found, library detection may fail." and then the build fails with a lot of warnings and the error 

collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

my build script looks like this:

NDK=~/android-ndk-r7c
PLATFORM=$NDK/platforms/android-8/arch-arm/
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86
CPU=armv7-a
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
PREFIX=./android/$CPU
ADDITIONAL_CONFIGURE_FLAG=

./configure \
    --disable-everything \
    --enable-small \
    --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
    --enable-cross-compile \
    --target-os=linux \
    --extra-cflags="-I$PLATFORM/usr/include" \
    --extra-ldflags="-L$PLATFORM/usr/lib -nostdlib" \
    --arch=arm \
    --enable-decoder=aac \
    --enable-encoder=aac \
    $ADDITIONAL_CONFIGURE_FLAG
sed -i 's/HAVE_LRINT 0/HAVE_LRINT 1/g' config.h
sed -i 's/HAVE_LRINTF 0/HAVE_LRINTF 1/g' config.h
sed -i 's/HAVE_ROUND 0/HAVE_ROUND 1/g' config.h
sed -i 's/HAVE_ROUNDF 0/HAVE_ROUNDF 1/g' config.h
sed -i 's/HAVE_TRUNC 0/HAVE_TRUNC 1/g' config.h
sed -i 's/HAVE_TRUNCF 0/HAVE_TRUNCF 1/g' config.h
make clean
make  -j4 install
$PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o
$PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib  -soname libffmpeg.so -shared -nostdlib  -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog  --warn-once  --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a

am I doing something wrong? do you have any ideas what could cause the problem? did the ndk use to have a pkg-config?

cheers

deb-account

unread,
May 3, 2012, 3:58:16 AM5/3/12
to andro...@googlegroups.com
On 23/04/12 17:02, roemer wrote:
> hey there!
>
> i've successfuly configured ffmpeg and am now stuck in compiling it.
>
> I always get the warning: "WARNING:
> /android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-pkg-config
> not found, library detection may fail." and then the build fails with a lot
> of warnings and the error
>
Try "configure --help".
You should see options related to pkg-config.

David Turner

unread,
May 3, 2012, 9:41:45 AM5/3/12
to andro...@googlegroups.com
Use a standalone toolchain install instead of calling the toolchain binaries under $NDK/prebuilt/ directly. See $NDK/docs/STANDALONE-TOOLCHAIN.sh


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/9JKJ6cg5KK4J.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

bj.moon

unread,
May 11, 2012, 12:47:13 AM5/11/12
to andro...@googlegroups.com
Hi there.

Could you let me know what's the options related to pkg-config?
I don't see the option with "configure --help"

Best Regards
Bongjae

黄鹏飞

unread,
Jan 23, 2016, 11:40:03 AM1/23/16
to android-ndk, bj7....@gmail.com
he means "./configure --help" , there is a bash file named configure in your folder.

在 2012年5月11日星期五 UTC+8下午12:47:13,bj.moon写道:
Reply all
Reply to author
Forward
0 new messages