[Development] Build Qt 5 with MinGW 4.7?

Andreas Holzammer andreas.holzammer at kdab.com
Sun Aug 26 21:26:35 CEST 2012


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

> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
> 


-- 
Andreas Holzammer | andreas.holzammer at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4147 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120826/dc932963/attachment.bin>


More information about the Development mailing list