Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Question about qmqtt for android

Question about qmqtt for android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 330 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    peterlin82
    wrote on last edited by
    #1

    I want to use qtmqtt for android.
    I already add PATH
    C:\Qt\Tools\Ninja
    C:\Qt\Tools\CMake_64\bin
    C:\Users\escan\AppData\Local\Android\Sdk\ndk\22.1.7171670\toolchains\llvm\prebuilt\windows-x86_64\bin

    C:\WINDOWS\system32>cd \tmp
    
    C:\tmp>git clone http://code.qt.io/qt/qtmqtt -b 6.2
    Cloning into 'qtmqtt'...
    warning: redirecting to https://code.qt.io/qt/qtmqtt/
    remote: Counting objects: 5079, done.
    remote: Compressing objects: 100% (4165/4165), done.
    remote: Total 5079 (delta 3245), reused 1364 (delta 870)
    Receiving objects: 100% (5079/5079), 857.54 KiB | 617.00 KiB/s, done.
    Resolving deltas: 100% (3245/3245), done.
    
    C:\tmp>C:\Qt\6.2.4\android_armv7\bin\qt-configure-module.bat c:\tmp\qtmqtt
    'C:\Qt\6.2.4\android_armv7\bin\\qt-cmake-private.bat' 'c:/tmp/qtmqtt'
    CMake Warning at C:/Qt/6.2.4/android_armv7/lib/cmake/Qt6/qt.toolchain.cmake:65 (message):
      The toolchain file to be chainloaded
      'C:/Utils/Android/android-ndk-r22b/build/cmake/android.toolchain.cmake'
      does not exist.
    Call Stack (most recent call first):
      C:/Qt/Tools/CMake_64/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake:124 (include)
      CMakeLists.txt:6 (project)
    
    
    CMake Warning at C:/Qt/6.2.4/android_armv7/lib/cmake/Qt6/qt.toolchain.cmake:65 (message):
      The toolchain file to be chainloaded
      'C:/Utils/Android/android-ndk-r22b/build/cmake/android.toolchain.cmake'
      does not exist.
    Call Stack (most recent call first):
      C:/tmp/CMakeFiles/3.21.1/CMakeSystem.cmake:6 (include)
      CMakeLists.txt:6 (project)
    
    
    -- The CXX compiler identification is Clang 11.0.5
    -- The C compiler identification is Clang 11.0.5
    -- Detecting CXX compiler ABI info
    CMake Warning at C:/Qt/6.2.4/android_armv7/lib/cmake/Qt6/qt.toolchain.cmake:65 (message):
      The toolchain file to be chainloaded
      'C:/Utils/Android/android-ndk-r22b/build/cmake/android.toolchain.cmake'
      does not exist.
    Call Stack (most recent call first):
      C:/tmp/CMakeFiles/3.21.1/CMakeSystem.cmake:6 (include)
      C:/tmp/CMakeFiles/CMakeTmp/CMakeLists.txt:4 (project)
    
    
    -- Detecting CXX compiler ABI info - failed
    -- Check for working CXX compiler: C:/Users/escan/AppData/Local/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
    CMake Warning at C:/Qt/6.2.4/android_armv7/lib/cmake/Qt6/qt.toolchain.cmake:65 (message):
      The toolchain file to be chainloaded
      'C:/Utils/Android/android-ndk-r22b/build/cmake/android.toolchain.cmake'
      does not exist.
    Call Stack (most recent call first):
      C:/tmp/CMakeFiles/3.21.1/CMakeSystem.cmake:6 (include)
      C:/tmp/CMakeFiles/CMakeTmp/CMakeLists.txt:4 (project)
    
    
    -- Check for working CXX compiler: C:/Users/escan/AppData/Local/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - broken
    CMake Error at C:/Qt/Tools/CMake_64/share/cmake-3.21/Modules/CMakeTestCXXCompiler.cmake:62 (message):
      The C++ compiler
    
        "C:/Users/escan/AppData/Local/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe"
    
      is not able to compile a simple test program.
    
      It fails with the following output:
    
        Change Dir: C:/tmp/CMakeFiles/CMakeTmp
    
        Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe cmTC_f62c6 && [1/2] Building CXX object CMakeFiles/cmTC_f62c6.dir/testCXXCompiler.cxx.obj
        [2/2] Linking CXX executable cmTC_f62c6.exe
        FAILED: cmTC_f62c6.exe
        cmd.exe /C "cd . && C:\Users\escan\AppData\Local\Android\Sdk\ndk\22.1.7171670\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe   CMakeFiles/cmTC_f62c6.dir/testCXXCompiler.cxx.obj -o cmTC_f62c6.exe -Wl,--out-implib,libcmTC_f62c6.dll.a -Wl,--major-image-version,0,--minor-image-version,0  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
        lld: error: unable to find library -lkernel32
        lld: error: unable to find library -luser32
        lld: error: unable to find library -lgdi32
        lld: error: unable to find library -lwinspool
        lld: error: unable to find library -lshell32
        lld: error: unable to find library -lole32
        lld: error: unable to find library -loleaut32
        lld: error: unable to find library -luuid
        lld: error: unable to find library -lcomdlg32
        lld: error: unable to find library -ladvapi32
        lld: error: unable to find library -lstdc++
        lld: error: unable to find library -lmingw32
        lld: error: unable to find library -lgcc_s
        lld: error: unable to find library -lgcc
        lld: error: unable to find library -lmoldname
        lld: error: unable to find library -lmingwex
        lld: error: unable to find library -lmsvcrt
        lld: error: unable to find library -ladvapi32
        lld: error: unable to find library -lshell32
        lld: error: unable to find library -luser32
        lld: error: too many errors emitted, stopping now
        clang++: error: linker command failed with exit code 1 (use -v to see invocation)
        ninja: build stopped: subcommand failed.
    
    
    
    
    
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:6 (project)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/tmp/CMakeFiles/CMakeOutput.log".
    See also "C:/tmp/CMakeFiles/CMakeError.log".
    CMake Error at C:/Qt/6.2.4/android_armv7/lib/cmake/Qt6/QtProcessConfigureArgs.cmake:957 (message):
      CMake exited with code 1.
    
    

    I get message above.
    I don't know how to slove.
    Someone can help me?
    thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved