Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Installazione su macbook m1
Forum Updated to NodeBB v4.3 + New Features

Installazione su macbook m1

Scheduled Pinned Locked Moved Unsolved Italian
11 Posts 3 Posters 118 Views 1 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.
  • M Offline
    M Offline
    m77it
    wrote last edited by
    #1

    Buongiorno,
    quando installo qt su un macbook M1 ricevo il seguente messaggio

    The required Xcode installation is not active
    An Xcode installation was found in the Applications directory
    However, you need to setup Xcode command line tools
    To activate Xcode command line tools in your environment, run 'xcode-select--switch/path/to/Xcode.app' from the command line

    Ora immagino che al posto di path/to debba mettere il folder dove andare a cercare Xcode, ma come lo trovo?
    Nel folder Applications non c'e'...
    0 drwx------@ 7 marco staff 224 15 ott 13:51 ./
    0 drwxr-xr-x+ 116 marco staff 3712 16 ott 10:16 ../
    0 -rw-r--r--@ 1 marco staff 0 17 mar 2022 .localized
    0 drwxr-xr-x@ 3 marco staff 96 3 ott 2024 BetterTouchTool.app/
    0 drwx------@ 4 marco staff 128 15 set 23:21 Chrome Apps.localized/
    8 -rw-rw-rw-@ 1 marco staff 948 15 ott 13:51 Qt Maintenance Tool.app
    0 drwxr-xr-x 3 marco staff 96 6 set 2024 Spyder 6.app/

    Grazie
    Marco

    1 Reply Last reply
    0
    • M Offline
      M Offline
      m77it
      wrote last edited by
      #2

      Ho trovato xcode.app in
      /Applications
      ma
      xcode-select--switch/Applications/Xcode.app

      mi restituisce

      zsh: no such file or directory: xcode-select--switch/Applications/Xcode.app

      jsulmJ 1 Reply Last reply
      0
      • M m77it

        Ho trovato xcode.app in
        /Applications
        ma
        xcode-select--switch/Applications/Xcode.app

        mi restituisce

        zsh: no such file or directory: xcode-select--switch/Applications/Xcode.app

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote last edited by
        #3

        @m77it said in Installazione su macbook m1:

        xcode-select--switch/Applications/Xcode.app

        Shouldn't it be

        xcode-select --switch /Applications/Xcode.app
        ``
        ?

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          m77it
          wrote last edited by
          #4

          I don't think so

          (base) marco@MacBook-Pro-di-Marco-4 /Applications % xcode-select--switch/Xcode.app
          zsh: no such file or directory: xcode-select--switch/Xcode.app
          (base) marco@MacBook-Pro-di-Marco-4 /Applications % xcode-select --switch/Xcode.app
          xcode-select: error: invalid argument '--switch/Xcode.app'
          Usage: xcode-select [options]

          Print or change the path to the active developer directory. This directory
          controls which tools are used for the Xcode command line tools (for example,
          xcodebuild) as well as the BSD development commands (such as cc and make).

          Options:
          -h, --help print this help message and exit
          -p, --print-path print the path of the active developer directory
          -s <path>, --switch <path> set the path for the active developer directory
          --install open a dialog for installation of the command line developer tools
          -v, --version print the xcode-select version
          -r, --reset reset to the default command line tools path
          (base) marco@MacBook-Pro-di-Marco-4 /Applications %

          jsulmJ 1 Reply Last reply
          0
          • M m77it

            I don't think so

            (base) marco@MacBook-Pro-di-Marco-4 /Applications % xcode-select--switch/Xcode.app
            zsh: no such file or directory: xcode-select--switch/Xcode.app
            (base) marco@MacBook-Pro-di-Marco-4 /Applications % xcode-select --switch/Xcode.app
            xcode-select: error: invalid argument '--switch/Xcode.app'
            Usage: xcode-select [options]

            Print or change the path to the active developer directory. This directory
            controls which tools are used for the Xcode command line tools (for example,
            xcodebuild) as well as the BSD development commands (such as cc and make).

            Options:
            -h, --help print this help message and exit
            -p, --print-path print the path of the active developer directory
            -s <path>, --switch <path> set the path for the active developer directory
            --install open a dialog for installation of the command line developer tools
            -v, --version print the xcode-select version
            -r, --reset reset to the default command line tools path
            (base) marco@MacBook-Pro-di-Marco-4 /Applications %

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote last edited by
            #5

            @m77it Again: it is xcode-select --switch /Applications/Xcode.app
            So, a space after xcode-select, one space after --switch. The last error message actually points that out...

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

            1 Reply Last reply
            0
            • M Offline
              M Offline
              m77it
              wrote last edited by
              #6

              Sorry. You're right...
              But now I receive this different error message

              You need to install Xcode. If you already have Xcode installed, you need to set the active developer directory with 'xcode-select'

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote last edited by SGaist
                #7

                Hi,

                Did you actually install Xcode ?

                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
                • M Offline
                  M Offline
                  m77it
                  wrote last edited by
                  #8

                  How can check?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote last edited by
                    #9

                    Does your Application folder contain it ?
                    You can also check the App Store since it's the official way to install the latest version of Xcode.

                    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
                    • M Offline
                      M Offline
                      m77it
                      wrote last edited by
                      #10

                      The folder contains files, but I reinstalled Xcode and now Qt works fine :)
                      Thanks a lot for your kind help :)

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote last edited by
                        #11

                        You're welcome !

                        Since you have it working now, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so other forum members may know a solution has been found :-)

                        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