[Development] Build Qt 5 with MinGW 4.7?

Rohan McGovern rohan.mcgovern at nokia.com
Wed Aug 29 02:12:33 CEST 2012


Andreas Holzammer said:
> Am 26.08.2012 16:23, schrieb Stephen Chu:
> > On 8/26/12 10:03 AM, Stephen Chu wrote:
> > 
> >>
> >> Thanks for pointing out the build differences. I didn't realize there
> >> are so many different builds of the same MinGW version. Switching to
> >> mingw-builds get me further. But then I got this error:
> >>
> >> cp qmake.exe C:\Qt\5.0\qtbase\bin\qmake.exe
> >> g++: error: tmp/obj/debug_shared/arch.o: No such file or directory
> >> mingw32-make: *** [arch.exe] Error 1
> >> Could not find output file: No such file or directory
> >> *** qtbase/configure exited with non-zero status.
> >>
> >> I went to qtbase\config.text\arch and manually ran mingw32-make to
> >> create the obj file in question. Then re-run configure and it worked.
> > 
> > OK. I figured out that this error is caused by git in my PATH. I think 
> > sh.exe in git\bin is causing configure some issues. Removing git from 
> > PATH and configure finished without issue.
> > 
> > qt5_tool requires git in PATH so I'll just have to remember changing 
> > PATH back and forth between clean up/update and configure.
> 
> If you are using msysgit, there is a folder cmd, which has a forward
> batch file for just this issue. If you are using something else, you can
> also create yourself a forward batch file which has either a absolute
> path, or another way of finding the git.exe

Just a small correction to avoid any possible confusion...
Recently[1], this has been changed so that the git cmd folder also contains
a git.exe.  So please note that the latest versions of msysgit actually
ship _two_ git.exe and no git.cmd or git.bat.

[1]
https://github.com/msysgit/msysgit/commit/893b221982321303e1a31b2098cd115c65ca49ab



More information about the Development mailing list