Building GStreamer error

moh ab moh081 at yahoo.com
Thu Dec 8 15:26:35 PST 2011


Hi ,

I have installed ia32-libs ,autoconf  ,libtool,gtk-doc-tools , androgenizer ,bison and flex packages , now the the compilation process  has more progress,but I got a new error (When I use ndk 6 or 5)

Install        : libgstaudioconvert.so => libs/armeabi/libgstaudioconvert.so
Compile arm    : gstaudioflinger <= gstaudioflingersink.c
Compile++ arm    : gstaudioflinger <= GstAndroid.cpp
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
SharedLibrary  : libgstaudioflinger.so
/opt/android-ndk-r6/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: *** [/opt/3/obj/local/armeabi/libgstaudioflinger.so] Error 1



when I am using ndk 7, I get another error



arm-linux-androideabi-g++: unrecognized option '-no-undefined'
/opt/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: warning: cannot find entry symbol xport-symbols-regex; defaulting to 00005fe8
Install        : libgstogg.so => libs/armeabi/libgstogg.so
Compile arm    : gstomx <= gstomx.c
Compile arm    : gstomx <= gstomx_util.c
Compile arm    : gstomx <= gstomx_interface.c
Compile arm    : gstomx <= gstomx_base_filter.c
Compile arm    : gstomx <= gstomx_base_videodec.c
Compile arm    : gstomx <= gstomx_base_videoenc.c
Compile arm    : gstomx <= gstomx_base_audiodec.c
Compile arm    : gstomx <= gstomx_dummy.c
Compile arm    : gstomx <= gstomx_volume.c
Compile arm    : gstomx <= gstomx_mpeg4dec.c
Compile arm    : gstomx <= gstomx_h263dec.c
Compile arm    : gstomx <= gstomx_h264dec.c
Compile arm    : gstomx <= gstomx_wmvdec.c
Compile arm    : gstomx <= gstomx_mpeg4enc.c
Compile arm    : gstomx <= gstomx_h264enc.c
Compile arm    : gstomx <= gstomx_h263enc.c
Compile arm    : gstomx <= gstomx_vorbisdec.c
Compile arm    : gstomx <= gstomx_mp3dec.c
Compile arm    : gstomx <= gstomx_base_sink.c
Compile arm    : gstomx <= gstomx_audiosink.c
Compile arm    : gstomx <= gstomx_conf.c
/opt/3/jni/../gst-openmax/omx/gstomx_conf.c:2: error: expected expression before ';' token
make: *** [obj/local/armeabi/objs-debug/gstomx/gstomx_conf.o] Error 1



Any Idea about this ?




________________________________
 From: moh ab <moh081 at yahoo.com>
To: Discussions about GStreamer on Android <gstreamer-android at lists.freedesktop.org> 
Sent: Thursday, December 8, 2011 4:57:39 PM
Subject: Re: Building GStreamer error
 

Hi Stefan ,

The error message has been changed after I installed  ia32-libs (I have Ubuntu 11.10 64bits) , Here is the new error message , Also I am not sure if the warnings about gstreamer libraries are normal or I have something wrong in the installed version

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
Package gstreamer was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer.pc'
to the
 PKG_CONFIG_PATH environment variable
No package 'gstreamer' found
Package gstreamer-plugins-bad-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-plugins-bad-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-plugins-bad-0.10' found
Package gstreamer-audio-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-audio-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-audio-0.10' found
cd /opt/3/jni/../x264 ; \
    CC="/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc" \
    CFLAGS="-nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc 
 /opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib/crtbegin_dynamic.o     /opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a     /opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib/crtend_android.o -I/include" \
    LD=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld \
    LDFLAGS="-lc -ldl -L/opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib -L/opt/3/obj/local/armeabi -L/opt/3/jni/../libs" \
    CPP=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp \
    CPPFLAGS="-I/include -I/opt/android-ndk-r7/platforms/android-3/arch-arm/usr/include -I/opt/3/jni/../libid3tag -I/opt/3/jni/../libmad" \
   
 PKG_CONFIG_LIBDIR=/opt/3/jni/../glib:/opt/3/jni/../gstreamer/pkgconfig:/opt/3/jni/../gst-plugins-base/pkgconfig:/opt/3/jni/../gst-plugins-good/pkgconfig:/opt/3/jni/../gst-plugins-bad/pkgconfig:/opt/3/jni/../x264:/opt/3/jni/../libmad:/opt/3/jni/../ogg \
    PKG_CONFIG_TOP_BUILD_DIR=/ \
    /opt/3/x264/configure --host=arm-linux-androideabi \
    --prefix=/system --enable-shared
Platform:   ARM
System:     LINUX
asm:        yes
avs:        no
lavf:       no
ffms:       no
gpac:       no
gpl:        yes
thread:     no
filters:    crop select_every 
debug:     
 no
gprof:      no
PIC:        yes
shared:     yes
visualize:  no
bit depth:  8

You can run 'make' or 'make fprofiled' now.
cd /opt/3/jni/../faad ; \
    touch NEWS AUTHORS ChangeLog ; \
    autoreconf -i && \
    CC="/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc" \
    CFLAGS="-nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc  /opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib/crtbegin_dynamic.o     /opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a     /opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib/crtend_android.o
 -I/include" \
    LD=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld \
    LDFLAGS="-lc -ldl -L/opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib -L/opt/3/obj/local/armeabi -L/opt/3/jni/../libs" \
    CPP=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp \
    CPPFLAGS="-I/include -I/opt/android-ndk-r7/platforms/android-3/arch-arm/usr/include -I/opt/3/jni/../libid3tag -I/opt/3/jni/../libmad" \
    PKG_CONFIG_LIBDIR=/opt/3/jni/../glib:/opt/3/jni/../gstreamer/pkgconfig:/opt/3/jni/../gst-plugins-base/pkgconfig:/opt/3/jni/../gst-plugins-good/pkgconfig:/opt/3/jni/../gst-plugins-bad/pkgconfig:/opt/3/jni/../x264:/opt/3/jni/../libmad:/opt/3/jni/../ogg \
    PKG_CONFIG_TOP_BUILD_DIR=/ \
    /opt/3/faad/configure
 --host=arm-linux-androideabi \
    --prefix=/system && \
    for file in  /opt/3/faad/libfaad/Android.mk; do \
        rm -f $file && \
        make -C $(dirname $file) $(basename $file) ; \
    done
/bin/sh: autoreconf: not found
make: *** [libfaad-configure] Error 127



Can you please help me to figure out the problem?

Thanks
-Mehmat




________________________________
 From: Stefan Sauer <ensonic at hora-obscura.de>
To: gstreamer-android at lists.freedesktop.org 
Sent: Thursday, December 8, 2011 2:36:50 PM
Subject: Re: Building GStreamer error
 
On 12/08/2011 07:31 PM, Stefan Sauer wrote:
> On 12/08/2011 04:32 PM, moh ab wrote:
>> Hi ,
>>
>> I am trying to compile the gstreamer to use it in my android project  , I followed the steps that are under the section "Building GStreamer with the NDK" on this page 
>>
>> http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions
>>
>> But the compilation failed and this is  the result
>>
>>
>> up.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
>> make: /opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
>> Package gstreamer was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `gstreamer.pc'
>> to the PKG_CONFIG_PATH environment variable
>> No package 'gstreamer' found
>> Package gstreamer-plugins-bad-0.10 was not found in the pkg-config search
 path.
>> Perhaps you should add the directory containing `gstreamer-plugins-bad-0.10.pc'
>> to the PKG_CONFIG_PATH environment variable
>> No package 'gstreamer-plugins-bad-0.10' found
>> Package gstreamer-audio-0.10 was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `gstreamer-audio-0.10.pc'
>> to the PKG_CONFIG_PATH environment variable
>> No package 'gstreamer-audio-0.10' found
>> cd /opt/android-ndk-r7/apps/2/jni/../x264 ; \
>>     CC="/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc" \
>>     CFLAGS="-nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc  /opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib/crtbegin_dynamic.o         
 /opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib/crtend_android.o -I/include" \
>>     LD=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld \
>>     LDFLAGS="-lc -ldl -L/opt/android-ndk-r7/platforms/android-3/arch-arm/usr/lib -L/opt/android-ndk-r7/apps/2/obj/local/armeabi -L/opt/android-ndk-r7/apps/2/jni/../libs" \
>>     CPP=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-cpp \
>>     CPPFLAGS="-I/include -I/opt/android-ndk-r7/platforms/android-3/arch-arm/usr/include -I/opt/android-ndk-r7/apps/2/jni/../libid3tag -I/opt/android-ndk-r7/apps/2/jni/../libmad" \
>>    
 PKG_CONFIG_LIBDIR=/opt/android-ndk-r7/apps/2/jni/../glib:/opt/android-ndk-r7/apps/2/jni/../gstreamer/pkgconfig:/opt/android-ndk-r7/apps/2/jni/../gst-plugins-base/pkgconfig:/opt/android-ndk-r7/apps/2/jni/../gst-plugins-good/pkgconfig:/opt/android-ndk-r7/apps/2/jni/../gst-plugins-bad/pkgconfig:/opt/android-ndk-r7/apps/2/jni/../x264:/opt/android-ndk-r7/apps/2/jni/../libmad:/opt/android-ndk-r7/apps/2/jni/../ogg \
>>     PKG_CONFIG_TOP_BUILD_DIR=/ \
>>     /opt/android-ndk-r7/apps/2/x264/configure --host=arm-linux-androideabi \
>>     --prefix=/system --enable-shared
>> No working C compiler found.
>> make: *** [libx264-configure] Error 1
>>
> for starters, upgrade your ndk, r7 is super old.
sorry mismatch of ndk and sdk version. r7 is new. But something is wrong
with the ndk setup:

make:
 /opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found

can you check where your gcc is?

Stefan
> Stefan
>
>> Any suggestion Plz , I do not know exactly what is the problem .I am using Ubuntu 11.10 
>>
>> Thanks for help
>>
>> _______________________________________________
>> gstreamer-android mailing list
>> gstreamer-android at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android

_______________________________________________
gstreamer-android mailing list
gstreamer-android at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-android



_______________________________________________
gstreamer-android mailing list
gstreamer-android at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20111208/b669bb8e/attachment-0001.htm>


More information about the gstreamer-android mailing list