Building QT source stuck in the configure stage
-
I am trying to build Qt 5.15.1 by cloning the repo and following the README but I came across an issue an issue.
Everything went seemingly well till the step where I needed to run the configure file following the way mentioned in the README first I had an issue that required me to add a -platform tag so I did.
../qt5/configure -developer-build -opensource -nomake examples -nomake tests -platform win32-g++
Executing the command resulted in the following output
+ cd qtbase + /e/qt5/qtbase/configure -top-level -prefix /e/qt5/qtbase -opensource -nomake tests -platform win32-g++ <srcbase> = e:/qt5/qtbase <bldbase> = e:/qt5-build/qtbase <outbase> = e:/qt5-build/qtbase Creating qmake... .......................................................................Done. Info: creating super cache file E:\qt5-build\.qmake.super Info: creating cache file E:\qt5-build\.qmake.cache Info: creating stash file E:\qt5-build\.qmake.stash
And it was stuck there and never proceeded, I waited over an hour and it still won't proceed.
Even when I try executing the next step which is make -j4 there is no make file so the command doesn't work. I think it is worth mentioning that there is a qt.pro file in the directory, not exactly sure if it has anything to do with my issue or not.
-
/e/qt5/qtbase/configure
make -j4
As already told you on SO remove bash and msys stuff from your PATH env var. The correct make tool for MinGW is mingw32-make. Also why do you want to build 5.15.1 by yourself - there is a precompiled 5.15.2 available through the online installer.
-
I can't seem to find any bash/msys stuff in my PATH env var, and to answer your second question I am building an application that will be part of another bigger application written in qt 5.15.1 it is a constraint I need to follow.
-
You have, otherwise you would neither get the output
/e/qt5/qtbase/configure
nor would be able to call 'make.exe' as this is not available for MinGW.
-
Sadly this doesn't seem to work for me, I checked to make sure I don't have any msys/bash related env vars and tried rerunning the command, and still don't seem to be getting anywhere. I really appreciate your patience and time though.
-
@fareshmoneim said in Building QT source stuck in the configure stage:
I can't seem to find any bash/msys stuff in my PATH env var
I don't use Windows, so please don't ask me further if this is wrong, but might things like
make
&bash
be in yourC:\Program Files (x86)\GnuWin32\bin
directory on yourPATH
? -
Hi,
Which terminal are you using when doing this ?
-
where make.exe
,where sh.exe
andwhere bash.exe
willshow you from where it's picked up