Package Details: android-aarch64-qt5 5.14.1-1

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: hipersayan_x
Last Packager: hipersayan_x
Votes: 12
Popularity: 0.27
First Submitted: 2018-11-22 19:14
Last Updated: 2020-02-06 04:38

Dependencies (26)

Required by (1)

Sources (3)

Latest Comments

1 2 3 4 5 6 Next › Last »

Emeric commented on 2020-02-27 15:01

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

Their latest improvements are not really improvements...

I feel the same :-/

Martchus commented on 2019-12-24 13:33

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

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

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

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

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?).

Martchus commented on 2019-12-15 21:09

Yet another error:

make[4]: Entering directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/buildtools'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/buildtools'
make[3]: Leaving directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/buildtools'
cd core/ && ( test -e Makefile || /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtbase/bin/qmake -o Makefile /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/core.pro ) && make -f Makefile
make[3]: Entering directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core'
( test -e Makefile.core_headers || /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtbase/bin/qmake -o Makefile.core_headers /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/core_headers.pro ) && make -f Makefile.core_headers
make[4]: Entering directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core'
( test -e Makefile.core_generator || /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtbase/bin/qmake -o Makefile.core_generator /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/core_generator.pro ) && make -f Makefile.core_generator
make[4]: Entering directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core'
( test -e Makefile.gn_run || /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtbase/bin/qmake -o Makefile.gn_run /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/gn_run.pro ) && make -f Makefile.gn_run
Project MESSAGE: Running: /build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/3rdparty/gn/out/Release/gn gen /build/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="/build/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="/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/toolchain:target" host_toolchain="/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/toolchain:host" v8_snapshot_toolchain="/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/toolchain:v8_snapshot" target_cpu="unknown" pkg_config="android-aarch64-pkg-config" host_pkg_config="/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/pkg-config-host_wrapper.sh" 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 qtwebengine_target="/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core/release:QtWebEngineCore"' --root=/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/3rdparty/chromium
ERROR at //third_party/angle/gni/angle.gni:36:5: Assertion failed.
    assert(false, "Unknown current CPU: $current_cpu")
    ^-----
Unknown current CPU: unknown
See //third_party/angle/src/tests/BUILD.gn:7:1: whence it was imported.
import("../../gni/angle.gni")
^---------------------------
See //BUILD.gn:181:7: which caused the file to be included.
      "//third_party/angle/src/tests:angle_end2end_tests",
      ^--------------------------------------------------
Project ERROR: GN run error!
make[3]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 3
make[3]: Leaving directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src/core'
make[2]: *** [Makefile:77: sub-core-make_first] Error 2
make[2]: Leaving directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine/src'
make[1]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: Leaving directory '/build/android-aarch64-qt5/src/qt-everywhere-src-5.14.0/qtwebengine'
make: *** [Makefile:1060: module-qtwebengine-make_first] Error 2

Maybe I'll just skip Qt WebEngine as I don't need it anyways.

Emeric commented on 2019-12-15 17:49

@Martchus I'll let you know what is the status of Qt 5.14 and QImage with jpeg and webp files!

Martchus commented on 2019-12-15 17:29

The image format plugin for webp is actually using libwebp from Qt and not the system library. I made this small patch to use the system library from android-aarch64-libwebp (similar to the patch for libjpeg-turbo): https://github.com/Martchus/qtimageformats/commit/2a2b4224e0b7998cb8b0f4008f3235212d99d87d

It seems to keep the build going. Let's see what breaks next and what caveats using the system libraries has on runtime. I'm mentioning this because @Emeric reported problems with JPEG support but I haven't had the time to look into it.