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

Problem installing mqtt module on android



  • Hi.
    During the compilation phase of the mqtt module for android I get errors both if I run it via command prompt or using QtCreator.
    No problem instead on the desktop installation both in version Qt 5.14.2 MSVC2017 64bit and in Qt 5.15.0 MSVC2019 64bit.
    My system is Windows 10 Home x64, Qt Creator v.4.12.4.
    In the screen below appear errors by compiling with the command prompt run as an administrator:

    Could Not Find C:\qtmqtt\build\src\mqtt\libQt5Mqtt_x86.so
            C:\Users\Roberto\AppData\Local\Android\SDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -target i686-linux-android21 -mstackrealign -fno-limit-debug-info -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libQt5Mqtt_x86.so -o libQt5Mqtt_x86.so @.obj\x86\object_script.libQt5Mqtt_x86.so.X86  D:/Qt/5.14.2/android/lib/libQt5Network_x86.so D:/Qt/5.14.2/android/lib/libQt5Core_x86.so   -llog -lz -lm -ldl -lc
    Could Not Find C:\qtmqtt\build\src\mqtt\libQt5Mqtt_arm64-v8a.so
            C:\Users\Roberto\AppData\Local\Android\SDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -target aarch64-linux-android21 -fno-limit-debug-info -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libQt5Mqtt_arm64-v8a.so -o libQt5Mqtt_arm64-v8a.so @.obj\arm64-v8a\object_script.libQt5Mqtt_arm64-v8a.so.Arm64-v8a  D:/Qt/5.14.2/android/lib/libQt5Network_arm64-v8a.so D:/Qt/5.14.2/android/lib/libQt5Core_arm64-v8a.so   -llog -lz -lm -ldl -lc
            del libQt5Mqtt_x86_64.so
            del ..\..\lib\libQt5Mqtt_x86.so
    Could Not Find C:\qtmqtt\build\src\mqtt\libQt5Mqtt_x86_64.so
            C:\Users\Roberto\AppData\Local\Android\SDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -target x86_64-linux-android21 -fno-limit-debug-info -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libQt5Mqtt_x86_64.so -o libQt5Mqtt_x86_64.so @.obj\x86_64\object_script.libQt5Mqtt_x86_64.so.X86_64  D:/Qt/5.14.2/android/lib/libQt5Network_x86_64.so D:/Qt/5.14.2/android/lib/libQt5Core_x86_64.so   -llog -lz -lm -ldl -lc
    Could Not Find C:\qtmqtt\build\lib\libQt5Mqtt_x86.so
            cmd /c move libQt5Mqtt_x86.so ..\..\lib\libQt5Mqtt_x86.so
            del ..\..\lib\libQt5Mqtt_arm64-v8a.so
            1 file(s) moved.
    Could Not Find C:\qtmqtt\build\lib\libQt5Mqtt_arm64-v8a.so
            cmd /c move libQt5Mqtt_arm64-v8a.so ..\..\lib\libQt5Mqtt_arm64-v8a.so
            1 file(s) moved.
            del ..\..\lib\libQt5Mqtt_x86_64.so
    Could Not Find C:\qtmqtt\build\lib\libQt5Mqtt_x86_64.so
            cmd /c move libQt5Mqtt_x86_64.so ..\..\lib\libQt5Mqtt_x86_64.so
            1 file(s) moved
    

    Here instead, compiling using Qt Creator:

    Could Not Find C:\build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug\src\mqtt\libQt5Mqtt_armeabi-v7a.so
    C:\Users\Roberto\AppData\Local\Android\SDK\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -target armv7a-linux-androideabi21 -fno-limit-debug-info -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libQt5Mqtt_armeabi-v7a.so -o libQt5Mqtt_armeabi-v7a.so @.obj\armeabi-v7a\object_script.libQt5Mqtt_armeabi-v7a.so.Armeabi-v7a  D:/Qt/5.14.2/android/lib/libQt5Network_armeabi-v7a.so D:/Qt/5.14.2/android/lib/libQt5Core_armeabi-v7a.so   -llog -lz -lm -ldl -lc 
    del ..\..\lib\libQt5Mqtt_armeabi-v7a.so
    Could Not Find C:\build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug\lib\libQt5Mqtt_armeabi-v7a.so
    cmd /c move libQt5Mqtt_armeabi-v7a.so ..\..\lib\libQt5Mqtt_armeabi-v7a.so
            1 file(s) moved.
    make[2]: Leaving directory 'C:/build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/src/mqtt'
    make[1]: Leaving directory 'C:/build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/src'
    10:25:04: The process "C:\Users\Roberto\AppData\Local\Android\SDK\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    10:25:04: Starting: "C:\Users\Roberto\AppData\Local\Android\SDK\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=C:\build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug\android-build" install
    cd src\ && ( if not exist Makefile D:\Qt\5.14.2\android\bin\qmake.exe -o Makefile C:\qtmqtt\src\src.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug" "ANDROID_ABIS=armeabi-v7a" ) && C:/Users/Roberto/AppData/Local/Android/SDK/ndk/21.1.6352462/prebuilt/windows-x86_64/bin/make -f Makefile install
    make[1]: Entering directory 'C:/build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/src'
    cd mqtt\ && ( if not exist Makefile D:\Qt\5.14.2\android\bin\qmake.exe -o Makefile C:\qtmqtt\src\mqtt\mqtt.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug" "ANDROID_ABIS=armeabi-v7a" ) && C:/Users/Roberto/AppData/Local/Android/SDK/ndk/21.1.6352462/prebuilt/windows-x86_64/bin/make -f Makefile install
    make[2]: Entering directory 'C:/build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/src/mqtt'
    The filename, directory name, or volume label syntax is incorrect.
    make[2]: *** [Makefile:1789: install_target] Error 1
    make[2]: Leaving directory 'C:/build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/src/mqtt'
    make[1]: *** [Makefile:59: sub-mqtt-install_subtargets] Error 2
    make: *** [Makefile:61: sub-src-install_subtargets] Error 2
    make[1]: Leaving directory 'C:/build-qtmqtt-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/src'
    10:25:11: The process "C:\Users\Roberto\AppData\Local\Android\SDK\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
    Error while building/deploying project qtmqtt (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android))
    When executing step "Copy application data"
    

    I searched the forum and Google to find a solution, but failed.
    Do you have any idea what the problem might be?


Log in to reply