이 오류를 해결하는 방법은 무엇입니까? make: *** [obj/local/armeabi/libgstaudioflinger.so] 오류 1

이 오류를 해결하는 방법은 무엇입니까? make: *** [obj/local/armeabi/libgstaudioflinger.so] 오류 1

SDK/NDK를 사용하여 Linux Fedora 상자에서 Android로 다음 프레임워크를 설치하려고 합니다. 그러나 모든 지침을 따른 후에도 여전히 빌드되지 않습니다. 문제를 해결하는 방법을 아시나요?

1) 계란

$ cd /var/tmp
$ git clone git://git.collabora.co.uk/git/user/reynaldo/gstreamer_ndk_bundle
$ cd gstreamer_ndk_bundle
$ git submodule update --init

2) 드롭

$ cd /var/tmp
$ wget http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2
$ tar xvfj android-ndk-r7-linux-x86.tar.bz2
$ wget http://dl.google.com/android/android-sdk_r15-linux.tgz
$ tar xvfz android-sdk_r15-linux.tgz;
$ export PATH=$PATH:/var/tmp/android-ndk-r7
$ export PATH=$PATH:/var/tmp/android-sdk-linux/tools

#############################
# Try 1: failed 
#############################
$ ./setup.sh
Updated project.properties
Updated local.properties
Updated file ./build.xml
Updated file ./proguard.cfg
android_headers
faad
glib
gnonlin
gst-android
gst-editing-services
gst-openmax
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
jni
libid3tag
libmad
ogg
res
src
x264
/var/tmp/android-ndk-r7/prebuilt/linux-x86/bin/awk: /var/tmp/android-ndk-r7/prebuilt/linux-x86/bin/awk: cannot execute binary file
Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !    
/var/tmp/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting.    .  Stop.
# use this to fix this error
$ mv /var/tmp/android-ndk-r7/prebuilt/linux-x69/bin/awk awk_

#############################
# Try 2: failed 
#############################
$ ./setup.sh

> Android.mk
/bin/sh: line 1: androgenizer: command not found
make[1]: *** [Android.mk] Error 127
make[1]: Leaving directory `/home/sun/Downloads/gstreamer_ndk_bundle/faad/libfaad'
make: *** [libfaad-configure] Error 2

# use following to fix this above error
$ git clone git://git.collabora.co.uk/git/user/derek/androgenizer.git
$ make
$ export PATH=$PATH:/var/tmp/gstreamer_ndk_bundle/androgenizer

#############################
# Try 3: failed 
#############################
$ ./setup.sh
/var/tmp/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lmedia
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/libgstaudioflinger.so] Error 1
# How to fix this error?

3) 출생

@TODO
$ ./install_bundle.sh

답변1

나는 당신의 관심을 집중합니다실제출력 오류 메시지:

Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !    
/var/tmp/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting.    .  Stop.

패키지 관리자를 통해 최신 버전의 gawk 또는 nawk를 설치하고 다시 시도하세요.

답변2

잘못된 버전의 awk가 r7에 번들로 제공됩니다. r7b를 사용해 보세요.

관련 정보