PDA

View Full Version : Solution to qtbase (5.0) build error with mingw32-make



ottoshmidt
2nd September 2011, 22:07
if you're trying to build qtbase with mingw32-make and encounter this problem:


g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCI
I -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO
_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT
_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NODLL -I"..\..
\..\include" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtCore" -I"..\..\..
\include\QtCore\QtCore" -I"..\..\..\include\QtXml" -I"..\..\..\include\QtXml" -I
"..\..\..\include\QtXml\QtXml" -I"c:\bearer\qtbase\src\3rdparty\zlib" -I"c:\bear
er\qtbase\src\tools\bootstrap" -I"." -I"c:\bearer\qtbase\mkspecs\win32-g++" -o t
mp\obj\release_shared\qisciicodec.o c:\bearer\qtbase\src\corelib\codecs\qisciico
dec.cpp
cc1plus.exe: error: ..\..\..\include\QtCore\QtCore: not a directory
cc1plus.exe: error: ..\..\..\include\QtXml\QtXml: not a directory
mingw32-make[2]: *** [tmp/obj/release_shared/qisciicodec.o] Error 1
mingw32-make[2]: Leaving directory `C:/bearer/build/src/tools/bootstrap'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/bearer/build/src/tools/bootstrap'
mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2

you need to copy all files from src/modules/ into build directory's mkspecs/modules/
and rerun configure again.