Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

I can't compile QMQTT for android - please Help



  • I'm trying to compile the Qt MQTT official library (v5.13.0 https://github.com/qt/qtmqtt) for Android for arm64-v8a (Clang Qt 5.13.0 for Android ARM64-v8a) and get the following error:

    Please, could you give your opinion about these errors?

    Thanks in advance, Jose

    PD. Sorry, I had a problem with the computer and I just have the image screenshot, not the raw text. Sorry about that.

    0_1560150631005_5b255643-b6dd-4dd6-9eda-8c2dfd840769-image.png

    0_1560150642508_44b6cdaa-a4da-4ca7-86dc-595563b8d6c8-image.png


  • Lifetime Qt Champion

    Hi,

    Do you have write permission on the folder you want to install the module to ?



  • @JoeBermejales said in I can't compile QMQTT for android - please Help:

    Im trying to compile the Qt MQTT

    how did you build MQTT module?
    it looks like you're using Qt Creator, what project file did you open?



  • @SGaist thanks, yes, I tried with another compile and it worked.

    @Pablo-J-Rogina thanks, I tried to build from the root project and from the /src/xxxx.pro , but any of them worked. I'm using the same procedure than previously worked for other compilers, so I wonder if there is any problem with the Android version.

    P.D.: Now I have the textual trace, I copy here:

    19:50:14: Running steps for project src...
    19:50:14: Starting: "C:\Qt\5.13.0\android_arm64_v8a\bin\qmake.exe" C:\PROYECTOS\A14060009-HMI\qtmqtt-5.13.0\qtmqtt-5.13.0\src\src.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug"
    Info: creating stash file C:\PROYECTOS\A14060009-HMI\qtmqtt-5.13.0\qtmqtt-5.13.0.qmake.stash
    19:50:15: The process "C:\Qt\5.13.0\android_arm64_v8a\bin\qmake.exe" exited normally.
    19:50:15: Starting: "C:\android-sdk\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" -f C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/Makefile qmake_all
    cd mqtt\ && C:\Qt\5.13.0\android_arm64_v8a\bin\qmake.exe -o Makefile C:\PROYECTOS\A14060009-HMI\qtmqtt-5.13.0\qtmqtt-5.13.0\src\mqtt\mqtt.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug"
    cd mqtt\ && C:/android-sdk/android-ndk-r18b/prebuilt/windows-x86_64/bin/make -f Makefile qmake_all
    make[1]: Entering directory C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt' make[1]: Nothing to be done forqmake_all'.
    make[1]: Leaving directory `C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt'
    19:50:16: The process "C:\android-sdk\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    19:50:16: Starting: "C:\android-sdk\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" -j4
    cd mqtt\ && ( if not exist Makefile C:\Qt\5.13.0\android_arm64_v8a\bin\qmake.exe -o Makefile C:\PROYECTOS\A14060009-HMI\qtmqtt-5.13.0\qtmqtt-5.13.0\src\mqtt\mqtt.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug" ) &&

    [ ... ]

    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\android-sdk\android-ndk-r18b/sysroot -isystem C:\android-sdk\android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem C:\android-sdk\android-ndk-r18b/sources/android/support/include -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -g -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wdate-time -Winconsistent-missing-override -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -I....\src\mqtt -I. -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -I\include -I\include\QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:\Qt\5.13.0\android_arm64_v8a\include -IC:\Qt\5.13.0\android_arm64_v8a\include\QtNetwork -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0 -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0\QtCore -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore -I.moc -Ic:\utils\openssl-android-master\include -IC:\Qt\5.13.0\android_arm64_v8a\mkspecs\android-clang -o .obj\qmqtttopicname.obj ....\src\mqtt\qmqtttopicname.cpp
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\android-sdk\android-ndk-r18b/sysroot -isystem C:\android-sdk\android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem C:\android-sdk\android-ndk-r18b/sources/android/support/include -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -g -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wdate-time -Winconsistent-missing-override -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -I....\src\mqtt -I. -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -I\include -I\include\QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:\Qt\5.13.0\android_arm64_v8a\include -IC:\Qt\5.13.0\android_arm64_v8a\include\QtNetwork -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0 -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0\QtCore -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore -I.moc -Ic:\utils\openssl-android-master\include -IC:\Qt\5.13.0\android_arm64_v8a\mkspecs\android-clang -o .obj\qmqtttype.obj ....\src\mqtt\qmqtttype.cpp
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\android-sdk\android-ndk-r18b/sysroot -isystem C:\android-sdk\android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem C:\android-sdk\android-ndk-r18b/sources/android/support/include -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -g -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wdate-time -Winconsistent-missing-override -dM -E -o .moc\moc_predefs.h C:\Qt\5.13.0\android_arm64_v8a\mkspecs\features\data\dummy.cpp
    C:\Qt\5.13.0\android_arm64_v8a\bin\moc.exe -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB --include C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt/.moc/moc_predefs.h -IC:/Qt/5.13.0/android_arm64_v8a/mkspecs/android-clang -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/src/mqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -IC:/include -IC:/include/QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:/Qt/5.13.0/android_arm64_v8a/include -IC:/Qt/5.13.0/android_arm64_v8a/include/QtNetwork -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0 -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0/QtCore -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore -I. -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -IC:/android-sdk/android-ndk-r18b/sources/android/support/include -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -IC:/android-sdk/android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/lib64/clang/7.0.2/include -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include ....\src\mqtt\qmqttclient.h -o .moc\moc_qmqttclient.cpp
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\android-sdk\android-ndk-r18b/sysroot -isystem C:\android-sdk\android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem C:\android-sdk\android-ndk-r18b/sources/android/support/include -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -g -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wdate-time -Winconsistent-missing-override -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -I....\src\mqtt -I. -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -I\include -I\include\QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:\Qt\5.13.0\android_arm64_v8a\include -IC:\Qt\5.13.0\android_arm64_v8a\include\QtNetwork -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0 -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0\QtCore -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore -I.moc -Ic:\utils\openssl-android-master\include -IC:\Qt\5.13.0\android_arm64_v8a\mkspecs\android-clang -o .obj\moc_qmqttclient.obj .moc\moc_qmqttclient.cpp
    C:\Qt\5.13.0\android_arm64_v8a\bin\moc.exe -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB --include C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt/.moc/moc_predefs.h -IC:/Qt/5.13.0/android_arm64_v8a/mkspecs/android-clang -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/src/mqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -IC:/include -IC:/include/QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:/Qt/5.13.0/android_arm64_v8a/include -IC:/Qt/5.13.0/android_arm64_v8a/include/QtNetwork -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0 -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0/QtCore -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore -I. -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -IC:/android-sdk/android-ndk-r18b/sources/android/support/include -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -IC:/android-sdk/android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/lib64/clang/7.0.2/include -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include ....\src\mqtt\qmqttmessage.h -o .moc\moc_qmqttmessage.cpp
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\android-sdk\android-ndk-r18b/sysroot -isystem C:\android-sdk\android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem C:\android-sdk\android-ndk-r18b/sources/android/support/include -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -g -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wdate-time -Winconsistent-missing-override -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -I....\src\mqtt -I. -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -I\include -I\include\QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:\Qt\5.13.0\android_arm64_v8a\include -IC:\Qt\5.13.0\android_arm64_v8a\include\QtNetwork -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0 -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0\QtCore -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore -I.moc -Ic:\utils\openssl-android-master\include -IC:\Qt\5.13.0\android_arm64_v8a\mkspecs\android-clang -o .obj\moc_qmqttmessage.obj .moc\moc_qmqttmessage.cpp
    C:\Qt\5.13.0\android_arm64_v8a\bin\moc.exe -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB --include C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt/.moc/moc_predefs.h -IC:/Qt/5.13.0/android_arm64_v8a/mkspecs/android-clang -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/src/mqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -IC:/include -IC:/include/QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:/Qt/5.13.0/android_arm64_v8a/include -IC:/Qt/5.13.0/android_arm64_v8a/include/QtNetwork -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0 -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0/QtCore -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore -I. -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -IC:/android-sdk/android-ndk-r18b/sources/android/support/include -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -IC:/android-sdk/android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/lib64/clang/7.0.2/include -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include ....\src\mqtt\qmqttsubscription.h -o .moc\moc_qmqttsubscription.cpp
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\android-sdk\android-ndk-r18b/sysroot -isystem C:\android-sdk\android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem C:\android-sdk\android-ndk-r18b/sources/android/support/include -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -g -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wdate-time -Winconsistent-missing-override -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -I....\src\mqtt -I. -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -I\include -I\include\QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:\Qt\5.13.0\android_arm64_v8a\include -IC:\Qt\5.13.0\android_arm64_v8a\include\QtNetwork -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0 -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0\QtCore -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore -I.moc -Ic:\utils\openssl-android-master\include -IC:\Qt\5.13.0\android_arm64_v8a\mkspecs\android-clang -o .obj\moc_qmqttsubscription.obj .moc\moc_qmqttsubscription.cpp
    C:\Qt\5.13.0\android_arm64_v8a\bin\moc.exe -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB --include C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt/.moc/moc_predefs.h -IC:/Qt/5.13.0/android_arm64_v8a/mkspecs/android-clang -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/src/mqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -IC:/include -IC:/include/QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:/Qt/5.13.0/android_arm64_v8a/include -IC:/Qt/5.13.0/android_arm64_v8a/include/QtNetwork -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0 -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore/5.13.0/QtCore -IC:/Qt/5.13.0/android_arm64_v8a/include/QtCore -I. -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -IC:/android-sdk/android-ndk-r18b/sources/android/support/include -IC:/android-sdk/android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -IC:/android-sdk/android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/lib64/clang/7.0.2/include -IC:/android-sdk/android-ndk-r18b/sysroot/usr/include ....\src\mqtt\qmqttconnection_p.h -o .moc\moc_qmqttconnection_p.cpp
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -DANDROID_HAS_WSTRING --sysroot=C:\android-sdk\android-ndk-r18b/sysroot -isystem C:\android-sdk\android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem C:\android-sdk\android-ndk-r18b/sources/android/support/include -isystem C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include -fstack-protector-strong -DANDROID -g -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wdate-time -Winconsistent-missing-override -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_QML_DEBUG -DQT_NO_EXCEPTIONS -DQT_NETWORK_LIB -DQT_CORE_LIB -I....\src\mqtt -I. -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt -I\include -I\include\QtMqtt -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0 -IC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/include/QtMqtt/5.13.0/QtMqtt -IC:\Qt\5.13.0\android_arm64_v8a\include -IC:\Qt\5.13.0\android_arm64_v8a\include\QtNetwork -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0 -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore\5.13.0\QtCore -IC:\Qt\5.13.0\android_arm64_v8a\include\QtCore -I.moc -Ic:\utils\openssl-android-master\include -IC:\Qt\5.13.0\android_arm64_v8a\mkspecs\android-clang -o .obj\moc_qmqttconnection_p.obj .moc\moc_qmqttconnection_p.cpp
    del libQt5Mqtt.so
    No se pudo encontrar C:\PROYECTOS\A14060009-HMI\qtmqtt-5.13.0\qtmqtt-5.13.0\build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug\mqtt\libQt5Mqtt.so
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot=C:\android-sdk\android-ndk-r18b/platforms/android-21/arch-arm64/ -Wl,--no-undefined -Wl,-z,origin -Wl,-rpath=$ORIGIN -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libQt5Mqtt.so -o libQt5Mqtt.so .obj\qmqttauthenticationproperties.obj .obj\qmqttclient.obj .obj\qmqttconnection.obj .obj\qmqttconnectionproperties.obj .obj\qmqttcontrolpacket.obj .obj\qmqttmessage.obj .obj\qmqttpublishproperties.obj .obj\qmqttsubscription.obj .obj\qmqttsubscriptionproperties.obj .obj\qmqtttopicfilter.obj .obj\qmqtttopicname.obj .obj\qmqtttype.obj .obj\moc_qmqttclient.obj .obj\moc_qmqttmessage.obj .obj\moc_qmqttsubscription.obj .obj\moc_qmqttconnection_p.obj -LC:/Qt/5.13.0/android_arm64_v8a/lib -lQt5Network -Lc:\Utils\Android\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a -lQt5Core -LC:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++.so.21 -llog -lz -lm -ldl -lc
    del \lib\libQt5Mqtt.so
    No se pudo encontrar C:\lib\libQt5Mqtt.so
    move libQt5Mqtt.so \lib\libQt5Mqtt.so
    process_begin: CreateProcess(NULL, move libQt5Mqtt.so \lib\libQt5Mqtt.so, ...) failed.
    make (e=2): El sistema no puede encontrar el archivo especificado.

    make[1]: [\lib\libQt5Mqtt.so] Error 2 (ignored)
    make[1]: Leaving directory C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt' 19:50:41: The process "C:\android-sdk\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" exited normally. 19:50:41: Starting: "C:\android-sdk\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=C:\PROYECTOS\A14060009-HMI\qtmqtt-5.13.0\qtmqtt-5.13.0\build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug\android-build" install cd mqtt\ && ( if not exist Makefile C:\Qt\5.13.0\android_arm64_v8a\bin\qmake.exe -o Makefile C:\PROYECTOS\A14060009-HMI\qtmqtt-5.13.0\qtmqtt-5.13.0\src\mqtt\mqtt.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug" ) && C:/android-sdk/android-ndk-r18b/prebuilt/windows-x86_64/bin/make -f Makefile install make[1]: Entering directoryC:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt'
    del libQt5Mqtt.so
    C:\android-sdk\android-ndk-r18b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -D__ANDROID_API__=21 -target aarch64-none-linux-android -gcc-toolchain C:\android-sdk\android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot=C:\android-sdk\android-ndk-r18b/platforms/android-21/arch-arm64/ -Wl,--no-undefined -Wl,-z,origin -Wl,-rpath=$ORIGIN -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libQt5Mqtt.so -o libQt5Mqtt.so .obj\qmqttauthenticationproperties.obj .obj\qmqttclient.obj .obj\qmqttconnection.obj .obj\qmqttconnectionproperties.obj .obj\qmqttcontrolpacket.obj .obj\qmqttmessage.obj .obj\qmqttpublishproperties.obj .obj\qmqttsubscription.obj .obj\qmqttsubscriptionproperties.obj .obj\qmqtttopicfilter.obj .obj\qmqtttopicname.obj .obj\qmqtttype.obj .obj\moc_qmqttclient.obj .obj\moc_qmqttmessage.obj .obj\moc_qmqttsubscription.obj .obj\moc_qmqttconnection_p.obj -LC:/Qt/5.13.0/android_arm64_v8a/lib -lQt5Network -Lc:\Utils\Android\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a -lQt5Core -LC:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a C:\android-sdk\android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++.so.21 -llog -lz -lm -ldl -lc
    del \lib\libQt5Mqtt.so
    No se pudo encontrar C:\lib\libQt5Mqtt.so
    move libQt5Mqtt.so \lib\libQt5Mqtt.so
    process_begin: CreateProcess(NULL, move libQt5Mqtt.so \lib\libQt5Mqtt.so, ...) failed.
    make (e=2): El sistema no puede encontrar el archivo especificado.

    make[1]: [\lib\libQt5Mqtt.so] Error 2 (ignored)
    No se puede crear el directorio o archivo.
    make[1]: *** [install_target] Error 1
    make[1]: Leaving directory `C:/PROYECTOS/A14060009-HMI/qtmqtt-5.13.0/qtmqtt-5.13.0/build-src-Android_for_arm64_v8a_Clang_Qt_5_13_0_for_Android_ARM64_v8a-Debug/mqtt'
    make: *** [sub-mqtt-install_subtargets] Error 2
    19:50:44: The process "C:\android-sdk\android-ndk-r18b\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
    Error while building/deploying project src (kit: Android for arm64-v8a (Clang Qt 5.13.0 for Android ARM64-v8a))
    When executing step "Copy application data"


  • Lifetime Qt Champion

    Does it work if you build with your desktop kit ?



  • @SGaist said in I can't compile QMQTT for android - please Help:

    Does it work if you build with your desktop kit ?

    yes, it worked fine, but not with Android Kit (for this one, I compiled other projects in order to discard compiler problems).



  • any idea? @SGaist @Pablo-J-Rogina

    thanks in advance! :)



  • @JoeBermejales from the log

    del \lib\libQt5Mqtt.so
    No se pudo encontrar C:\lib\libQt5Mqtt.so

    you may want to look at the .pro files (you should have several in different sub-folders) and any Makefile created by qmake for any entries with such path \lib\libQt5Mqtt.so; it looks like it could be hard-coded.

    In addition, I'd try just to build and not to install the module. If everything goes Ok with the build step, then you look for the location of file libQt5Mqtt.so and header files and use them in your project from such place.


Log in to reply