Configure script for Qt5.15.X fails on Linux-Ubuntu24 with "Could not find qmake spec ''"
-
Hello everyone,
I'd like to compile a version of Qt5.15.X on a fresh Linux-Ubuntu24. Qt5.15.13 is (still) packaged for Ubuntu24, so it is clearly possible.
AFAIK, I have installed all the dependencies I am aware of.
However, no matter which Qt5.15 version of qt sources I download (I tried Qt5.15.2, Qt5.15.13, Qt5.15.15, Qt5.15.18), the configure script aborts with the following error :
+ cd qtbase + XXX/qt-everywhere-src-5.15.15/qtbase/configure -top-level Creating qmake... .Done. Could not find qmake spec ''. Error processing project file: XXX/qt-everywhere-src-5.15.15/qt.proI am clearly missing something, likely a needed dependency, but... well... I could bot figure out the problem.
Would you have a hint for me ?
Thanks in advance,
N. -
Hi,
Are you doing an out of source build ?
-
Hello and thanks.
@SGaist no I am not.
This is exactly what I do (with various qt5.15 source versions) :
- download the sources from the Qt archives, eg https://download.qt.io/archive/qt/5.15/5.15.18/
- navigate to the qt-everywhere-src-5.15.18 directory
- run the configure script, with e.g.
./configure -prefix $PWD/qtbase -opensource -nomake tests
This is when the configure script generates the error. Full output is :
+ cd qtbase + XXX/qt-everywhere-src-5.15.15/qtbase/configure -top-level Creating qmake... .Done. Could not find qmake spec ''. Error processing project file: XXX/qt-everywhere-src-5.15.15/qt.proAn internet search indicates that I may be missing some dependencies on my freshly installed Ubuntu24.
But which one ? I can't figure out.Thanks;
Nicolas -
Hello again.
Well, problem solved !
My
qt-everywhere-src-5.15.XXdirectory was placed behind a path with French accents (eg $HOME/Téléchargements).Accents (and very likely other non-ASCII chars) within the qt source directory's path is not supported by the configure script.
My configure script ran OK :)
Thanks
-
N NicolasC has marked this topic as solved on
-
Accents and spaces are pretty tricky !
Glad you found out and thanks for sharing