Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator / QBS Can't Build for iOS (clang++ Uses Wrong Architecture)
QtWS25 Last Chance

Qt Creator / QBS Can't Build for iOS (clang++ Uses Wrong Architecture)

Scheduled Pinned Locked Moved Qt Creator and other tools
qbsqtcreatorios
2 Posts 2 Posters 1.4k 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.
  • A Offline
    A Offline
    AJaques
    wrote on 7 Jul 2015, 21:57 last edited by
    #1

    A while back I converted my QMake project to use QBS. I cannot get the QBS project to compile for iOS (it works great for Windows and OSX)....

    Specifically, I get a linker error "ld: unknown/unsupported architecture name for: -arch armv4t".

    I created a very simple QBS project to build a QML application with a window, a button, and text and get the same error.

    When comparing the build output of my QMake project, I see that clang++ is given the correct architecture flag clang++ -arch armv7 during compilation whereas the QBS project incorrectly uses clang++ -arch arm which I'm assuming results in the linker error later.

    I'm not sure if this is a bug with QBS/QtCreator or if I need to hack a file somewhere to force the right arch flag? I know I could probably use QBS's cpp.cxxFlags to force this somehow but that seems kludgey.

    My questions are:

    1. Does QBS + QtCreator support building for iOS?
    2. Where do QBS's compile/link flags come from?

    I'm using Qt for iOS 5.4.2 (5.4.1 did the same thing), Qt Creator 3.4.2 (the prior version had the same issue too) and XCode 6.4, and the auto-detected kit for "iphoneos-clang Qt 5.4.1 for iOS".

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Jul 2015, 14:59 last edited by
      #2

      Hi and welcome to devnet,

      Can you post a minimal QBS project that reproduce this behavior ?

      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