Compiling problems with mingw32
I am having a problem trying to statically build qt.
I run the following commands:
configure.exe -static -debug-and-release -stl -qt-gif
mingw32-make sub-src
This is what it gives me:
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_BOOTSTRAPPED -DQT_RCC -DQT_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -
DQT_NO_QOBJECT -DQT_NO_UNICODETABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_N
O_GEOM_VARIANT -DQT_NODLL -I"..\..\corelib\arch\generic" -I"..\..\..\include" -I
"." -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zli
b" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\release_static\qfsfileengine_
iterator_win.o ..\..\corelib\io\qfsfileengine_iterator_win.cpp
gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_RCC -DQ
T_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODE
TABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NODLL -I".
.\..\corelib\arch\generic" -I"..\..\..\include" -I"." -I"..\..\..\include\QtCore
" -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zlib" -I"." -I"..\..\..\mkspecs\w
in32-g++" -o tmp\obj\release_static\adler32.o ..\..\3rdparty\zlib\adler32.c
gcc: installation problem, cannot exec `cc1': No such file or directory
mingw32-make[2]: *** [tmp\obj\release_static\adler32.o] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.3.1/src/tools/rcc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.3.1/src/tools/rcc'
mingw32-make: *** [sub-rcc-sub_src_target_ordered] Error 2
C:\Qt\4.3.1
What is cc1?
If anyone can help, it would be appreciated.
Thanks
Wali
Re: Compiling problems with mingw32
cc1 should be in the mingw package you downloaded. look for it in bin. the PATH variable should contain this directory.
If it is not, then try installing the mingw that the Qt installer prompts you to download.
Regards
Re: Compiling problems with mingw32
No this does not solve the problem. I still get the same error.
Re: Compiling problems with mingw32
Do you try this on vista? There was a problem with mingw there. Try to update your mingw runtime from sf.net/projects/mingw
Re: Compiling problems with mingw32
Yeah I'm using vista business x64. I don't fully understand how to update the mingw runtime, but I did find a solution that works. I needed to add ( C:\MinGW\libexec\gcc\mingw32\3.4.5 ) to my path variable. Thats where cc1.exe was located. Now qt complies. Thanks
Re: Compiling problems with mingw32
Just download http://downloads.sourceforge.net/min...mirror=surfnet and unpack it into your MinGW directory.