Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version error #12116

Open
highfreq opened this issue Nov 20, 2024 · 12 comments
Open

Version error #12116

highfreq opened this issue Nov 20, 2024 · 12 comments
Labels

Comments

@highfreq
Copy link

highfreq commented Nov 20, 2024

I get the following error:

  • What went wrong:

Task :mapReleaseSourceSetPaths UP-TO-DATE
Execution failed for task ':checkReleaseAarMetadata'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
An issue was found when checking AAR metadata:

   1.  Dependency 'androidx.core:core:1.12.0' requires libraries and applications that
       depend on it to compile against version 34 or later of the
       Android APIs.
 
       : is currently compiled against android-33.
 
       Recommended action: Update this project to use a newer compileSdk
       of at least 34, for example 35.
 
       Note that updating a library or application's compileSdk (which
       allows newer APIs to be used) can be done separately from updating
       targetSdk (which opts the app in to new runtime behavior) and
       minSdk (which determines which devices the app can be installed
       on).
  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

In the Build Android APK windows i only have android-31 and android-33 in the platform sdk and 31 and 33 in the build-tools version.

Any help would be greatly appreciated.

@HTRamsey
Copy link
Collaborator

You can try reducing the version in the line implementation 'androidx.core:core:1.12.0' in build.gradle but really you need to install at least API 34 because 34 is required for apps on the play store as of August 2024

@highfreq
Copy link
Author

I installed 34 with android studio but i guess it is not how it should be done.

@highfreq
Copy link
Author

highfreq commented Nov 21, 2024

SOLVED!!!

Somehow i was pointing at the wrong directory. Once fixed all installed versions show up and selecting 35 it compiles fine.

Now gstreamer is my last problem i need to solve.

ld: error: undefined symbol: g_module_symbol

referenced by gstglcontext.c:918 (/home/nirbheek/projects/repos/cerbero.git/1.22/build/sources/android_universal/armv7/gst-plugins-base-1.0-1.22.12/_builddir/../gst-libs/gst/gl/gstglcontext.c:918)

@HTRamsey
Copy link
Collaborator

HTRamsey commented Nov 21, 2024

Check the configure output and it should look something like this for the gstreamer part:

[cmake] -- QGC_ENABLE_GST_VIDEOSTREAMING="ON"
[cmake] -- GSTREAMER_PREFIX="/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64"
[cmake] -- GSTREAMER_LIB_PATH="/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64/lib"
[cmake] -- Found GLIB2: /home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64/lib/libglib-2.0.a   
[cmake] -- Checking for module 'gobject-2.0'
[cmake] --   Found gobject-2.0, version 2.74.4
[cmake] -- PKG_CONFIG_PATH 
[cmake] -- PKG_CONFIG_LIBDIR /home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64/lib/pkgconfig:/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64/lib/gstreamer-1.0/pkgconfig
[cmake] -- PKG_CONFIG_EXECUTABLE="/usr/bin/pkg-config" ; PKG_CONFIG_ARGN="--static;--dont-define-prefix;--define-variable=prefix=/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64;--define-variable=libdir=/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64/lib;--define-variable=includedir=/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64/include"
[cmake] -- Checking for module 'gstreamer-1.0'
[cmake] --   Found gstreamer-1.0, version 1.22.12
[cmake] -- GStreamer_VERSION="1.22.12"
[cmake] -- GST_VERSION_MAJOR="1" ; GST_VERSION_MINOR="22" ; GST_VERSION_PATCH="12"
[cmake] -- GST_PLUGINS_VERSION="1.22.12"
[cmake] -- Checking for module 'gstreamer-1.0'
[cmake] --   Found gstreamer-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-base-1.0'
[cmake] --   Found gstreamer-base-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-video-1.0'
[cmake] --   Found gstreamer-video-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-gl-1.0'
[cmake] --   Found gstreamer-gl-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-allocators-1.0'
[cmake] --   Found gstreamer-allocators-1.0, version 1.22.12
[cmake] -- Checking for module 'libdrm'
[cmake] --   Package 'libdrm', required by 'virtual:world', not found
[cmake] -- Checking for module 'gstreamer-app-1.0'
[cmake] --   Found gstreamer-app-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-audio-1.0'
[cmake] --   Found gstreamer-audio-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-codecparsers-1.0'
[cmake] --   Found gstreamer-codecparsers-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-controller-1.0'
[cmake] --   Found gstreamer-controller-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-fft-1.0'
[cmake] --   Found gstreamer-fft-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-gl-prototypes-1.0'
[cmake] --   Found gstreamer-gl-prototypes-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-gl-wayland-1.0'
[cmake] --   Package 'gstreamer-gl-wayland-1.0', required by 'virtual:world', not found
[cmake] -- Checking for module 'gstreamer-gl-x11-1.0'
[cmake] --   Package 'gstreamer-gl-x11-1.0', required by 'virtual:world', not found
[cmake] -- Checking for module 'gstreamer-mpegts-1.0'
[cmake] --   Found gstreamer-mpegts-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-net-1.0'
[cmake] --   Found gstreamer-net-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-pbutils-1.0'
[cmake] --   Found gstreamer-pbutils-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-photography-1.0'
[cmake] --   Found gstreamer-photography-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-riff-1.0'
[cmake] --   Found gstreamer-riff-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-rtp-1.0'
[cmake] --   Found gstreamer-rtp-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-sdp-1.0'
[cmake] --   Found gstreamer-sdp-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-rtsp-1.0'
[cmake] --   Found gstreamer-rtsp-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-tag-1.0'
[cmake] --   Found gstreamer-tag-1.0, version 1.22.12
[cmake] -- Checking for module 'gstreamer-va-1.0'
[cmake] --   Package 'gstreamer-va-1.0', required by 'virtual:world', not found
[cmake] -- Found GStreamer: TRUE  found components: Allocators App Audio Codecparsers Controller Fft GlPrototypes Mpegts Net Pbutils Photography Riff Rtp Rtsp Sdp Tag missing components: GlEGL GlWayland GlX11 Va
[cmake] -- GSTREAMER_PLUGIN_PATH="/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer/install/gstreamer/arm64/lib/gstreamer-1.0"
[cmake] -- plugin="gstcoreelements"
[cmake] -- plugin="gstisomp4"
[cmake] -- plugin="gstlibav"
[cmake] -- plugin="gstmatroska"
[cmake] -- plugin="gstmpegtsdemux"
[cmake] -- plugin="gstopengl"
[cmake] -- plugin="gstplayback"
[cmake] -- plugin="gstrtp"
[cmake] -- plugin="gstrtpmanager"
[cmake] -- plugin="gstrtsp"
[cmake] -- plugin="gstsdpelem"
[cmake] -- plugin="gsttcp"
[cmake] -- plugin="gstudp"
[cmake] -- plugin="gstvideoparsersbad"
[cmake] -- plugin="gstx264"
[cmake] -- plugin="gstapp"
[cmake] -- plugin="gstandroidmedia"
[cmake] -- QGC_GST_QT6_PLUGIN_PATH="/home/jonglaser/Dev/projects/qgroundcontrol/build/Android_Qt_6_6_3_Clang_arm64_v8a-Debug/_deps/gstreamer_good_plugins-src/ext/qt6"

@highfreq
Copy link
Author

Mine looks like this:

[cmake] -- QGC_ENABLE_GST_VIDEOSTREAMING="ON"
[cmake] -- GSTREAMER_PREFIX="/Users/corrado/qgroundcontrol/build/Android_Qt_6_6_3_Clang_armeabi_v7a-Release/_deps/gstreamer/install/gstreamer/armv7"
[cmake] -- GSTREAMER_LIB_PATH="/Users/corrado/qgroundcontrol/build/Android_Qt_6_6_3_Clang_armeabi_v7a-Release/_deps/gstreamer/install/gstreamer/armv7/lib"
[cmake] -- GStreamer_VERSION="1.22.12"
[cmake] -- GST_VERSION_MAJOR="1" ; GST_VERSION_MINOR="22" ; GST_VERSION_PATCH="12"
[cmake] -- GST_PLUGINS_VERSION="1.22.12"
[cmake] -- component="Core"
[cmake] -- component="Base"
[cmake] -- component="Video"
[cmake] -- component="Gl"
[cmake] -- component="Allocators"
[cmake] -- component="App"
[cmake] -- component="Audio"
[cmake] -- component="Codecparsers"
[cmake] -- component="Controller"
[cmake] -- component="Fft"
[cmake] -- component="Mpegts"
[cmake] -- component="Net"
[cmake] -- component="Pbutils"
[cmake] -- component="Photography"
[cmake] -- component="Riff"
[cmake] -- component="Rtp"
[cmake] -- component="Sdp"
[cmake] -- component="Rtsp"
[cmake] -- component="Tag"
[cmake] -- GSTREAMER_PLUGIN_PATH="/Users/corrado/qgroundcontrol/build/Android_Qt_6_6_3_Clang_armeabi_v7a-Release/_deps/gstreamer/install/gstreamer/armv7/lib/gstreamer-1.0"
[cmake] -- plugin="gstcoreelements"
[cmake] -- plugin="gstisomp4"
[cmake] -- plugin="gstlibav"
[cmake] -- plugin="gstmatroska"
[cmake] -- plugin="gstmpegtsdemux"
[cmake] -- plugin="gstopengl"
[cmake] -- plugin="gstplayback"
[cmake] -- plugin="gstrtp"
[cmake] -- plugin="gstrtpmanager"
[cmake] -- plugin="gstrtsp"
[cmake] -- plugin="gstsdpelem"
[cmake] -- plugin="gsttcp"
[cmake] -- plugin="gstudp"
[cmake] -- plugin="gstvideoparsersbad"
[cmake] -- plugin="gstx264"
[cmake] -- plugin="gstapp"
[cmake] -- plugin="gstandroidmedia"
[cmake] -- QGC_GST_QT6_PLUGIN_PATH="/Users/corrado/qgroundcontrol/build/Android_Qt_6_6_3_Clang_armeabi_v7a-Release/_deps/gstreamer_good_plugins-src/ext/qt6"
[cmake] -- QGC_ENABLE_QT_VIDEOSTREAMING="ON"

@highfreq
Copy link
Author

I see i do not have PKG in my output, should i enable it somewhere?

@HTRamsey
Copy link
Collaborator

@highfreq It should automatically be getting pkg-config from gstreamer. Can you look at #12124 and try that?

@highfreq
Copy link
Author

Made the mods in FindGStreamer.cmake and run cmake, if this is correct procedure than same error as before.

Thanks for helping me :)

@highfreq
Copy link
Author

Noticed that my configuration never says "Found gstreamer-1.0, version 1.22.12", is it ok?

@highfreq
Copy link
Author

Don't know if it makes any difference but i am trying to compile on Mac apple silicon.

@HTRamsey
Copy link
Collaborator

I don't know a lot about Mac but that's currently the one OS I don't have a CI workflow for android set up to run. The windows and Linux ones seem to be working fine for android. Do you have pkg-config installed?

@highfreq
Copy link
Author

highfreq commented Nov 25, 2024

yes, i brew installed it.

and it is here:

/opt/local/bin/pkg-config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants