After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796402 - Linking error for android release 1.14.1 for all archs.
Linking error for android release 1.14.1 for all archs.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: dont know
1.14.1
Other Windows
: Normal blocker
: 1.14.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-25 17:55 UTC by Kim Jonathan
Modified: 2018-11-03 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Build Error Log file (72.74 KB, text/plain)
2018-05-25 17:55 UTC, Kim Jonathan
Details
Android.mk file (1.90 KB, text/plain)
2018-05-25 17:56 UTC, Kim Jonathan
Details
Android studio project file (1.29 MB, application/octet-stream)
2018-05-28 15:16 UTC, Kim Jonathan
Details
Modified gradle build file (3.94 KB, text/plain)
2018-06-10 07:52 UTC, Kim Jonathan
Details

Description Kim Jonathan 2018-05-25 17:55:39 UTC
Created attachment 372406 [details]
Build Error Log file

Hi,

I am facing 'undefined reference' and 'incompatible target' linking error on android platform for all arch's in release 1.14.1. Build environment details are below.

Host OS: Windows 7
Editor: Android Stuio 3.0.1
NDK version: r16

error logs and android.mk files are attached.
Comment 1 Kim Jonathan 2018-05-25 17:56:19 UTC
Created attachment 372407 [details]
Android.mk file
Comment 2 Sebastian Dröge (slomo) 2018-05-26 05:58:24 UTC
It seems like it is always using the first architecture in Application.mk, so in your case x86.

This did not seem to happen with a gradle based build that I tried some days ago. Can you provide a whole project for reproducing?
Comment 3 Kim Jonathan 2018-05-27 15:08:30 UTC
Ok. I will share a new app within few days.

By the time, I observed continuous memory increase while using H/W decoders in this release. While using libav codecs, no memory increase observed.
I used android studio profiler tool.
Comment 4 Kim Jonathan 2018-05-28 15:16:30 UTC
Created attachment 372446 [details]
Android studio project file
Comment 5 Kim Jonathan 2018-05-28 15:18:21 UTC
This project is not yet complete but solving our purpose to reproduce build issue.
I will make it a Test player for future issue.

Note: you may get below warning/error message while opening the solution in Android Stuio. Just ignore that and try to build.

 Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
> Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
Comment 6 Jan Schmidt 2018-05-29 15:46:40 UTC
I can't reproduce this when using a gradle build that uses an externalNativeBuild block instead of an explicit call to ndk-build. I tested with https://github.com/sdroege/gst-launch-remote.

As noted above, the problem seems to be related to having multiple architectures in the APP_ABI line in Application.mk

https://groups.google.com/forum/#!topic/android-ndk/Y1ozOWg1Cyw seems related, although claims to be an old bug that was fixed many years ago.

In any case, I don't think this is a regression in the GStreamer binaries - it's something broken in ndk-build itself.
Comment 7 Sebastian Dröge (slomo) 2018-05-29 16:19:20 UTC
It would be worth trying e.g. with https://cgit.freedesktop.org/gstreamer/gst-docs/tree/examples/tutorials/android-tutorial-5

This probably does not happen with gradle but only with plain ndk-build.
Comment 8 Kim Jonathan 2018-05-29 16:57:06 UTC
(In reply to Sebastian Dröge (slomo) from comment #7)
> It would be worth trying e.g. with
> https://cgit.freedesktop.org/gstreamer/gst-docs/tree/examples/tutorials/
> android-tutorial-5
> 
> This probably does not happen with gradle but only with plain ndk-build.

I will try this project in my environment and let you know. By the time, are we going to dig out what failing in case of plain ndk-build ?
Comment 9 Tim-Philipp Müller 2018-06-06 15:33:46 UTC
Kim: any updates?

Jan: did you make any more progress on this?
Comment 10 Kim Jonathan 2018-06-10 07:51:28 UTC
Tim: 
  Build was successful after using externalNativeBuild for all arch's in Application.mk file. I am attaching modified gradle build file.
Comment 11 Kim Jonathan 2018-06-10 07:52:19 UTC
Created attachment 372627 [details]
Modified gradle build file
Comment 12 GStreamer system administrator 2018-11-03 16:13:22 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/14.