Compiling x264

Steve Prentice prentice at cisco.com
Tue Dec 6 10:11:41 PST 2011


Hello,

Thanks for putting together the gstreamer_ndk_bundle repo. It has been a huge timesaver! I have everything working on my GalaxyTab except the x264 project won't compile. I'm getting an error during linking. I've tried passing --enable-pic in the call to configure from Android.mk and it had no effect. 

Below is the linking error I get:

/home/prentice/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: /home/prentice/src/gstreamer_ndk_bundle/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

/home/prentice/src/gstreamer_ndk_bundle/obj/local/armeabi/objs-debug/x264/common/arm/pixel-a.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

I'm able to work around this issue for now by using --disable-asm and removing the asm related sources from Android.mk, but I'm hoping someone might have run into this and resolved it.

Thanks,
-Steve


More information about the gstreamer-android mailing list