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. Can't set custom compiler options (apple's arm64 cross to x86-64)
Forum Updated to NodeBB v4.3 + New Features

Can't set custom compiler options (apple's arm64 cross to x86-64)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 256 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
    asc7uni
    wrote on last edited by asc7uni
    #1

    Hello. I am trying to compile for x86-64 using apple's clang++.

    I created custom compiler and added options for cross compilation: -arch x86_64
    Снимок экрана 2022-02-21 в 15.39.54.png
    But when running build with this compiler (I checked twice that I am using correct kit and that this compiler is selected) I have linkage error. And I see in output that clang was called with -arch arm64 argument:
    Снимок экрана 2022-02-21 в 15.40.44.png

    What am I missing to build x64 build on arm64 platform?

    1 Reply Last reply
    0
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      Which build system are you using?

      Director R&D, The Qt Company

      A 1 Reply Last reply
      0
      • kkoehneK kkoehne

        Which build system are you using?

        A Offline
        A Offline
        asc7uni
        wrote on last edited by
        #3

        @kkoehne said in Can't set custom compiler options (apple's arm64 cross to x86-64):

        Which build system are you using?

        CMake

        I managed to build with XCode so in theory this should be possible in QtCreator too

        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