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. Error when building MQTT for Android
Forum Updated to NodeBB v4.3 + New Features

Error when building MQTT for Android

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 434 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.
  • R Offline
    R Offline
    RoachLin
    wrote on last edited by
    #1

    I'm building MQTT for Android using Qt6.5.0
    When I run cmake, I get an error "Conan install failed='1' CMakeLists.txt:12 (conan_install)" , but I already install conan via Python, maybe line 12's configuration is wrong?
    Snipaste_2023-04-26_18-02-08.png
    Snipaste_2023-04-26_22-56-02.png
    I ignore this error, and start to build, this time I get another error "No target architecture defined in json file." , but there does exist " "target-architecture": "arm64-v8a"," which makes me confused
    Snipaste_2023-04-26_17-47-16.png
    Snipaste_2023-04-26_22-58-11.png
    Can anyone tell me the right way to build MQTT for Android using Qt6?
    Maybe someone can try to build MQTT and check if the errors would happen again?

    JoeCFDJ 1 Reply Last reply
    0
    • R RoachLin

      I'm building MQTT for Android using Qt6.5.0
      When I run cmake, I get an error "Conan install failed='1' CMakeLists.txt:12 (conan_install)" , but I already install conan via Python, maybe line 12's configuration is wrong?
      Snipaste_2023-04-26_18-02-08.png
      Snipaste_2023-04-26_22-56-02.png
      I ignore this error, and start to build, this time I get another error "No target architecture defined in json file." , but there does exist " "target-architecture": "arm64-v8a"," which makes me confused
      Snipaste_2023-04-26_17-47-16.png
      Snipaste_2023-04-26_22-58-11.png
      Can anyone tell me the right way to build MQTT for Android using Qt6?
      Maybe someone can try to build MQTT and check if the errors would happen again?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      @RoachLin https://doc.qt.io/qtcreator/creator-project-conan.html

      To enable the experimental Conan plugin, select Help > About Plugins > Utilities > Conan. Then select Restart Now to restart Qt Creator and load the plugin.

      R 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @RoachLin https://doc.qt.io/qtcreator/creator-project-conan.html

        To enable the experimental Conan plugin, select Help > About Plugins > Utilities > Conan. Then select Restart Now to restart Qt Creator and load the plugin.

        R Offline
        R Offline
        RoachLin
        wrote on last edited by
        #3

        @JoeCFD I enable the plugin, and it also failed
        I also read and try the steps in these links, but it doesn't make sense
        https://doc.qt.io/qtcreator/creator-build-settings-conan.html#conan-build-steps
        https://doc.qt.io/qtcreator/creator-build-settings-cmake.html#using-cmake-with-conan
        By the way, Could you tell me the right way to build QtMqtt on Windows using Qt6? I follow the Chinese tutorials but it failed with ERROR ":-1: error: ERROR: Error loading conanfile at 'C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py': Unable to load conanfile in C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py
        ERROR: Error loading conanfile at 'C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py': Unable to load conanfile in C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py
        File "<frozen importlib._bootstrap_external>", line 883, in exec_module
        File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
        File "C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py", line 29, in <module>
        from conans import ConanFile"

        JoeCFDJ 1 Reply Last reply
        0
        • R RoachLin

          @JoeCFD I enable the plugin, and it also failed
          I also read and try the steps in these links, but it doesn't make sense
          https://doc.qt.io/qtcreator/creator-build-settings-conan.html#conan-build-steps
          https://doc.qt.io/qtcreator/creator-build-settings-cmake.html#using-cmake-with-conan
          By the way, Could you tell me the right way to build QtMqtt on Windows using Qt6? I follow the Chinese tutorials but it failed with ERROR ":-1: error: ERROR: Error loading conanfile at 'C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py': Unable to load conanfile in C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py
          ERROR: Error loading conanfile at 'C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py': Unable to load conanfile in C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py
          File "<frozen importlib._bootstrap_external>", line 883, in exec_module
          File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
          File "C:\Users\Lin\Desktop\624qtmqtt\qtmqtt\conanfile.py", line 29, in <module>
          from conans import ConanFile"

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          @RoachLin Sorry I can not help you with Windows build because I mainly work on Linux. But I will check it out on Linux.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aiya12
            wrote on last edited by
            #5

            您好 请问您解决了QT6.5 安卓编译 mqtt了吗

            R 1 Reply Last reply
            0
            • A aiya12

              您好 请问您解决了QT6.5 安卓编译 mqtt了吗

              R Offline
              R Offline
              RoachLin
              wrote on last edited by
              #6

              @aiya12 我解决了,有空写个教程,现在忙于找工作中……
              I solved it. I will write a tutorial when I have free time. I'm busy finding a job now……

              1 Reply Last reply
              0
              • R RoachLin has marked this topic as solved on

              • Login

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