PDA

View Full Version : ASSERT: "isAbsolutePath(baseDir)" error when trying to build



I am shahid
17th February 2018, 14:42
Hello

I recently downloaded qt from git. then I followed steps in


http://doc.qt.io/qt-5/windows-building.html


then I tried to build by typing mingw32-make


I am getting this error in poweshell


elib\corelib.pro ) && C:/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/mingw32-make -f Makefile
mingw32-make[3]: Entering directory 'E:/shahid/QT/qt5/qtbase/src/corelib'
E:\shahid\QT\qt5\qtbase\bin\qmake.exe -o Makefile corelib.pro
Project MESSAGE: perl -w E:\shahid\QT\qt5\qtbase\bin\syncqt.pl -module QtCore -version 5.10.1 -outdir E:/shahid/QT/qt5/qtbase E:/shahid/QT/qt5/qtbase
<srcbase> = E:/shahid/QT/qt5/qtbase
<outbase> = E:/shahid/QT/qt5/qtbase
ASSERT: "isAbsolutePath(baseDir)" in file E:/shahid/QT/qt5/qtbase/qmake/library/ioutils.cpp, line 108

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
mingw32-make[3]: *** [Makefile:168: Makefile] Error 3
mingw32-make[3]: Leaving directory 'E:/shahid/QT/qt5/qtbase/src/corelib'
mingw32-make[2]: *** [Makefile:196: sub-corelib-make_first] Error 2
mingw32-make[2]: Leaving directory 'E:/shahid/QT/qt5/qtbase/src'
mingw32-make[1]: *** [Makefile:45: sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'E:/shahid/QT/qt5/qtbase'
mingw32-make: *** [Makefile:81: module-qtbase-make_first] Error 2
PS E:\shahid\QT\qt5>

can any one help me to fix this

jnmacd
19th February 2018, 19:06
Hi,
I had the same problem, for some reason, the configure script expects the path to be unix-like, '/usr....'
After running configure, i manually edited qtbase\bin\qt.conf and changed all three paths to the correct windows path, i.e.,



[EffectivePaths]
Prefix=..
[DevicePaths]
Prefix=C:\qt\qt-5.10.1-mingw-7.2.0-64
[Paths]
Prefix=C:\qt\qt-5.10.1-mingw-7.2.0-64
HostPrefix=C:\qt\qt-5.10.1-mingw-7.2.0-64
Sysroot=
SysrootifyPrefix=false
TargetSpec=win32-g++
HostSpec=win32-g++