Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mqtt
Qt 6.11 is out! See what's new in the release blog

Mqtt

Scheduled Pinned Locked Moved Unsolved General and Desktop
27 Posts 5 Posters 18.6k Views 2 Watching
  • 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.
  • S Sergey_85

    @jsulm I can't build sources for Arm64-v8a

    cmake .. \
      -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.0/gcc_64 \
      -DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
      -DANDROID_ABI=arm64-v8a \
      -DANDROID_NATIVE_API_LEVEL=21
    -- The CXX compiler identification is Clang 17.0.2
    -- The C compiler identification is Clang 17.0.2
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    CMake Error at CMakeLists.txt:14 (find_package):
      Could not find a package configuration file provided by "Qt6" (requested
      version 6.8.0) with any of the following names:
    
        Qt6Config.cmake
        qt6-config.cmake
    
      Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
      to a directory containing one of the above files.  If "Qt6" provides a
      separate development package or SDK, be sure it has been installed.
    
    
    -- Configuring incomplete, errors occurred!
    
    

    Maybe I'm doing something wrong?
    Qt6Config.cmake is located at the specified path

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #12

    @Sergey_85 Did you install Qt for Android?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    S 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Sergey_85 Did you install Qt for Android?

      S Offline
      S Offline
      Sergey_85
      wrote on last edited by
      #13

      @jsulm Yes

      1 Reply Last reply
      0
      • S Sergey_85

        @jsulm I can't build sources for Arm64-v8a

        cmake .. \
          -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.0/gcc_64 \
          -DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
          -DANDROID_ABI=arm64-v8a \
          -DANDROID_NATIVE_API_LEVEL=21
        -- The CXX compiler identification is Clang 17.0.2
        -- The C compiler identification is Clang 17.0.2
        -- Detecting CXX compiler ABI info
        -- Detecting CXX compiler ABI info - done
        -- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
        -- Detecting CXX compile features
        -- Detecting CXX compile features - done
        -- Detecting C compiler ABI info
        -- Detecting C compiler ABI info - done
        -- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
        -- Detecting C compile features
        -- Detecting C compile features - done
        CMake Error at CMakeLists.txt:14 (find_package):
          Could not find a package configuration file provided by "Qt6" (requested
          version 6.8.0) with any of the following names:
        
            Qt6Config.cmake
            qt6-config.cmake
        
          Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
          to a directory containing one of the above files.  If "Qt6" provides a
          separate development package or SDK, be sure it has been installed.
        
        
        -- Configuring incomplete, errors occurred!
        
        

        Maybe I'm doing something wrong?
        Qt6Config.cmake is located at the specified path

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #14

        @Sergey_85 said in Mqtt:

        -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.0/gcc_64

        This doesn't look like a path to Qt for Android

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Sergey_85 said in Mqtt:

          -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.0/gcc_64

          This doesn't look like a path to Qt for Android

          S Offline
          S Offline
          Sergey_85
          wrote on last edited by
          #15

          @jsulm I tried -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a

          jsulmJ 1 Reply Last reply
          0
          • S Sergey_85

            @jsulm I tried -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #16

            @Sergey_85 And what happened? Does /home/ph/opt/Qt/6.8.0/gcc_64 contain Qt6Config.cmake or qt6-config.cmake like CMake requested in the error message?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Sergey_85 And what happened? Does /home/ph/opt/Qt/6.8.0/gcc_64 contain Qt6Config.cmake or qt6-config.cmake like CMake requested in the error message?

              S Offline
              S Offline
              Sergey_85
              wrote on last edited by
              #17

              @jsulm yes, the Qt6Config.cmake file is also in the folder
              /home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmake

              I haven't compiled from sources before, what's in the kit was enough for me, so I apologize if I'm asking something wrong or providing incomplete information, I'm confused(

              jsulmJ 1 Reply Last reply
              0
              • S Sergey_85

                @jsulm yes, the Qt6Config.cmake file is also in the folder
                /home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmake

                I haven't compiled from sources before, what's in the kit was enough for me, so I apologize if I'm asking something wrong or providing incomplete information, I'm confused(

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #18

                @Sergey_85 The I think it should be

                -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
                

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                S 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Sergey_85 The I think it should be

                  -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
                  
                  S Offline
                  S Offline
                  Sergey_85
                  wrote on last edited by
                  #19

                  @jsulm ```
                  cmake ..
                  -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
                  -DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
                  -DANDROID_ABI=arm64-v8a
                  -DANDROID_NATIVE_API_LEVEL=21
                  -- The CXX compiler identification is Clang 17.0.2
                  -- The C compiler identification is Clang 17.0.2
                  -- Detecting CXX compiler ABI info
                  -- Detecting CXX compiler ABI info - done
                  -- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
                  -- Detecting CXX compile features
                  -- Detecting CXX compile features - done
                  -- Detecting C compiler ABI info
                  -- Detecting C compiler ABI info - done
                  -- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
                  -- Detecting C compile features
                  -- Detecting C compile features - done
                  CMake Error at CMakeLists.txt:14 (find_package):
                  Could not find a package configuration file provided by "Qt6" (requested
                  version 6.8.1) with any of the following names:

                  Qt6Config.cmake
                  qt6-config.cmake
                  

                  Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
                  to a directory containing one of the above files. If "Qt6" provides a
                  separate development package or SDK, be sure it has been installed.

                  -- Configuring incomplete, errors occurred!

                  jsulmJ 1 Reply Last reply
                  0
                  • S Sergey_85

                    @jsulm ```
                    cmake ..
                    -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
                    -DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
                    -DANDROID_ABI=arm64-v8a
                    -DANDROID_NATIVE_API_LEVEL=21
                    -- The CXX compiler identification is Clang 17.0.2
                    -- The C compiler identification is Clang 17.0.2
                    -- Detecting CXX compiler ABI info
                    -- Detecting CXX compiler ABI info - done
                    -- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
                    -- Detecting CXX compile features
                    -- Detecting CXX compile features - done
                    -- Detecting C compiler ABI info
                    -- Detecting C compiler ABI info - done
                    -- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
                    -- Detecting C compile features
                    -- Detecting C compile features - done
                    CMake Error at CMakeLists.txt:14 (find_package):
                    Could not find a package configuration file provided by "Qt6" (requested
                    version 6.8.1) with any of the following names:

                    Qt6Config.cmake
                    qt6-config.cmake
                    

                    Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
                    to a directory containing one of the above files. If "Qt6" provides a
                    separate development package or SDK, be sure it has been installed.

                    -- Configuring incomplete, errors occurred!

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #20

                    @Sergey_85 Try with a clean build folder (best to create a fresh one)

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    S 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Sergey_85 Try with a clean build folder (best to create a fresh one)

                      S Offline
                      S Offline
                      Sergey_85
                      wrote on last edited by
                      #21

                      @jsulm nothing has changed

                      jsulmJ 1 Reply Last reply
                      0
                      • S Sergey_85

                        @jsulm nothing has changed

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #22

                        @Sergey_85 said in Mqtt:

                        nothing has changed

                        Do you mean same error?

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        S 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Sergey_85 said in Mqtt:

                          nothing has changed

                          Do you mean same error?

                          S Offline
                          S Offline
                          Sergey_85
                          wrote on last edited by Sergey_85
                          #23

                          @jsulm Yes, I have the same error

                          jsulmJ 1 Reply Last reply
                          0
                          • S Sergey_85

                            @jsulm Yes, I have the same error

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #24

                            @Sergey_85 Not sure why it is not working try:

                            export Qt6_DIR=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
                            

                            before calling cmake.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            S 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @Sergey_85 Not sure why it is not working try:

                              export Qt6_DIR=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
                              

                              before calling cmake.

                              S Offline
                              S Offline
                              Sergey_85
                              wrote on last edited by
                              #25

                              @jsulm
                              everything is the same, under gcc-64 everything was assembled without problems and works, I don’t understand why there are such difficulties here

                              ph@debian:~/git_clone/qtmqtt/build_android$ export Qt6_DIR=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6
                              ph@debian:~/git_clone/qtmqtt/build_android$ cmake ..   -DCMAKE_PREFIX_PATH=/home/ph/opt/Qt/6.8.1/android_arm64_v8a/lib/cmake/Qt6   -DCMAKE_TOOLCHAIN_FILE=/home/ph/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake   -DANDROID_ABI=arm64-v8a   -DANDROID_NATIVE_API_LEVEL=21-- The CXX compiler identification is Clang 17.0.2
                              -- The C compiler identification is Clang 17.0.2
                              -- Detecting CXX compiler ABI info
                              -- Detecting CXX compiler ABI info - done
                              -- Check for working CXX compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
                              -- Detecting CXX compile features
                              -- Detecting CXX compile features - done
                              -- Detecting C compiler ABI info
                              -- Detecting C compiler ABI info - done
                              -- Check for working C compiler: /home/ph/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
                              -- Detecting C compile features
                              -- Detecting C compile features - done
                              CMake Error at CMakeLists.txt:14 (find_package):
                                Could not find a package configuration file provided by "Qt6" (requested
                                version 6.8.1) with any of the following names:
                              
                                  Qt6Config.cmake
                                  qt6-config.cmake
                              
                                Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
                                to a directory containing one of the above files.  If "Qt6" provides a
                                separate development package or SDK, be sure it has been installed.
                              
                              
                              -- Configuring incomplete, errors occurred!
                              
                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                kiru
                                wrote on last edited by
                                #26

                                Hi,
                                "http://code.qt.io" this is not opening, Is there any other way to use QTMQTT??

                                SGaistS 1 Reply Last reply
                                0
                                • K kiru

                                  Hi,
                                  "http://code.qt.io" this is not opening, Is there any other way to use QTMQTT??

                                  SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #27

                                  @kiru hi and welcome to devnet,

                                  It's seems to be working here at the time of writing.

                                  If it's still not, you can use the GitHub mirror.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  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