Open highfreq opened 2 days ago
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
I installed 34 with android studio but i guess it is not how it should be done.
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)
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"
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"
I see i do not have PKG in my output, should i enable it somewhere?
@highfreq It should automatically be getting pkg-config from gstreamer. Can you look at #12124 and try that?
I get the following error:
What went wrong:
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:
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.