Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Ninja error building Qt 6.5 from source
Qt 6.11 is out! See what's new in the release blog

Ninja error building Qt 6.5 from source

Scheduled Pinned Locked Moved Unsolved Qt 6
7 Posts 3 Posters 2.9k Views 2 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.
  • Z Offline
    Z Offline
    Zanth
    wrote on last edited by
    #1

    Hello,

    Hopefully someone can help with what should be an easy problem (that has me stumped):

    I have a new MacBook computer running Ventura (macOS 13.4.1).

    I have installed:

    • Xcode 14.3.1

    • MacPorts

    • cmake v3.24.4 (sudo port install cmake)

    • ninja v1.11.1 (sudo port install ninja)

    • nodejs v18.17.0 (via a package)

    • I copied and decompressed/untarred the Qt 6.5 source tar.xz file

    Path was updated to include /usr/local/bin where the above components are found.

    Running configure there are a couple of minor warnings.

    But running: cmake --build . --parallel
    generates this error: "ninja: error: loading 'build.ninja': No such file or directory"

    I do not see a build.ninja file installed at the source location.
    However, there is a build.ninja.tmp... file that is 0 bytes in length.

    TIA !!!
    Zanth

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

      Hi and welcome to devnet,

      Which configuration options did you use ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Z 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Which configuration options did you use ?

        Z Offline
        Z Offline
        Zanth
        wrote on last edited by
        #3

        @SGaist

        Hi,

        Thank you ... it is good to be here!

        None at all I believe. I simply followed the instructions in: https://doc.qt.io/qt-6/macos-building.html
        and entered:

        cd /tmp/qt-everywhere-src-6.5.2
        ./configure

        Z 1 Reply Last reply
        0
        • Z Zanth

          @SGaist

          Hi,

          Thank you ... it is good to be here!

          None at all I believe. I simply followed the instructions in: https://doc.qt.io/qt-6/macos-building.html
          and entered:

          cd /tmp/qt-everywhere-src-6.5.2
          ./configure

          Z Offline
          Z Offline
          Zanth
          wrote on last edited by
          #4

          @Zanth

          I should add one thing that may be relevant: After the configure finished I was left with on a blank line and was not returned to the command line.
          I tried typing the usual things:
          save
          exit
          quit
          bye
          help

          ... but got no response. I finally hit ^C to exit the utility. Perhaps this is the problem?

          JoeCFDJ Z 2 Replies Last reply
          0
          • Z Zanth

            @Zanth

            I should add one thing that may be relevant: After the configure finished I was left with on a blank line and was not returned to the command line.
            I tried typing the usual things:
            save
            exit
            quit
            bye
            help

            ... but got no response. I finally hit ^C to exit the utility. Perhaps this is the problem?

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

            @Zanth did you install ninja?
            which ninja?

            In addition to Xcode, you will need to make sure you have the following dependencies in your path PATH.

            CMake (>=3.16, >= 3.18.4 for Ninja Multi-Config, >= 3.21.1 for static Qt builds)
            Ninja
            
            Z 1 Reply Last reply
            0
            • Z Zanth

              @Zanth

              I should add one thing that may be relevant: After the configure finished I was left with on a blank line and was not returned to the command line.
              I tried typing the usual things:
              save
              exit
              quit
              bye
              help

              ... but got no response. I finally hit ^C to exit the utility. Perhaps this is the problem?

              Z Offline
              Z Offline
              Zanth
              wrote on last edited by
              #6

              @Zanth

              Solved ... Source directory cannot be on a network mounted drive!

              Hopefully, this is of some help to others in the future.

              1 Reply Last reply
              1
              • JoeCFDJ JoeCFD

                @Zanth did you install ninja?
                which ninja?

                In addition to Xcode, you will need to make sure you have the following dependencies in your path PATH.

                CMake (>=3.16, >= 3.18.4 for Ninja Multi-Config, >= 3.21.1 for static Qt builds)
                Ninja
                
                Z Offline
                Z Offline
                Zanth
                wrote on last edited by
                #7

                @JoeCFD

                Thanks for your message ... yes ... I had installed Ninja v1.11.1 prior to the configuration.
                Got it working by using a locally mounted drive (see below).

                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