Solved Qt 5.13 APK build fail
Unsolved How to build Qt on system without a GUI?
I'm building on the device itself.
Latest configure commands:
Then i did "make -j 2" (there is 2 cores) and in about hourse i got this:
e/QtGui -I../../../../include/QtCore/5.13.0 -I../../../../include/QtCore/5.13.0/QtCore -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/qcomposeplatforminputcontext.o qcomposeplatforminputcontext.cpp In file included from qcomposeplatforminputcontext.cpp:39:0: qcomposeplatforminputcontext.h:46:41: fatal error: xkbcommon/xkbcommon-compose.h: No such file or directory #include <xkbcommon/xkbcommon-compose.h> ^ compilation terminated. make[5]: *** [.obj/qcomposeplatforminputcontext.o] Error 1 make[5]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins/platforminputcontexts/compose' make[4]: *** [sub-compose-make_first] Error 2 make[4]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins/platforminputcontexts' make[3]: *** [sub-platforminputcontexts-make_first] Error 2 make[3]: *** Waiting for unfinished jobs.... g++ -c -pipe -O2 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wno-missing-field-initializers -D_REENTRANT -fPIC -DQT_NO_FOREACH -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SERVICE_SUPPORT_LIB -DQT_THEME_SUPPORT_LIB -DQT_FB_SUPPORT_LIB -DQT_EVENTDISPATCHER_SUPPORT_LIB -DQT_FONTDATABASE_SUPPORT_LIB -DQT_INPUT_SUPPORT_LIB -DQT_GUI_LIB -DQT_DEVICEDISCOVERY_SUPPORT_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtServiceSupport -I../../../../include/QtServiceSupport/5.13.0 -I../../../../include/QtServiceSupport/5.13.0/QtServiceSupport -I../../../../include/QtThemeSupport -I../../../../include/QtThemeSupport/5.13.0 -I../../../../include/QtThemeSupport/5.13.0/QtThemeSupport -I../../../../include/QtFbSupport -I../../../../include/QtFbSupport/5.13.0 -I../../../../include/QtFbSupport/5.13.0/QtFbSupport -I../../../../include/QtEventDispatcherSupport -I../../../../include/QtEventDispatcherSupport/5.13.0 -I../../../../include/QtEventDispatcherSupport/5.13.0/QtEventDispatcherSupport -I../../../../include/QtFontDatabaseSupport -I../../../../include/QtFontDatabaseSupport/5.13.0 -I../../../../include/QtFontDatabaseSupport/5.13.0/QtFontDatabaseSupport -I../../../../include/QtInputSupport -I../../../../include/QtInputSupport/5.13.0 -I../../../../include/QtInputSupport/5.13.0/QtInputSupport -I../../../../include/QtGui/5.13.0 -I../../../../include/QtGui/5.13.0/QtGui -I../../../../include/QtGui -I../../../../include/QtDeviceDiscoverySupport -I../../../../include/QtDeviceDiscoverySupport/5.13.0 -I../../../../include/QtDeviceDiscoverySupport/5.13.0/QtDeviceDiscoverySupport -I../../../../include/QtCore/5.13.0 -I../../../../include/QtCore/5.13.0/QtCore -I../../../../include/QtNetwork -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/moc_qvnc_p.o .moc/moc_qvnc_p.cpp g++ -c -pipe -O2 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wno-missing-field-initializers -D_REENTRANT -fPIC -DQT_NO_FOREACH -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SERVICE_SUPPORT_LIB -DQT_THEME_SUPPORT_LIB -DQT_FB_SUPPORT_LIB -DQT_EVENTDISPATCHER_SUPPORT_LIB -DQT_FONTDATABASE_SUPPORT_LIB -DQT_INPUT_SUPPORT_LIB -DQT_GUI_LIB -DQT_DEVICEDISCOVERY_SUPPORT_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtServiceSupport -I../../../../include/QtServiceSupport/5.13.0 -I../../../../include/QtServiceSupport/5.13.0/QtServiceSupport -I../../../../include/QtThemeSupport -I../../../../include/QtThemeSupport/5.13.0 -I../../../../include/QtThemeSupport/5.13.0/QtThemeSupport -I../../../../include/QtFbSupport -I../../../../include/QtFbSupport/5.13.0 -I../../../../include/QtFbSupport/5.13.0/QtFbSupport -I../../../../include/QtEventDispatcherSupport -I../../../../include/QtEventDispatcherSupport/5.13.0 -I../../../../include/QtEventDispatcherSupport/5.13.0/QtEventDispatcherSupport -I../../../../include/QtFontDatabaseSupport -I../../../../include/QtFontDatabaseSupport/5.13.0 -I../../../../include/QtFontDatabaseSupport/5.13.0/QtFontDatabaseSupport -I../../../../include/QtInputSupport -I../../../../include/QtInputSupport/5.13.0 -I../../../../include/QtInputSupport/5.13.0/QtInputSupport -I../../../../include/QtGui/5.13.0 -I../../../../include/QtGui/5.13.0/QtGui -I../../../../include/QtGui -I../../../../include/QtDeviceDiscoverySupport -I../../../../include/QtDeviceDiscoverySupport/5.13.0 -I../../../../include/QtDeviceDiscoverySupport/5.13.0/QtDeviceDiscoverySupport -I../../../../include/QtCore/5.13.0 -I../../../../include/QtCore/5.13.0/QtCore -I../../../../include/QtNetwork -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/moc_qvncclient.o .moc/moc_qvncclient.cpp g++ -c -pipe -O2 -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wno-missing-field-initializers -D_REENTRANT -fPIC -DQT_NO_FOREACH -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SERVICE_SUPPORT_LIB -DQT_THEME_SUPPORT_LIB -DQT_FB_SUPPORT_LIB -DQT_EVENTDISPATCHER_SUPPORT_LIB -DQT_FONTDATABASE_SUPPORT_LIB -DQT_INPUT_SUPPORT_LIB -DQT_GUI_LIB -DQT_DEVICEDISCOVERY_SUPPORT_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtServiceSupport -I../../../../include/QtServiceSupport/5.13.0 -I../../../../include/QtServiceSupport/5.13.0/QtServiceSupport -I../../../../include/QtThemeSupport -I../../../../include/QtThemeSupport/5.13.0 -I../../../../include/QtThemeSupport/5.13.0/QtThemeSupport -I../../../../include/QtFbSupport -I../../../../include/QtFbSupport/5.13.0 -I../../../../include/QtFbSupport/5.13.0/QtFbSupport -I../../../../include/QtEventDispatcherSupport -I../../../../include/QtEventDispatcherSupport/5.13.0 -I../../../../include/QtEventDispatcherSupport/5.13.0/QtEventDispatcherSupport -I../../../../include/QtFontDatabaseSupport -I../../../../include/QtFontDatabaseSupport/5.13.0 -I../../../../include/QtFontDatabaseSupport/5.13.0/QtFontDatabaseSupport -I../../../../include/QtInputSupport -I../../../../include/QtInputSupport/5.13.0 -I../../../../include/QtInputSupport/5.13.0/QtInputSupport -I../../../../include/QtGui/5.13.0 -I../../../../include/QtGui/5.13.0/QtGui -I../../../../include/QtGui -I../../../../include/QtDeviceDiscoverySupport -I../../../../include/QtDeviceDiscoverySupport/5.13.0 -I../../../../include/QtDeviceDiscoverySupport/5.13.0/QtDeviceDiscoverySupport -I../../../../include/QtCore/5.13.0 -I../../../../include/QtCore/5.13.0/QtCore -I../../../../include/QtNetwork -I../../../../include/QtDBus -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/main.o main.cpp rm -f libqvnc.so g++ -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libqvnc.so .obj/main.o .obj/qvncintegration.o .obj/qvncscreen.o .obj/qvnc.o .obj/qvncclient.o .obj/moc_qvncscreen.o .obj/moc_qvnc_p.o .obj/moc_qvncclient.o /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5ServiceSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5ThemeSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5FbSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5EventDispatcherSupport.a /usr/lib/arm-linux-gnueabihf/libgthread-2.0.so /usr/lib/arm-linux-gnueabihf/libglib-2.0.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5FontDatabaseSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libqtfreetype.a /usr/lib/arm-linux-gnueabihf/libpng12.so /usr/lib/arm-linux-gnueabihf/libz.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5InputSupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5Gui.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5DeviceDiscoverySupport.a /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5Network.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5DBus.so /home/analog/qt-everywhere-src-5.13.0/qtbase/lib/libQt5Core.so /usr/lib/arm-linux-gnueabihf/libGL.so -lpthread mv -f libqvnc.so ../../../../plugins/platforms/libqvnc.so make[5]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins/platforms/vnc' make[4]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins/platforms' make[3]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src/plugins' make[2]: *** [sub-plugins-make_first] Error 2 make[2]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase/src' make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory `/home/analog/qt-everywhere-src-5.13.0/qtbase' make: *** [module-qtbase-make_first] Error 2 analog@analog:~/qt-everywhere-src-5.13.0$Unsolved [Qt5.12.3][Compilation Error] No, I didn't forgot to setup the environment.
Hello everyone,
I am trying to cross-build Qt for my board 'Humming Board 2' by SolidRun. Since there are no a single guide for building 5.12.3 for Humming Board, I am facing 100 errors a day.
I am following this guide for Qt5.3. Most of the links are broken and configuration of course does not work for 5.12.3.
I have used a different image than described in the guide and stuff, but when I am trying to configure the 'qtbase' with the configuration settings;
./configure -v -opensource -confirm-license -no-pch -no-xcb -no-opengl -opengl es2 -make libs -no-icu \
-device linux-imx6-g++ -device-option CROSS_COMPILE=~/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
-sysroot /mnt/hummingboard-rootfs -no-gcc-sysroot -prefix /usr/local/qt5-hum \
-device-option DISTRO_OPTS=hard-float
It Says,
Project ERROR: Cannot run target compiler '/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++'. Output:
===================
===================
Maybe you forgot to setup the environment?
I tried 3 different cross-compilers;
gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf
gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux
gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux
Guys, I just want to compile Qt JUST ONCE WITHOUT A PROBLEM in my life :D
Any thoughts?
Thanks!
Unsolved Using WiringPi on CM3+ module
Hi All,
I'm sure I have a simple problem but my lack of programming skills is making me pull my hair out.
I'm trying to use the wiringPi library to interface into the raspberry compute module, this is a cross compile application (through I don't think this is relevant factor here). I have used Yocto to build the CM3+ image and on my development machine (Ubuntu 18.04.2 LTS) I'm using the bitbake toolchain with Qt Creator 4.9.2
I have added these lines to my .pro file
# These next three lines allow for the use of wiringPi
INCLUDEPATH += /opt/poky/2.6.1/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/usr/include
LIBS += -L"/opt/poky/2.6.1/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/usr/lib"
LIBS += -lwiringPi
This has allowed me to use the "#include <wiringPi.h>" directive, which it finds and when I compile I'm sure that it links OK, however it throws out the following error:
/opt/poky/2.6.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.2.0/real-ld:-1: error: cannot find /lib/libc.so.6
/opt/poky/2.6.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.2.0/real-ld:-1: error: cannot find /usr/lib/libc_nonshared.a
/opt/poky/2.6.1/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.2.0/real-ld:-1: error: cannot find /lib/ld-linux-armhf.so.3
I have done a "find" for these files and they are in the toolchain as shown:
./opt/poky/2.6.1/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/lib/libc.so.6
./opt/poky/2.6.1/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/usr/lib/libc_nonshared.a
./opt/poky/2.6.1/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/lib/ld-linux-armhf.so.3
My question is why are they not picked up with QT creator?? I'm sure the answer is going to show my lack of linux or QT creator skills, but any help would be much appreciated.
Am I simply missing something from a path statement??
Kind regards
Steve.
Unsolved Project ERROR: Unknown module(s) in QT: odbc
@ankit_mishra In that case, you should ask your development team to help you.
Regards
Solved Signature problem (Android)
Hello,
I created an app in Android Studio and signed it. All are worked well.
When I tried to signing another app created by Qt Creator I got the error. A key was generated by Qt Creator.
Unable to open '/Users/artemyerko/ApkProjects/build-Updater-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv75-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' as zip archive zipalign command failed. 16:58:55: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK"In build dir I got next:
I decided to move the file "android-build-release-unsigned.ap" in to release dir, but I got the next:
Signed at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1782) at com.android.apksig.ApkVerifier.getAndroidManifestFromApk(ApkVerifier.java:429) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:176) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:125) at com.android.apksigner.ApkSignerTool.verify(ApkSignerTool.java:466) at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:112) Caused by: com.android.apksig.zip.ZipFormatException: Not a Central Directory record. Signature: 0xb1527eca at com.android.apksig.internal.zip.CentralDirectoryRecord.getRecord(CentralDirectoryRecord.java:143) at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1780) ... 5 more apksigner command failed. 16:11:03: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK" 16:11:03: Elapsed time: 00:12.After this error I tried to use a key created by Android Studio, disable signing by Qt Creator and add to "build.gradle" file next:
apply plugin: 'com.android.application' def keystorePropertiesFile = rootProject.file("keystore.properties") def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.0' } } repositories { google() jcenter() } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0-alpha01' implementation 'androidx.work:work-runtime:2.1.0-beta01' //$rootProject.workVersion" implementation 'androidx.concurrent:concurrent-futures:1.0.0-beta01' //$rootProject.futuresVersion" implementation 'androidx.concurrent:concurrent-listenablefuture:1.0.0-beta01' //$rootProject.futuresVersion" implementation 'androidx.concurrent:concurrent-listenablefuture-callback:1.0.0-beta01' //$rootProject.futuresVersion" } android { /******************************************************* * The following variables: * - androidBuildToolsVersion, * - androidCompileSdkVersion * - qt5AndroidDir - holds the path to qt android files * needed to build any Qt application * on Android. * * are defined in gradle.properties file. This file is * updated by QtCreator and androiddeployqt tools. * Changing them manually might break the compilation! *******************************************************/ compileSdkVersion androidCompileSdkVersion.toInteger() buildToolsVersion androidBuildToolsVersion sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] res.srcDirs = [qt5AndroidDir + '/res', 'res'] resources.srcDirs = ['src'] renderscript.srcDirs = ['src'] assets.srcDirs = ['assets'] jniLibs.srcDirs = ['libs'] } } applicationVariants.all { variant -> variant.outputs.all { outputFileName = "../" + outputFileName } } signingConfigs { release { keyAlias keystoreProperties['keyAliasRelease'] keyPassword keystoreProperties['keyPasswordRelease'] storeFile file(keystoreProperties['storeFileRelease']) storePassword keystoreProperties['storePasswordRelease'] } debug { keyAlias keystoreProperties['keyAliasDebug'] keyPassword keystoreProperties['keyPasswordDebug'] storeFile file(keystoreProperties['storeFileDebug']) storePassword keystoreProperties['storePasswordDebug'] } } buildTypes { release { debuggable false minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release ext.alwaysUpdateBuildId = true } debug { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.debug ext.alwaysUpdateBuildId = true } } lintOptions { abortOnError false } }In build directory I got:
I decided to move the file "android-build-release-unsigned.apk" to debug folder too and run again and apk was installed on device, but the apk wasn't signed.
Than I remove from "build.gradle" next parts:
def keystorePropertiesFile = rootProject.file("keystore.properties") def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) ... signingConfigs { ... } buildTypes { ... }and enable signing by QtCreator only with Android Studio generated key, run build
In build folder I got:
and error:
Unable to open '/Users/artemyerko/ApkProjects/build-Updater-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv75-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' as zip archive zipalign command failed. 17:34:28: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK"I decided to move the file "android-build-release-unsigned.apk" to release folder too, run build again and got:
Signed at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1782) at com.android.apksig.ApkVerifier.getAndroidManifestFromApk(ApkVerifier.java:429) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:176) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:125) at com.android.apksigner.ApkSignerTool.verify(ApkSignerTool.java:466) at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:112) Caused by: com.android.apksig.zip.ZipFormatException: Not a Central Directory record. Signature: 0xdb698620 at com.android.apksig.internal.zip.CentralDirectoryRecord.getRecord(CentralDirectoryRecord.java:143) at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1780) ... 5 more apksigner command failed. 17:35:23: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK" 17:35:23: Elapsed time: 00:12.and in build folder I got:
But the signed apk wasn't worked like apk signed by Android Studion.
Qt 5.12.4
SDK Version: 26.1.1
NDK Version: 20.0.5594570
build-tools 28.0.3
JDK: jdk1.8.0_201
How signing Qt Android apk in release version?
Solved Download from http://download.qt.io/archive is unavailable
@JKSH It was our server problem. Thanks :-)
Solved Signature problem (Android)
Hello,
I created an app in Android Studio and signed it. All are worked well.
When I tried to signing another app created by Qt Creator I got the error. A key was generated by Qt Creator.
Unable to open '/Users/artemyerko/ApkProjects/build-Updater-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv75-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' as zip archive zipalign command failed. 16:58:55: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK"In build dir I got next:
I decided to move the file "android-build-release-unsigned.ap" in to release dir, but I got the next:
Signed at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1782) at com.android.apksig.ApkVerifier.getAndroidManifestFromApk(ApkVerifier.java:429) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:176) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:125) at com.android.apksigner.ApkSignerTool.verify(ApkSignerTool.java:466) at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:112) Caused by: com.android.apksig.zip.ZipFormatException: Not a Central Directory record. Signature: 0xb1527eca at com.android.apksig.internal.zip.CentralDirectoryRecord.getRecord(CentralDirectoryRecord.java:143) at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1780) ... 5 more apksigner command failed. 16:11:03: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK" 16:11:03: Elapsed time: 00:12.After this error I tried to use a key created by Android Studio, disable signing by Qt Creator and add to "build.gradle" file next:
apply plugin: 'com.android.application' def keystorePropertiesFile = rootProject.file("keystore.properties") def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.0' } } repositories { google() jcenter() } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0-alpha01' implementation 'androidx.work:work-runtime:2.1.0-beta01' //$rootProject.workVersion" implementation 'androidx.concurrent:concurrent-futures:1.0.0-beta01' //$rootProject.futuresVersion" implementation 'androidx.concurrent:concurrent-listenablefuture:1.0.0-beta01' //$rootProject.futuresVersion" implementation 'androidx.concurrent:concurrent-listenablefuture-callback:1.0.0-beta01' //$rootProject.futuresVersion" } android { /******************************************************* * The following variables: * - androidBuildToolsVersion, * - androidCompileSdkVersion * - qt5AndroidDir - holds the path to qt android files * needed to build any Qt application * on Android. * * are defined in gradle.properties file. This file is * updated by QtCreator and androiddeployqt tools. * Changing them manually might break the compilation! *******************************************************/ compileSdkVersion androidCompileSdkVersion.toInteger() buildToolsVersion androidBuildToolsVersion sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java'] aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl'] res.srcDirs = [qt5AndroidDir + '/res', 'res'] resources.srcDirs = ['src'] renderscript.srcDirs = ['src'] assets.srcDirs = ['assets'] jniLibs.srcDirs = ['libs'] } } applicationVariants.all { variant -> variant.outputs.all { outputFileName = "../" + outputFileName } } signingConfigs { release { keyAlias keystoreProperties['keyAliasRelease'] keyPassword keystoreProperties['keyPasswordRelease'] storeFile file(keystoreProperties['storeFileRelease']) storePassword keystoreProperties['storePasswordRelease'] } debug { keyAlias keystoreProperties['keyAliasDebug'] keyPassword keystoreProperties['keyPasswordDebug'] storeFile file(keystoreProperties['storeFileDebug']) storePassword keystoreProperties['storePasswordDebug'] } } buildTypes { release { debuggable false minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release ext.alwaysUpdateBuildId = true } debug { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.debug ext.alwaysUpdateBuildId = true } } lintOptions { abortOnError false } }In build directory I got:
I decided to move the file "android-build-release-unsigned.apk" to debug folder too and run again and apk was installed on device, but the apk wasn't signed.
Than I remove from "build.gradle" next parts:
def keystorePropertiesFile = rootProject.file("keystore.properties") def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) ... signingConfigs { ... } buildTypes { ... }and enable signing by QtCreator only with Android Studio generated key, run build
In build folder I got:
and error:
Unable to open '/Users/artemyerko/ApkProjects/build-Updater-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv75-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' as zip archive zipalign command failed. 17:34:28: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK"I decided to move the file "android-build-release-unsigned.apk" to release folder too, run build again and got:
Signed at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1782) at com.android.apksig.ApkVerifier.getAndroidManifestFromApk(ApkVerifier.java:429) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:176) at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:125) at com.android.apksigner.ApkSignerTool.verify(ApkSignerTool.java:466) at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:112) Caused by: com.android.apksig.zip.ZipFormatException: Not a Central Directory record. Signature: 0xdb698620 at com.android.apksig.internal.zip.CentralDirectoryRecord.getRecord(CentralDirectoryRecord.java:143) at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1780) ... 5 more apksigner command failed. 17:35:23: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15. Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75)) When executing step "Build Android APK" 17:35:23: Elapsed time: 00:12.and in build folder I got:
But the signed apk wasn't worked like apk signed by Android Studion.
Qt 5.12.4
SDK Version: 26.1.1
NDK Version: 20.0.5594570
build-tools 28.0.3
JDK: jdk1.8.0_201
How signing Qt Android apk in release version?
Solved Trying to build an app. Cannot find -lc++
@Fogord Thanks That Worked
Unsolved Signature problem (Android)
Hello,
I created an app in Android Studio and signed it. All are worked well.
When I tried to signing another app created by Qt Creator I got the error. A key was generated by Qt Creator.
Unable to open '/Users/artemyerko/ApkProjects/build-Updater-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv75-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' as zip archive
zipalign command failed.
16:58:55: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15.
Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75))
When executing step "Build Android APK"
In build dir I got next:
I decided to move the file "android-build-release-unsigned.ap" in to release dir, but I got the next:
Signed
at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1782)
at com.android.apksig.ApkVerifier.getAndroidManifestFromApk(ApkVerifier.java:429)
at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:176)
at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:125)
at com.android.apksigner.ApkSignerTool.verify(ApkSignerTool.java:466)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:112)
Caused by: com.android.apksig.zip.ZipFormatException: Not a Central Directory record. Signature: 0xb1527eca
at com.android.apksig.internal.zip.CentralDirectoryRecord.getRecord(CentralDirectoryRecord.java:143)
at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1780)
... 5 more
apksigner command failed.
16:11:03: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15.
Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75))
When executing step "Build Android APK"
16:11:03: Elapsed time: 00:12.
After this error I tried to use a key created by Android Studio, disable signing by Qt Creator and add to "build.gradle" file next:
apply plugin: 'com.android.application'
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
}
}
repositories {
google()
jcenter()
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0-alpha01'
implementation 'androidx.work:work-runtime:2.1.0-beta01' //$rootProject.workVersion"
implementation 'androidx.concurrent:concurrent-futures:1.0.0-beta01' //$rootProject.futuresVersion"
implementation 'androidx.concurrent:concurrent-listenablefuture:1.0.0-beta01' //$rootProject.futuresVersion"
implementation 'androidx.concurrent:concurrent-listenablefuture-callback:1.0.0-beta01' //$rootProject.futuresVersion"
}
android {
/*******************************************************
* The following variables:
* - androidBuildToolsVersion,
* - androidCompileSdkVersion
* - qt5AndroidDir - holds the path to qt android files
* needed to build any Qt application
* on Android.
*
* are defined in gradle.properties file. This file is
* updated by QtCreator and androiddeployqt tools.
* Changing them manually might break the compilation!
*******************************************************/
compileSdkVersion androidCompileSdkVersion.toInteger()
buildToolsVersion androidBuildToolsVersion
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
res.srcDirs = [qt5AndroidDir + '/res', 'res']
resources.srcDirs = ['src']
renderscript.srcDirs = ['src']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "../" + outputFileName
}
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAliasRelease']
keyPassword keystoreProperties['keyPasswordRelease']
storeFile file(keystoreProperties['storeFileRelease'])
storePassword keystoreProperties['storePasswordRelease']
}
debug {
keyAlias keystoreProperties['keyAliasDebug']
keyPassword keystoreProperties['keyPasswordDebug']
storeFile file(keystoreProperties['storeFileDebug'])
storePassword keystoreProperties['storePasswordDebug']
}
}
buildTypes {
release {
debuggable false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
ext.alwaysUpdateBuildId = true
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
ext.alwaysUpdateBuildId = true
}
}
lintOptions {
abortOnError false
}
}
In build directory I got:
I decided to move the file "android-build-release-unsigned.apk" to debug folder too and run again and apk was installed on device, but the apk wasn't signed.
Than I remove from "build.gradle" next parts:
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
...
signingConfigs {
...
}
buildTypes {
...
}
and enable signing by QtCreator only with Android Studio generated key, run build
In build folder I got:
and error:
Unable to open '/Users/artemyerko/ApkProjects/build-Updater-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv75-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' as zip archive
zipalign command failed.
17:34:28: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15.
Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75))
When executing step "Build Android APK"
I decided to move the file "android-build-release-unsigned.apk" to release folder too, run build again and got:
Signed
at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1782)
at com.android.apksig.ApkVerifier.getAndroidManifestFromApk(ApkVerifier.java:429)
at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:176)
at com.android.apksig.ApkVerifier.verify(ApkVerifier.java:125)
at com.android.apksigner.ApkSignerTool.verify(ApkSignerTool.java:466)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:112)
Caused by: com.android.apksig.zip.ZipFormatException: Not a Central Directory record. Signature: 0xdb698620
at com.android.apksig.internal.zip.CentralDirectoryRecord.getRecord(CentralDirectoryRecord.java:143)
at com.android.apksig.internal.apk.v1.V1SchemeVerifier.parseZipCentralDirectory(V1SchemeVerifier.java:1780)
... 5 more
apksigner command failed.
17:35:23: The process "/Users/artemyerko/Qt/5.12.4/android_armv7/bin/androiddeployqt" exited with code 15.
Error while building/deploying project Updater (kit: Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv75))
When executing step "Build Android APK"
17:35:23: Elapsed time: 00:12.
and in build folder I got:
But the signed apk wasn't worked like apk signed by Android Studion.
Qt 5.12.4
SDK Version: 26.1.1
NDK Version: 20.0.5594570
build-tools 28.0.3
JDK: jdk1.8.0_201
OS: macOS
How to signing Qt Android apk in release version?
This doesn't help me(
Solved Beginner: Q's about Qt Maintenance Tool on Mac OSX High Sierra
Thanks, mrjj. That's what I needed.
Unsolved Building QT 5.12 on CentOS 6
Hi and welcome to devnet,
You need to install the libxkbcommon development package from your distribution.
Unsolved 福建供卵试管包成功包男孩
供卵试管助孕13670270005電微同号,十年老品牌供卵试管代孕机构,三代试管婴儿选性别,代孕包出生,代孕包男孩。 几个月前,我经历了严重的瓶颈期,搞砸了一些事,自尊心受挫,自信心全无,一度悲观地觉得我的人生完蛋了,好像在走下坡路,而且会越来越差劲。
三月份,我听到太多让我失望的消息,整个人差不多处在崩溃临界点。
那段时间,我和一个很好的朋友吵了很严重的一架,至今互不理睬。接着,我很想谈成的一个合作谈崩了,而且别人还很耿直地告诉我“我们觉得你哪里哪里不行”,现在想起那些话,我还是很难过。
在那几个月里,所有我想做的事,只要我做了,全都以失败告终,身边于是有各种声音否定我,我也开始否定自己。可我是属于触底反弹的性格,生活对我越残酷,我越不想低头,越是想跟它较劲。
所以在那段时间,我咬着牙做了一些很“疯狂”的事:比如,我以前不敢向一些前辈请教问题,一是怕被拒绝,二是自尊心作祟。但在那两天,我就逼着自己去问,哪怕碰壁、被拒。
我不想被动地等别人来让我玻璃心碎一地,我选择主动去打破自己的玻璃心,然后谦虚地、脚踏实地地从头开始。
Unsolved (Windows) Minimum files in deployment that cannot be moved
I already use windeployqt --qmldir (my project folder) (my release build exe location) to build my application.
One of the various things I've tried is a handful of command-line arguments to make it copy libs to a sub-directory. I've been unsuccessful.
What arguments would be required to have windeployqt accomplish my goal, and what files is it unable to relocate to a qt subdirectory?
Unsolved Examples of using Qt Installer Framework to package a Python application for Linux/Windows/MacOS?
I have a Python application that I'd like to package using the Qt Installer Framework, as this is being used by another colleague to package his C++/Qt application and we'd like to use the same installer for both if possible (and PyInstaller has not worked as advertised).
I've not found examples of how a Python application can be packaged for installation using the Qt Installer Framework. If a tutorial or some other example of this is available then please point me in the right direction.
My application monitors a video feed and performs object detection on individual frames more or less in real time. It uses Python, OpenCV, SQLAlchemy, Keras, and TensorFlow. My assumption is that I'll want to package a minimal Python distribution/interpreter and the required libraries, and provide a hook for the user to launch the application's main script. An example of how this can be done using the Qt Installer Framework is what I'm looking for.
Thanks in advance for any assistance with this, I appreciate your help.
Unsolved Building static Qt for embedded devices (cross-compile) fails
I'm trying to build Qt statically for several embedded devices I have (all with an iMX6 processor). They all have old and different versions of Qt, so for testing I'm trying to build Qt 5.13 statically so we can do some testing. I'm able to build Qt statically for my host machine. My issue is what I add the options to build for the cross compile. The cross compile toolchain I'm using is debian stretch for armhf, which is comparable with my device and currently able to make dynamic Qt 5.9 builds. So I believe this should be able to build Qt 5.13.
Here is the command I'm running for configure:
./configure -static -release -verbose -opensource -ltcg -no-pch -prefix $PWD/build/target -hostprefix $PWD/build/host -device linux-imx6-g++ -device-option CROSS_COMPILE=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/usr/bin/arm-linux-gnueabihf- -sysroot /home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/ -skip webengine -nomake tools -nomake tests -nomake examples
Here is the output:
dlogic@dlogic-vm:~/qt-everywhere-src-5.13.0$ ./configure -static -release -verbose -opensource -ltcg -no-pch -prefix $PWD/build/target -hostprefix $PWD/build/host -device linux-imx6-g++ -device-option CROSS_COMPILE=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/usr/bin/arm-linux-gnueabihf- -sysroot /home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/ -skip webengine -nomake tools -nomake tests -nomake examples
+ cd qtbase
+ /home/dlogic/qt-everywhere-src-5.13.0/qtbase/configure -top-level -static -release -verbose -opensource -ltcg -no-pch -prefix /home/dlogic/qt-everywhere-src-5.13.0/build/target -hostprefix /home/dlogic/qt-everywhere-src-5.13.0/build/host -device linux-imx6-g++ -device-option CROSS_COMPILE=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/usr/bin/arm-linux-gnueabihf- -sysroot /home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/ -skip webengine -nomake tools -nomake tests -nomake examples
Creating qmake...
make: Nothing to be done for 'first'.
Command line: -static -release -verbose -opensource -ltcg -no-pch -prefix /home/dlogic/qt-everywhere-src-5.13.0/build/target -hostprefix /home/dlogic/qt-everywhere-src-5.13.0/build/host -device linux-imx6-g++ -device-option CROSS_COMPILE=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/usr/bin/arm-linux-gnueabihf- -sysroot /home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/ -skip webengine -nomake tools -nomake tests -nomake examples
This is the Qt Open Source Edition.
You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 3
or the GNU General Public License (GPL) version 2.
Type 'L' to view the GNU Lesser General Public License version 3 (LGPLv3).
Type 'G' to view the GNU General Public License version 2 (GPLv2).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.
Do you accept the terms of either license? y
Running configuration tests...
Checking for machine tuple...
+ /home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/usr/bin/arm-linux-gnueabihf-g++ -dumpmachine
> /lib/ld-linux-armhf.so.3: No such file or directory
test config.qtbase.tests.machineTuple FAILED
Checking for valid makespec...
+ cd /home/dlogic/qt-everywhere-src-5.13.0/config.tests/verifyspec && /home/dlogic/qt-everywhere-src-5.13.0/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/" "QMAKE_CXXFLAGS += --sysroot=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/" "QMAKE_LFLAGS += --sysroot=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/" -early "CONFIG += cross_compile" /home/dlogic/qt-everywhere-src-5.13.0/qtbase/config.tests/verifyspec
+ cd /home/dlogic/qt-everywhere-src-5.13.0/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make
> rm -f verifyspec.o
> rm -f *~ core *.core
> /home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/usr/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard --sysroot=/home/dlogic/Development/fs/debian-stretch-armhf-rootfs_dl-dm-x/ -O2 -w -fPIC -I/home/dlogic/qt-everywhere-src-5.13.0/qtbase/config.tests/verifyspec -I. -I/home/dlogic/qt-everywhere-src-5.13.0/qtbase/mkspecs/devices/linux-imx6-g++ -o verifyspec.o /home/dlogic/qt-everywhere-src-5.13.0/qtbase/config.tests/verifyspec/verifyspec.cpp
> /lib/ld-linux-armhf.so.3: No such file or directory
> Makefile:182: recipe for target 'verifyspec.o' failed
> make: *** [verifyspec.o] Error 255
Note: Also available for Linux: linux-clang linux-icc
ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.
Seems to be a path issue but I'm not sure what needs changed.
The file /lib/ld-linux-armhf.so.3
does exist in the rootfs for the device BSP.
Unsolved Raspberry Pi 3 B+ Multiple errors compiling QT 5.12.3
HI,
After trying a lot of tutorials and a lot of compilations and 2 weeks after start try compiling qt5 for my raspberry pi 3b+ with image "2019-04-08-raspbian-stretch.img" I got always some kind of error, for now I'm trying this tutorial
I run:
PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig ../qt-everywhere-src-5.12.3/configure -platform linux-rpi-g++ -v -opengl es2 -eglfs -no-gtk -opensource -confirm-license -release -reduce-exports -force-pkg-config -nomake examples -no-compile-examples -skip qtwayland -skip qtwebengine -no-feature-geoservices_mapboxgl -qt-pcre -no-pch -ssl -evdev -system-freetype -fontconfig -glib -prefix /opt/Qt5.12 -qpa eglfs
And I got:
Configure summary:
Build type: linux-rpi-g++ (arm, CPU features: <none>)
Compiler: gcc 6.3.0
Configuration: use_gold_linker enable_new_dtags largefile shared rpath release c++11 c++14 concurrent dbus reduce_exports stl
Build options:
Mode ................................... release
Optimize release build for size ........ no
Building shared libraries .............. yes
Using C standard ....................... C11
Using C++ standard ..................... C++14
Using ccache ........................... no
Using gold linker ...................... yes
Using new DTAGS ........................ yes
Using precompiled headers .............. no
Using LTCG ............................. no
Target compiler supports:
NEON ................................. no
Build parts ............................ libs tools
Qt modules and options:
Qt Concurrent .......................... yes
Qt D-Bus ............................... yes
Qt D-Bus directly linked to libdbus .... yes
Qt Gui ................................. yes
Qt Network ............................. yes
Qt Sql ................................. yes
Qt Testlib ............................. yes
Qt Widgets ............................. yes
Qt Xml ................................. yes
Support enabled for:
Using pkg-config ....................... yes
udev ................................... yes
Using system zlib ...................... yes
Qt Core:
DoubleConversion ....................... yes
Using system DoubleConversion ........ yes
GLib ................................... yes
iconv .................................. no
ICU .................................... yes
Tracing backend ........................ <none>
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
Using system PCRE2 ..................... no
Qt Network:
getifaddrs() ........................... yes
IPv6 ifname ............................ yes
libproxy ............................... no
Linux AF_NETLINK ....................... yes
OpenSSL ................................ yes
Qt directly linked to OpenSSL ........ no
OpenSSL 1.1 ............................ no
DTLS ................................... yes
SCTP ................................... no
Use system proxies ..................... yes
Qt Gui:
Accessibility .......................... yes
FreeType ............................... yes
Using system FreeType ................ yes
HarfBuzz ............................... yes
Using system HarfBuzz ................ no
Fontconfig ............................. yes
Image formats:
GIF .................................. yes
ICO .................................. yes
JPEG ................................. yes
Using system libjpeg ............... yes
PNG .................................. yes
Using system libpng ................ yes
EGL .................................... yes
OpenVG ................................. yes
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ yes
OpenGL ES 3.0 ........................ yes
OpenGL ES 3.1 ........................ yes
OpenGL ES 3.2 ........................ yes
Vulkan ................................. no
Session Management ..................... yes
Features used by QPA backends:
evdev .................................. yes
libinput ............................... yes
INTEGRITY HID .......................... no
mtdev .................................. yes
tslib .................................. yes
xkbcommon .............................. yes
X11 specific:
XLib ................................. yes
XCB Xlib ............................. yes
EGL on X11 ........................... yes
QPA backends:
DirectFB ............................... no
EGLFS .................................. yes
EGLFS details:
EGLFS OpenWFD ........................ no
EGLFS i.Mx6 .......................... no
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... yes
EGLFS GBM ............................ yes
EGLFS VSP2 ........................... no
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... yes
EGLFS X11 ............................ yes
LinuxFB ................................ yes
VNC .................................... yes
Mir client ............................. no
XCB:
Using system-provided XCB libraries .. yes
XCB XKB .............................. yes
XCB XInput ........................... no
Native painting (experimental) ....... yes
GL integrations:
GLX Plugin ......................... no
EGL-X11 Plugin ..................... yes
Qt Sql:
SQL item models ........................ yes
Qt Widgets:
GTK+ ................................... no
Styles ................................. Fusion Windows
Qt PrintSupport:
CUPS ................................... yes
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. yes
OCI (Oracle) ........................... no
ODBC ................................... yes
PostgreSQL ............................. yes
SQLite2 ................................ yes
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... yes
Qt Testlib:
Tester for item models ................. yes
Qt SerialBus:
Socket CAN ............................. yes
Socket CAN FD .......................... yes
Qt QML:
QML network support .................... yes
QML debugging and profiling support .... yes
QML sequence object .................... yes
QML list model ......................... yes
QML XML http request ................... yes
QML Locale ............................. yes
QML delegate model ..................... yes
Qt Quick:
Direct3D 12 ............................ no
AnimatedImage item ..................... yes
Canvas item ............................ yes
Support for Qt Quick Designer .......... yes
Flipable item .......................... yes
GridView item .......................... yes
ListView item .......................... yes
TableView item ......................... yes
Path support ........................... yes
PathView item .......................... yes
Positioner items ....................... yes
Repeater item .......................... yes
ShaderEffect item ...................... yes
Sprite item ............................ yes
Qt Scxml:
ECMAScript data model for QtScxml ...... yes
Qt Gamepad:
SDL2 ................................... no
Qt 3D:
Assimp ................................. yes
System Assimp .......................... no
Output Qt3D Job traces ................. no
Output Qt3D GL traces .................. no
Use SSE2 instructions .................. no
Use AVX2 instructions .................. no
Aspects:
Render aspect ........................ yes
Input aspect ......................... yes
Logic aspect ......................... yes
Animation aspect ..................... yes
Extras aspect ........................ yes
Qt 3D Renderers:
OpenGL Renderer ........................ yes
Qt 3D GeometryLoaders:
Autodesk FBX ........................... no
Qt Bluetooth:
BlueZ .................................. yes
BlueZ Low Energy ....................... yes
Linux Crypto API ....................... yes
WinRT Bluetooth API (desktop & UWP) .... no
Qt Sensors:
sensorfw ............................... no
Qt Quick Controls 2:
Styles ................................. Default Fusion Imagine Material Universal
Qt Quick Templates 2:
Hover support .......................... yes
Multi-touch support .................... yes
Qt Positioning:
Gypsy GPS Daemon ....................... no
WinRT Geolocation API .................. no
Qt Location:
Qt.labs.location experimental QML plugin . yes
Geoservice plugins:
OpenStreetMap ........................ yes
HERE ................................. yes
Esri ................................. yes
Mapbox ............................... yes
MapboxGL ............................. no
Itemsoverlay ......................... yes
QtXmlPatterns:
XML schema support ..................... yes
Qt Multimedia:
ALSA ................................... yes
GStreamer 1.0 .......................... yes
GStreamer 0.10 ......................... no
Video for Linux ........................ yes
OpenAL ................................. no
PulseAudio ............................. yes
Resource Policy (libresourceqt5) ....... no
Windows Audio Services ................. no
DirectShow ............................. no
Windows Media Foundation ............... no
Qt Tools:
QDoc ................................... yes
Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into '/opt/Qt5.12'.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
I run:
make -j4
And I got:
abaseSupport/5.12.3/QtFontDatabaseSupport -I../../../../../../include/QtFontDatabaseSupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtLinuxAccessibilitySupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtLinuxAccessibilitySupport/5.12.3 -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtLinuxAccessibilitySupport/5.12.3/QtLinuxAccessibilitySupport -I../../../../../../include/QtLinuxAccessibilitySupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtAccessibilitySupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtAccessibilitySupport/5.12.3 -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtAccessibilitySupport/5.12.3/QtAccessibilitySupport -I../../../../../../include/QtAccessibilitySupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEglSupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEglSupport/5.12.3 -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEglSupport/5.12.3/QtEglSupport -I../../../../../../include/QtEglSupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtGui/5.12.3 -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtGui/5.12.3/QtGui -I../../../../../../include/QtGui/5.12.3 -I../../../../../../include/QtGui/5.12.3/QtGui -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtGui -I../../../../../../include/QtGui -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEdidSupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEdidSupport/5.12.3 -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEdidSupport/5.12.3/QtEdidSupport -I../../../../../../include/QtEdidSupport -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtCore/5.12.3 -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtCore/5.12.3/QtCore -I../../../../../../include/QtCore/5.12.3 -I../../../../../../include/QtCore/5.12.3/QtCore -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtDBus -I../../../../../../include/QtDBus -I/home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtCore -I../../../../../../include/QtCore -I.moc -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -isystem /usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/home/pi/qt-everywhere-src-5.12.3/qtbase/mkspecs/linux-rpi-g++ -o .obj/qxcbeglmain.o /home/pi/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglmain.cpp
/home/pi/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.cpp: In member function ‘virtual void QXcbEglWindow::create()’:
/home/pi/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.cpp:96:81: error: invalid conversion from ‘xcb_window_t {aka unsigned int}’ to ‘EGLNativeWindowType {aka void*}’ [-fpermissive]
m_surface = eglCreateWindowSurface(m_glIntegration->eglDisplay(), m_config, m_window, 0);
^~~~~~~~
In file included from /home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEglSupport/5.12.3/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:67:0,
from /home/pi/qt-everywhere-src-5.12.3/qtbase/include/QtEglSupport/5.12.3/QtEglSupport/private/qt_egl_p.h:1,
from /home/pi/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglinclude.h:49,
from /home/pi/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.h:45,
from /home/pi/qt-everywhere-src-5.12.3/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglwindow.cpp:40:
/opt/vc/include/EGL/egl.h:265:31: note: initializing argument 3 of ‘void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)’
EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
^~~~~~~~~~~~~~~~~~~~~~
Makefile:2036: recipe for target '.obj/qxcbeglwindow.o' failed
make[7]: *** [.obj/qxcbeglwindow.o] Error 1
make[7]: *** Waiting for unfinished jobs....
make[7]: Leaving directory '/home/pi/build/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
Makefile:46: recipe for target 'sub-xcb_egl-make_first' failed
make[6]: *** [sub-xcb_egl-make_first] Error 2
make[6]: Leaving directory '/home/pi/build/qtbase/src/plugins/platforms/xcb/gl_integrations'
Makefile:106: recipe for target 'sub-gl_integrations-make_first-ordered' failed
make[5]: *** [sub-gl_integrations-make_first-ordered] Error 2
make[5]: Leaving directory '/home/pi/build/qtbase/src/plugins/platforms/xcb'
Makefile:102: recipe for target 'sub-xcb-make_first' failed
make[4]: *** [sub-xcb-make_first] Error 2
make[4]: Leaving directory '/home/pi/build/qtbase/src/plugins/platforms'
Makefile:104: recipe for target 'sub-platforms-make_first' failed
make[3]: *** [sub-platforms-make_first] Error 2
make[3]: Leaving directory '/home/pi/build/qtbase/src/plugins'
Makefile:725: recipe for target 'sub-plugins-make_first' failed
make[2]: *** [sub-plugins-make_first] Error 2
make[2]: Leaving directory '/home/pi/build/qtbase/src'
Makefile:50: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/pi/build/qtbase'
Makefile:83: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2
If I run the configure file with platform linux-rpi-vc4-g++ on configure:
2.3/qtbase/mkspecs/linux-rpi-vc4-g++ -DQT_VERSION_STR=\"5.12.3\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=12 -DQT_VERSION_PATCH=3 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /home/pi/qt-everywhere-src-5.12.3/qtbase/qmake/generators/makefiledeps.cpp
In file included from /home/pi/qt-everywhere-src-5.12.3/qtbase/qmake/generators/makefiledeps.cpp:36:0:
/home/pi/qt-everywhere-src-5.12.3/qtbase/mkspecs/linux-rpi-vc4-g++/qplatformdefs.h:40:43: fatal error: ../../linux-g++/qplatformdefs.h: No such file or directory
#include "../../linux-g++/qplatformdefs.h"
^
compilation terminated.
Makefile:257: recipe for target 'makefiledeps.o' failed
make: *** [makefiledeps.o] Error 1
No matter what I got error, but in particular in this error I don found anything if I run the configure file with platform linux-rpi3-g++ , linux-rpi-g++ , linux-rpi-g++ I get the same error and I'm stuck.
Some one have any idea?
thanks
Unsolved [Qt5.12.4][Android Warning Error] Map Viewer (QML) not work on Android
Hi!
I have installed Qt 5.12.4 for Windows.
My environment is Qt Creator 4.9.1 (Enterprise)
SDK Version: 26.1.1, Android SDK: API 28, NDK Version:19.2.5345600
It works well on Desktop Qt 5.12.4 MinGW 32-bit kit,
but didn't show map on Android for armeabi-v7a(Clang Qt 5.12.4 for Android ARMv7)
When run on Android, a lot of Warning and Error below will output and the map didn't show at all.
I'm a beginner of Qt and Android developing.
I've been working on this a lot of time, but without any process.
Does anyone know how to fix this?
Thank you.
I zygote64: Late-enabling -Xcheck:jni
I zygote64: Do partial code cache collection, code=30KB, data=21KB
I zygote64: After code cache collection, code=30KB, data=21KB
I zygote64: Increasing code cache capacity to 128KB
W System : ClassLoader referenced unknown path:
I QtCore : Start
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Concurrent.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Positioning.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5PositioningQuick.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Location.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Widgets.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5OpenGL.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Sql.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5RemoteObjects.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x80
I Qt : qt started
I Qt JAVA : Can't find '/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/lib/libQt5QuickParticles.so'
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/position/libqtposition_android.so" has unsupported flags DT_FLAGS_1=0x80
I QtPositioning: Positioning start
D OpenGLRenderer: HWUI GL Pipeline
I zygote64: Do partial code cache collection, code=61KB, data=41KB
I zygote64: After code cache collection, code=60KB, data=41KB
I zygote64: Increasing code cache capacity to 256KB
I zygote64: Compiler allocated 5MB to compile org.json.JSONObject org.qtproject.qt5.android.ExtractStyle.extractTextAppearanceInformations(java.lang.String, java.lang.String, android.util.AttributeSet, int)
I zygote64: Do full code cache collection, code=120KB, data=87KB
I zygote64: After code cache collection, code=91KB, data=59KB
I zygote64: Do partial code cache collection, code=124KB, data=79KB
I zygote64: After code cache collection, code=124KB, data=79KB
I zygote64: Increasing code cache capacity to 512KB
E linker : normalize_path - invalid input: "C", the input path should be absolute
W linker : Warning: unable to normalize "C"
E linker : normalize_path - invalid input: "C", the input path should be absolute
W linker : Warning: unable to normalize "C"
I Adreno : QUALCOMM build : 8e59954, I0be83d0d26
I Adreno : Build Date : 09/22/17
I Adreno : OpenGL ES Shader Compiler Version: EV031.21.02.00
I Adreno : Local Branch : O17A
I Adreno : Remote Branch :
I Adreno : Remote Branch :
I Adreno : Reconstruct Branch :
D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8994.so from current namespace instead of sphal namespace.
I Adreno : PFP: 0x00000000, ME: 0x00000000
I zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2
D vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8994.so from current namespace instead of sphal namespace.
I zygote64: Compiler allocated 7MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
E linker : library "/system/lib/libcrypto.so" ("/system/lib/libcrypto.so") needed or dlopened by "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Core.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64:/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/org.qtproject.example.qml_location_mapviewer"]
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Controls/libqtquickcontrolsplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtLocation/libdeclarative_location.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtPositioning/libdeclarative_positioning.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Layouts/libqquicklayoutsplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Controls/Styles/Android/libqtquickcontrolsandroidstyleplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqgif.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqicns.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqico.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqjpeg.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqtga.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqtiff.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqwbmp.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqwebp.so" has unsupported flags DT_FLAGS_1=0x80
W libqml_location_mapviewer.so: qrc:/mapviewer.qml:434:17: Unable to assign [undefined] to bool
W System.err: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
W System.err: at android.os.Parcel.readException(Parcel.java:2013)
W System.err: at android.os.Parcel.readException(Parcel.java:1959)
W System.err: at android.location.ILocationManager$Stub$Proxy.getLastLocation(ILocationManager.java:802)
W System.err: at android.location.LocationManager.getLastKnownLocation(LocationManager.java:1206)
W System.err: at org.qtproject.qt5.android.positioning.QtPositioning.lastKnownPosition(QtPositioning.java:141)
W System.err: at org.qtproject.qt5.android.QtNative.startQtApplication(Native Method)
W System.err: at org.qtproject.qt5.android.QtNative$7.run(QtNative.java:374)
W System.err: at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
W System.err: at java.lang.Thread.run(Thread.java:764)
W libqml_location_mapviewer.so: qrc:/mapviewer.qml:434: ReferenceError: activeMapType is not defined
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/geoservices/libqtgeoservices_osm.so" has unsupported flags DT_FLAGS_1=0x80
W libqml_location_mapviewer.so: qrc:/mapviewer.qml:434: ReferenceError: activeMapType is not defined
W libqml_location_mapviewer.so: QGeoTileProviderOsm: Tileserver disabled at QUrl("http://maps-redirect.qt.io/osm/5.8/satellite")
W libqml_location_mapviewer.so: QGeoTileFetcherOsm: all providers resolved
W libqml_location_mapviewer.so: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
I chatty : uid=10081(org.qtproject.example.qml_location_mapviewer) QNetworkAccessM identical 13 lines
W libqml_location_mapviewer.so: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
Unsolved Qt for xp
SGaist, thank you very much for the pointer, and my inept use of the appropriate language, I will review that wiki page and if you don’t mind come back if there is anything I am unsure of. Thank you very much for all your help
Unsolved Setting QT_QPA_PLATFORM_PLUGIN_PATH on Linux does not find the platform plugin when not installed?
@JigsawCorp hmmm.. Maybe you have missed a Qt dependency? Try this two in order please,
sudo apt-get build-dep qt5-default sudo apt-get install libx11-xcb-dev libglu1-mesa-dev build-essentialand check what is the result?