Compile error with android 1.11.2 and NDK 13

Abu Abdullah falcon.sheep at gmail.com
Mon Mar 20 09:24:33 UTC 2017


i have added to:
GSTREAMER_LD := -fuse-ld=gold -Wl,-soname ....

On Mon, Mar 20, 2017 at 1:07 AM, wrightpt <wrightpt at gmail.com> wrote:
> Thank you.
>
> Can I ask where in the gstreamer-1.0.mk you put the
> Wl,--allow-multiple-definition?
> I have tried everywhere that I see other flags added.
>
>
>  I get the following error:
> /home/c/gstreamer-1.0-android-universal-1.11.2/armv7/lib/libgstgl-1.0.a(libgstgl_1.0_la-gstglutils.o):
> multiple definition of 'gst_gl_get_affine_transformation_meta_as_ndc'
>
> Application.mk:
> line 2 : APP_CFLAGS = -Wl,--allow-multiple-definition
>
> Edit teh gstreamer-1.mk in
> /home/c/gstreamer-1.0-android-universal-1.11.2/armv7/share/gst-android/ndk-build/androidmedia
> :
>
> line 179: adding my own LOCAL_CFLAGS += -Wl,--allow-multiple-definition
>
> line 180: GSTREAMER_ANDROID_CMD        := $(call libtool-link,$(TARGET_CC)
> $(TARGET_LDFLAGS) *-Wl,--allow-multiple-definition* -shared
> --sysroot=$(SYSROOT_GST) \
>         -o $(GSTREAMER_ANDROID_SO) $(GSTREAMER_ANDROID_O) \
>         -L$(GSTREAMER_ROOT)/lib -L$(GSTREAMER_STATIC_PLUGINS_PATH)
> $(G_IO_MODULES_PATH) \
>         $(GSTREAMER_ANDROID_LIBS), $(GSTREAMER_LD))
> -Wl,-no-undefined,*--allow-multiple-definition*, $(GSTREAMER_LD)
>
> line 167: GSTREAMER_ANDROID_CFLAGS     += $(call
> pkg-config-get-includes,$(GSTREAMER_DEPS)), -Wl,
> --allow-multiple-definition, -I$(GSTREAMER_ROOT)/include
>
>
> line 220: $(GSTREAMER_ANDROID_O): PRIV_CC_CMD := $(TARGET_CC)
> --sysroot=$(SYSROOT_GST) $(TARGET_CFLAGS) \
>         -c $(GSTREAMER_ANDROID_C) -Wall -Werror -o $(GSTREAMER_ANDROID_O) -Wl,
> --allow-multiple-definition $(GSTREAMER_ANDROID_CFLAGS)
>
>
> Any input is appreciated. thanks again for the post
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Compile-error-with-android-1-11-2-and-NDK-13-tp4682140p4682302.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list