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. No target architecture defined in json file.
Forum Update on Monday, May 27th 2025

No target architecture defined in json file.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 405 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.
  • B Offline
    B Offline
    BlackMamba
    wrote on 30 Jan 2023, 14:40 last edited by BlackMamba
    #1

    Hello,
    When building on Windows for Android on Qt 6.4.2, I am having the error : :-1: erreur : No target architecture defined in json file.

    I had this issue before with Qt 5 and I am still having it now, is that possible that such a big bug was not fixed ?

    Is there a workaround?

    Interesting facts :

    • when creating a new empty project I have the same error
    • when running an example project provided by Qt, I don't have the error

    Thanks,

    K 1 Reply Last reply 30 Jan 2023, 16:52
    0
    • B BlackMamba
      30 Jan 2023, 14:40

      Hello,
      When building on Windows for Android on Qt 6.4.2, I am having the error : :-1: erreur : No target architecture defined in json file.

      I had this issue before with Qt 5 and I am still having it now, is that possible that such a big bug was not fixed ?

      Is there a workaround?

      Interesting facts :

      • when creating a new empty project I have the same error
      • when running an example project provided by Qt, I don't have the error

      Thanks,

      K Offline
      K Offline
      KenAppleby 0
      wrote on 30 Jan 2023, 16:52 last edited by
      #2

      @BlackMamba This had me stumped for a while as well. The solution is to make sure that you have the executable selected as the Run target in the Project Run wizard when building. The error occurs when a lib is selected as the Run target.

      Other pitfalls I encountered when moving to CMake are listed in a previous post.

      1 Reply Last reply
      0

      1/2

      30 Jan 2023, 14:40

      • Login

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