Package Details: android-aarch64-qt5 5.15.2-2

Git Clone URL: https://aur.archlinux.org/android-aarch64-qt5.git (read-only, click to copy)
Package Base: android-aarch64-qt5
Description: Qt 5 for Android
Upstream URL: https://www.qt.io
Licenses: GPL3, LGPL
Groups: android-qt5
Submitter: hipersayan_x
Maintainer: None
Last Packager: hipersayan_x
Votes: 14
Popularity: 0.000000
First Submitted: 2018-11-22 19:14 (UTC)
Last Updated: 2021-03-14 20:01 (UTC)

Dependencies (26)

Sources (4)

Pinned Comments

hipersayan_x commented on 2021-07-07 15:05 (UTC) (edited on 2021-07-07 15:09 (UTC) by hipersayan_x)

I'll drop this package, I been thinking and there are a lot of strong reasons not to waste any time maintaining it.
KDE doesn't provide an easy way to download the entire Qt source code in a single package, like in the official Qt releases.
Also, KDE doesn't provides tagged versions, I've to keep tracking manually the latest commits, or converting it to a git package.
It will require to split this package into 47x4 packages, 47 Qt modules and 4 architectures to maintain, that's 188 packages to maintain, absurd!
Cloning a git repository is slower than just downloading a source package file, making the build even much slower and painful.
Is a lot of work for something that will be dead in 1 year or 2 at most.
Good luck to the one that will step up to take care of this monstrosity, to the rest of developers, don't be lazy and consider switching to Qt6.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

pacorrop commented on 2020-05-24 22:21 (UTC) (edited on 2020-05-24 22:29 (UTC) by pacorrop)

I managed to get CMake projects working when building. I cannot tell a proper way about how to do it yet, as I did so many manual tweaks that it is not worth to put them here.

But in order to Qt to generate the *.cmake files from all its modules, it is possible to (remove first your previous src folder) build this package specifying the same ABI in a duplicate manner:

    diff --git a/PKGBUILD b/PKGBUILD
    index 06459a8..77033c0 100644
    --- a/PKGBUILD
    +++ b/PKGBUILD
    @@ -134,7 +135,7 @@ build() {
             -android-sdk ${ANDROID_HOME}
             -android-ndk ${ANDROID_NDK_HOME}
             -android-ndk-host linux-x86_64
    -        -android-abis ${ANDROID_ABI}
    +        -android-abis ${ANDROID_ABI},${ANDROID_ABI}
             -android-ndk-platform ${ANDROID_NDK_PLATFORM}
             -recheck-all
             -optimized-qmake

This comes from the link mentioned by Martchus (last message)

Emeric commented on 2020-04-16 15:59 (UTC)

Rebuilding Qt with the internal libjpeg by changing the configue_opts of the PKGBUILD is your best bet I think.

MichaelS commented on 2020-04-08 19:08 (UTC)

Loading jpeg file doesn't work for me, because apk file doesn't contain the jpeg plugin. I'm not very familiar with android building process. How can I include the jpeg plugin into the deployment process?

Emeric commented on 2020-02-27 15:01 (UTC)

By the way I never got back to you on the image plugins because... Qt 5.14 just doesn't build my android projects anymore... Qt 5.14.1 also stopped building my iOS projects ^^

hipersayan_x commented on 2019-12-26 15:09 (UTC)

Their latest improvements are not really improvements...

I feel the same :-/

Martchus commented on 2019-12-24 13:33 (UTC) (edited on 2019-12-24 14:34 (UTC) by Martchus)

Seems like half of the CMake configuration files are now missing. Their latest improvements are not really improvements...

At least the bug is already tracked upstream: https://bugreports.qt.io/browse/QTBUG-80938

This change might fix the problem: https://0x0.st/zGLP.txt

hipersayan_x commented on 2019-12-19 01:33 (UTC)

I have advanced a bit, right now I want to remove the trailing architecture in the libraries, and I must fix some libraries that are installed out of place. Will upload the package once I finish all testing.

Martchus commented on 2019-12-17 21:01 (UTC)

By the way, my patches for finding certain libraries via pkg-config have been upstreamed now:

https://codereview.qt-project.org/c/qt/qtbase/+/273179 https://codereview.qt-project.org/c/qt/qtimageformats/+/284743

Martchus commented on 2019-12-17 20:58 (UTC)

My version (currently found in the WIP commit on branch https://github.com/Martchus/PKGBUILDs/tree/update/mingw-w64-qt5) builds now. I disabled Qt WebEngine. Previously Qt WebEngine has not been built anyways. I've spoken to Qt devs on IRC and it seems that it is also not intended that Qt WebEngine is built for Android. The "problem" is actually our patch 0003-Support-pkg-config-under-Android.patch. It works too well. Usually the Qt WebEngine module is skipped for Android simply because of the absence of pkg-config support which is a pre-condition for that module. I'm simply skipping the module manually via a configure option now. Maybe I'll create a patch (and try to upstream it) to actually fix the condition (which should be linux:!android instead of just linux). I also had to add a sed command within prepare() to fix the architecture when building for non-aarch64 targets. See the mentioned WIP commit for the concrete changes.

hipersayan_x commented on 2019-12-17 20:34 (UTC)

I have added some changes to my git. Martchus, I had the same error as yours, for some reason the QT_ARCH is not properly set, I've forced GN_TARGET_CPU to arm64 (just to test), then I had this error:

Project MESSAGE: Running: /home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/3rdparty/gn/out/Release/gn gen /home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/release --script-executable=/usr/bin/python2 --args='use_qt=true closure_compile=false is_component_build=false is_shared=true enable_message_center=false enable_nacl=false enable_remoting=false enable_reporting=false enable_resource_whitelist_generation=false enable_swiftshader=false enable_web_auth=false enable_web_speech=false enable_widevine=true has_native_accessibility=false enable_debugallocation=false use_allocator_shim=false use_allocator="none" use_custom_libcxx=false v8_use_external_startup_data=false toolkit_views=false treat_warnings_as_errors=false safe_browsing_mode=0 optimize_webui=false forbid_non_component_debug_builds=false use_jumbo_build=true jumbo_file_merge_limit=8 jumbo_build_excluded=["browser"] enable_basic_printing=false enable_print_preview=false enable_pdf=false enable_plugins=false enable_spellcheck=true enable_webrtc=false audio_processing_in_audio_service_supported=false enable_extensions=false enable_precompiled_headers=true is_official_build=true is_debug=false symbol_level=0 blink_symbol_level=0 remove_v8base_debug_symbols=true v8_use_snapshot=true use_kerberos=false use_cups=false use_gio=false use_gnome_keyring=false linux_use_bundled_binutils=false use_udev=true use_bundled_fontconfig=false use_sysroot=false enable_session_service=false is_cfi=false strip_absolute_paths_from_debug_symbols=false toolkit_views=false use_ozone=true ozone_auto_platforms=false ozone_platform_headless=false ozone_platform_external=true ozone_platform="qt" ozone_extra_path="/home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/ozone/ozone_extra.gni" is_desktop_linux=false use_gold=false use_lld=false is_clang=true clang_use_chrome_plugins=false clang_use_default_sample_profile=false clang_base_path="/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64" custom_toolchain="/home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/toolchain:target" host_toolchain="/home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/toolchain:host" v8_snapshot_toolchain="/home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/toolchain:v8_snapshot" target_cpu="arm64" pkg_config="android-aarch64-pkg-config" host_pkg_config="/usr/bin/pkg-config" use_system_libpng=true use_system_libjpeg=true use_system_freetype=false use_system_harfbuzz=false use_glib=false use_pulseaudio=false use_alsa=false use_libpci=false use_system_libwebp=true use_system_opus=true use_system_libvpx=true use_system_lcms2=true qtwebengine_target="/home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/release:QtWebEngineCore"' --root=/home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/3rdparty/chromium 
ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code.
    pkgresult = exec_script(pkg_config_script, args, "value")
                ^----------
Current dir: /home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/release/
Command: /usr/bin/python2 /home/user/ArchPackages/android-qt5/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/3rdparty/chromium/build/config/linux/pkg-config.py -p android-aarch64-pkg-config nss -v -lssl3
Returned 1.
stderr:

Package nss was not found in the pkg-config search path.
Perhaps you should add the directory containing `nss.pc'
to the PKG_CONFIG_PATH environment variable
Package 'nss', required by 'virtual:world', not found
Could not run pkg-config.

See //build/config/linux/nss/BUILD.gn:15:3: whence it was called.
  pkg_config("system_nss_no_ssl_config") {
  ^---------------------------------------
See //crypto/BUILD.gn:214:25: which caused the file to be included.
    public_configs += [ "//build/config/linux/nss:system_nss_no_ssl_config" ]
                        ^--------------------------------------------------
Project ERROR: GN run error!

Now I don't know if must add an android-nss (which I don't feel in the mood of maintaining more packages), I don't know if it would be possible to remove that 'virtual:world' option (I don't know Google's build system enough to do that), or just skip qtwebengine as you said (is someone using Qt WebEngine for their projects?).