How to build qt-everywhere-src-5.15.16 when configure broken
-
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's
./configurebut when you used the zip file it's maybe not executable so download the .tar.gz to and make sure ./configure is executable. -
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 -
@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 viewsMark unread
Not Watching
Oldest to Newest
ReplyJOffline
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
JMNIt 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.
-
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@JMN39 I suggest you find out about aqtinstall (python package) instead of having to build it yourself.
-
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 -
Hi,
The pre-built Qt 6 for macOS is multi-arch.