Hello,

i try to compile Qt 5.2.1 with MinGW. My OS is Windows 7 SP1 32-Bit. I get an error while compiling. How can i solve that problem?
Qt Code:
  1. mingw32-make[3]: Entering directory 'C:/qt/qtactiveqt/src/tools'
  2. cd idc\ && ( if not exist Makefile C:\qt\qtbase\bin\qmake C:\qt\qtactiveqt\src\t
  3. ools\idc\idc.pro -o Makefile ) && mingw32-make -f Makefile
  4. mingw32-make[4]: Entering directory 'C:/qt/qtactiveqt/src/tools/idc'
  5. mingw32-make -f Makefile.Release
  6. mingw32-make[5]: Entering directory 'C:/qt/qtactiveqt/src/tools/idc'
  7. g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -fno-exceptions -frtti -W
  8. all -Wextra -DUNICODE -DQT_NO_XKBCOMMON -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_BO
  9. OTSTRAP_LIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CO
  10. DECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQ
  11. T_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQ
  12. T_NO_TRANSLATION -DQT_QMAKE_LOCATION="C:/qt/qtbase/bin/qmake" -I. -I"C:\qt\qtbas
  13. e\include" -I"C:\qt\qtbase\include\QtCore" -I"C:\qt\qtbase\include\QtXml" -I"C:\
  14. qt\qtbase\include\QtCore\5.2.1" -I"C:\qt\qtbase\include\QtCore\5.2.1\QtCore" -I"
  15. C:\qt\qtbase\include\QtXml\5.2.1" -I"C:\qt\qtbase\include\QtXml\5.2.1\QtXml" -I"
  16. C:\qt\qtbase\include" -I"C:\icu\include" -I"C:\qt\qtbase\mkspecs\win32-g++" -o .
  17. obj\release\main.o main.cpp
  18. g++ -Wl,-s -Wl,-subsystem,console -o C:\qt\qtbase\bin\idc.exe .obj/release/main.
  19. o -Lc:\qt\qtbase\lib -Lc:\icu\lib -LC:/qt/qtbase/lib -lQt5Bootstrap -luser32 -l
  20. ole32 -ladvapi32
  21. .obj/release/main.o:main.cpp:(.text+0x1c9): undefined reference to `QProcess::QP
  22. rocess(QObject*)'
  23. .obj/release/main.o:main.cpp:(.text+0x1dc): undefined reference to `QProcess::sy
  24. stemEnvironment()'
  25. .obj/release/main.o:main.cpp:(.text+0x401): undefined reference to `QLibraryInfo
  26. ::location(QLibraryInfo::LibraryLocation)'
  27. .obj/release/main.o:main.cpp:(.text+0x617): undefined reference to `QProcess::se
  28. tEnvironment(QStringList const&)'
  29. .obj/release/main.o:main.cpp:(.text+0x632): undefined reference to `QProcess::st
  30. art(QString const&, QFlags<QIODevice::OpenModeFlag>)'
  31. .obj/release/main.o:main.cpp:(.text+0x645): undefined reference to `QProcess::wa
  32. itForFinished(int)'
  33. .obj/release/main.o:main.cpp:(.text+0x651): undefined reference to `QProcess::ex
  34. itCode() const'
  35. .obj/release/main.o:main.cpp:(.text+0x6e0): undefined reference to `QProcess::~Q
  36. Process()'
  37. c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/
  38. ld.exe: .obj/release/main.o: bad reloc address 0x1b in section `.text$_Z7fprintf
  39. P6_iobufPKcz[__Z7fprintfP6_iobufPKcz]'
  40. collect2.exe: error: ld returned 1 exit status
  41. Makefile.Release:77: recipe for target 'C:\qt\qtbase\bin\idc.exe' failed
  42. mingw32-make[5]: *** [C:\qt\qtbase\bin\idc.exe] Error 1
  43. mingw32-make[5]: Leaving directory 'C:/qt/qtactiveqt/src/tools/idc'
  44. Makefile:34: recipe for target 'release' failed
  45. mingw32-make[4]: *** [release] Error 2
  46. mingw32-make[4]: Leaving directory 'C:/qt/qtactiveqt/src/tools/idc'
  47. Makefile:38: recipe for target 'sub-idc-make_first' failed
  48. mingw32-make[3]: *** [sub-idc-make_first] Error 2
  49. mingw32-make[3]: Leaving directory 'C:/qt/qtactiveqt/src/tools'
  50. Makefile:82: recipe for target 'sub-tools-make_first-ordered' failed
  51. mingw32-make[2]: *** [sub-tools-make_first-ordered] Error 2
  52. mingw32-make[2]: Leaving directory 'C:/qt/qtactiveqt/src'
  53. Makefile:41: recipe for target 'sub-src-make_first' failed
  54. mingw32-make[1]: *** [sub-src-make_first] Error 2
  55. mingw32-make[1]: Leaving directory 'C:/qt/qtactiveqt'
  56. makefile:314: recipe for target 'module-qtactiveqt-make_first' failed
  57. mingw32-make: *** [module-qtactiveqt-make_first] Error 2
To copy to clipboard, switch view to plain text mode 

That's my environment variables:
Qt Code:
  1. SETX QMAKESPEC "win32-g++"
  2. SETX QTDIR "c:\qt"
  3. SETX include "c:\qt\qtbase\include;c:\icu\include"
  4. SETX lib "c:\qt\qtbase\lib;c:\icu\lib"
  5. SETX PATH "c:\perl\perl\bin;c:\perl\perl\site\bin;c:\mingw\bin;c:\qt\qtbase\bin;c:\qt\qtrepotools\bin;c:\qt\gnuwin32\bin;c:\python\installdir;c:\icu\bin"
  6.  
  7. SETX ANDROID_NDK_PLATFORM "android-9"
  8. SETX ANDROID_TARGET_ARCH "armeabi-v7a"
  9. SETX ANDROID_BUILD_TOOLS_REVISION "19.0.2"
  10. SETx ANDROID_NDK_HOST "windows"
To copy to clipboard, switch view to plain text mode 

That's my configure command, beore i start the compiling process:
Qt Code:
  1. configure -platform win32-g++ -debug-and-release -opengl desktop -xplatform android-g++ -android-ndk c:\android-ndk -android-sdk c:\android-sdk -android-toolchain-version 4.7 -opensource
To copy to clipboard, switch view to plain text mode 

Thanks in advance