Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to build qt-everywhere-src-5.15.16 when configure broken
Forum Updated to NodeBB v4.3 + New Features

How to build qt-everywhere-src-5.15.16 when configure broken

Scheduled Pinned Locked Moved Unsolved General and Desktop
uoia
7 Posts 6 Posters 420 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.
  • J Offline
    J Offline
    JMN39
    wrote on last edited by
    #1

    README in this file states simply:
    cd <path>/<source package>
    .configure
    But I get configure not found. Configure code is this:
    srcpath=dirname $0
    srcpath=(cd "$srcpath"; pwd)
    configure=$srcpath/qtbase/configure
    if [ ! -e "$configure" ]; then
    echo "$configure not found. Did you forget to run "init-repository"?" >&2
    exit 1
    But there is no directory qtbase in this package. Neither is it possible to run init-respository. The README is incomplete? The code was obtained from qt-everywhere-opensource-src-5.15.16.zip
    I have macOS Sequoia 15.7.1. Any advice would be most welcome
    JMN

    jsulmJ A 2 Replies Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      It's ./configure but when you used the zip file it's maybe not executable so download the .tar.gz to and make sure ./configure is executable.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • J JMN39

        README in this file states simply:
        cd <path>/<source package>
        .configure
        But I get configure not found. Configure code is this:
        srcpath=dirname $0
        srcpath=(cd "$srcpath"; pwd)
        configure=$srcpath/qtbase/configure
        if [ ! -e "$configure" ]; then
        echo "$configure not found. Did you forget to run "init-repository"?" >&2
        exit 1
        But there is no directory qtbase in this package. Neither is it possible to run init-respository. The README is incomplete? The code was obtained from qt-everywhere-opensource-src-5.15.16.zip
        I have macOS Sequoia 15.7.1. Any advice would be most welcome
        JMN

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

        @JMN39 The zip archive is for Windows, you need to download the archive for MacOS.

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

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jackson12
          wrote on last edited by
          #4

          @JMN39 said in How to build qt-everywhere-src-5.15.16 when configure broken:

          How to build qt-everywhere-src-5.15.16 when configure broken
          Unsolved
          General and Desktop
          uoia
          3 posts
          3 posters
          40 views

          Mark unread

          Not Watching

          Oldest to Newest
          Reply

          JOffline
          JMN39
          wrote about 18 hours ago
          last edited by
          #1
          README in this file states simply:
          cd <path>/<source package>
          .configure
          But I get configure not found. Configure code is this:
          srcpath=dirname $0
          srcpath=(cd "$srcpath"; pwd)
          configure=$srcpath/qtbase/configure
          if [ ! -e "$configure" ]; then
          echo "$configure not found. Did you forget to run "init-repository"?" >&2
          exit 1
          But there is no directory qtbase in this package. Neither is it possible to run init-respository. The README is incomplete? The code was obtained from qt-everywhere-opensource-src-5.15.16.zip
          I have macOS Sequoia 15.7.1. Any advice would be most welcome
          JMN

          It sounds like your source package might be incomplete or missing submodules. In Qt 5.15.x, the qtbase directory is essential for building, and it usually gets cloned when you run init-repository from a git checkout. The zip from the download page often doesn’t include those submodules. Try getting the source using the official Qt Git repo and running perl init-repository before configuring. That should create the missing qtbase folder and let the build process run normally.

          1 Reply Last reply
          0
          • J JMN39

            README in this file states simply:
            cd <path>/<source package>
            .configure
            But I get configure not found. Configure code is this:
            srcpath=dirname $0
            srcpath=(cd "$srcpath"; pwd)
            configure=$srcpath/qtbase/configure
            if [ ! -e "$configure" ]; then
            echo "$configure not found. Did you forget to run "init-repository"?" >&2
            exit 1
            But there is no directory qtbase in this package. Neither is it possible to run init-respository. The README is incomplete? The code was obtained from qt-everywhere-opensource-src-5.15.16.zip
            I have macOS Sequoia 15.7.1. Any advice would be most welcome
            JMN

            A Offline
            A Offline
            AyahnaBarudak
            wrote on last edited by
            #5

            @JMN39 I suggest you find out about aqtinstall (python package) instead of having to build it yourself.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JMN39
              wrote on last edited by
              #6

              Thank you for your replies and suggestions. Although the README in qt-everywhere-opensource-src-5.15.16 specifically gives instructions for a Mac build I find that the download contains CRLF line terminators which will not work on a Mac. The "command not found" refers to /bin/sh which on a Mac is /bin/sh/LF where as in the download it is /bin/sh/CRLF and there is no such file on a Mac as /bin/shCR which results in the "Command not found" response immediately on executing configure. JSULM mentioned that this zip file is only for Windows. (There are many places in this file which specifically refer to a Mac build - which is a bit strange.)
              I did try to get the download from git: git clone https://code.qt.io/qt/qt5.git
              but did not know how to specify 5.15.16 since the git repo automatically delivers Qt6. I could not follow the Branch Guildlines which I presume is where I can get 5.15.16.
              Why do I want to build? I am using a Mac with M4 (arm64) CPU and although there are QT binaries for Intel (I am already using Qt5.15.2) there are no binaries for QT5 or 6 for a Mac with M4 - at the moment - so I have to find a way to build.
              Any advice would be most welcome. JMN

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

                Hi,

                The pre-built Qt 6 for macOS is multi-arch.

                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