Building GStreamer error

Steve Prentice prentice at cisco.com
Mon Dec 12 07:15:06 PST 2011


I'm using 32bit and have the same issue, so I think the problem is something with ndk r7. I wasn't able to fix the problem, so I disabled asm in the x264 project to work around it. Good enough for me for now. Sounds like using ndk r6b is a good way to resolve the issue too.

-Steve

On Dec 12, 2011, at 6:51 AM, Mike Albren wrote:

> The  Ubuntu 10.04  I used later is 32 bits , I do not know if the 64bits OS was  part of the problem 
> 
> From: Mike Albren <mike_albren at yahoo.com>
> To: Munish Jindal <munish_iitd at yahoo.com>; Discussions about GStreamer on Android <gstreamer-android at lists.freedesktop.org> 
> Sent: Monday, December 12, 2011 6:43 AM
> Subject: Re: Building GStreamer error
> 
> Hi Munish ,
> 
> No , I am still not able to solve it on Ubuntu 11.10 64 bits , But I installed Ubuntu 10.04 on vmware player , The compilation went smooth on it using ndk6b
> 
> I hope this may help you.
> 
> Regards
> -Mohmat
> 
> From: Munish Jindal <munish_iitd at yahoo.com>
> To: moh ab <moh081 at yahoo.com>; Discussions about GStreamer on Android <gstreamer-android at lists.freedesktop.org> 
> Sent: Monday, December 12, 2011 4:45 AM
> Subject: Re: Building GStreamer error
> 
> Hi Moh,
> 
> Were you able to  solve this error "pixel-a.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC".
> 
> If yes, please let me know the solution.
> 
> Regards,
> Munish
> 
> From: moh ab <moh081 at yahoo.com>
> To: Discussions about GStreamer on Android <gstreamer-android at lists.freedesktop.org> 
> Sent: Friday, 9 December 2011 6:33 AM
> Subject: Re: Building GStreamer error
> 
> Thanks , It solves the problem , but I am running into another one , I got this new error
> 
> Compile thumb  : x264 <= predict-a.S
> cc1: warning: switch -mcpu=cortex-a8 conflicts with -march= switch
> arm-linux-androideabi-gcc: /opt/android-ndk-r7/platforms/android-9/arch-arm/usr/lib/crtbegin_dynamic.o: linker input file unused because linking not done
> arm-linux-androideabi-gcc: /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: linker input file unused because linking not done
> arm-linux-androideabi-gcc: /opt/android-ndk-r7/platforms/android-9/arch-arm/usr/lib/crtend_android.o: linker input file unused because linking not done
> SharedLibrary  : libx264.so
> /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: ./obj/local/armeabi/objs-debug/x264/common/arm/pixel-a.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> ./obj/local/armeabi/objs-debug/x264/common/arm/pixel-a.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [obj/local/armeabi/libx264.so] Error 1
> 
> 
> Any one can help with this  Please?
> 
> Thanks
> 
> From: Mark Howell <mark-sub1 at hypgnosys.org>
> To: gstreamer-android at lists.freedesktop.org 
> Sent: Thursday, December 8, 2011 7:02:03 PM
> Subject: Re: Building GStreamer error
> 
> On 12/8/2011 4:26 PM, moh ab wrote:
> 
> [snip]
>> 
>> 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 ?
> 
> I had the same error at one point. You will find in the gstreamer-android list archives someone mentions a workaround.
> 
> Edit gstreamer_ndk_bundle/gst-openmax/omx/gstomx_conf.c by hand to say:
> 
> const char *default_config;
> 
> That worked for me.
> 
> Cheers,
> 
> Mark.
> 
> _______________________________________________
> 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/20111212/a81ba94e/attachment.html>


More information about the gstreamer-android mailing list