Quantcast

Compile error with android 1.11.2 and NDK 13

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Compile error with android 1.11.2 and NDK 13

Abu Abdullah
Hi,

i have an issue with compiling
gstreamer-1.0-android-universal-1.11.2/armv7   with NDK-13 in Windows


clang.exe: error: invalid linker name in argument '-fuse-ld=gold'
make: *** [buildsharedlibrary_armeabi-v7a] Error 1


the last working environment for me was
gstreamer-1.0-android-armv7-1.9.1 with NDK-12b

i tried to compile 1.11.2 with NDK-12b but another error is thrown:

arm-linux-androideabi-gcc: error: CreateProcess: No such file or directory
make: *** [buildsharedlibrary_armeabi-v7a] Error 1

the default compiler for NDK 13 and above is clang
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile error with android 1.11.2 and NDK 13

Abu Abdullah
after few attempts to solve the issue (ndk14 with version 1.11.2),
apparently the issue with "arm-linux-androideabi-gcc: error:
CreateProcess" is solved by just making sure that the NDK path is as
short as possible !

the error with "invalid linker name in argument '-fuse-ld=gold'" is
solved by replacing gold with gold.exe

another error appears after that:
Error:  E:/t/gstreamer-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'

adding "-Wl,--allow-multiple-definition" in the gstreamer-1.0.mk and
this issue disappeared as well.

another issue appears after that:
E:/t/ndk-r14/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe:
error: conditional branch to PLT in THUMB-2 not supported yet.
libswresample/arm/audio_convert_neon.S:137: error: unexpected opcode
while processing relocation R_ARM_THM_JUMP19
clang.exe: error: linker command failed with exit code 1 (use -v to
see invocation)
make: *** [buildsharedlibrary_armeabi-v7a] Error 1

any advice is appreciated

On Thu, Mar 9, 2017 at 8:55 PM, Abu Abdullah <[hidden email]> wrote:

> Hi,
>
> i have an issue with compiling
> gstreamer-1.0-android-universal-1.11.2/armv7   with NDK-13 in Windows
>
>
> clang.exe: error: invalid linker name in argument '-fuse-ld=gold'
> make: *** [buildsharedlibrary_armeabi-v7a] Error 1
>
>
> the last working environment for me was
> gstreamer-1.0-android-armv7-1.9.1 with NDK-12b
>
> i tried to compile 1.11.2 with NDK-12b but another error is thrown:
>
> arm-linux-androideabi-gcc: error: CreateProcess: No such file or directory
> make: *** [buildsharedlibrary_armeabi-v7a] Error 1
>
> the default compiler for NDK 13 and above is clang
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile error with android 1.11.2 and NDK 13

wrightpt
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile error with android 1.11.2 and NDK 13

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

On Mon, Mar 20, 2017 at 1:07 AM, wrightpt <[hidden email]> 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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile error with android 1.11.2 and NDK 13

tremalnaik
In reply to this post by Abu Abdullah
In my case all works with Android Studio using NDK-12 and universal-1.10.0
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile error with android 1.11.2 and NDK 13

wrightpt
Thank you both for the input

On Wed, Mar 22, 2017 at 10:09 AM, tremalnaik [via GStreamer-devel] <[hidden email]> wrote:
In my case all works with Android Studio using NDK-12 and universal-1.10.0


If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Compile-error-with-android-1-11-2-and-NDK-13-tp4682140p4682353.html
To unsubscribe from Compile error with android 1.11.2 and NDK 13, click here.
NAML

Loading...