Dear forum users,

i have successfully compiled Qt under MSYS with MinGW-w64 (Not MinGW). Now i'm trying to do the same with Cygwin, however i'm unable to succeed with neither the configure script nor the configure.exe program. i'm using Windows XP Pro and Qt 4.8.1 OpenSource.

i am trying to configure Qt with:
Qt Code:
  1. #!/bin/sh
  2. ../../../../QtSources/4.8.1/configure.exe \
  3. -fast \
  4. -shared \
  5. -debug-and-release \
  6. -opensource \
  7. -confirm-license \
  8. -no-dsp \
  9. -no-vcproj \
  10. -no-qt3support \
  11. -no-webkit \
  12. -no-phonon \
  13. -no-phonon-backend \
  14. -platform win32-g++ \
  15. -nomake demos -nomake examples \
  16. -prefix $BASEDIR/Desktop/Qt/4.8.1/mingw-w64-cygw
To copy to clipboard, switch view to plain text mode 

First of all, when using cygwin, mingw32-make is not available (i get an error from the configure.exe binary: "execute: File or path is not found (mingw32-make)", right after all the headers generation). So i have downloaded a copy of mingw32-make from msys and put it in cygwin (*gasp*). The configure script goes further, but still fails.
The failure seems related to the fact that the MKSPEC file didn't find the cygwin environment, and is issuing windows command instead of unix. The error looks like th
Qt Code:
  1. Preparing build tree...
  2.  
  3. This is the Qt for Windows Open Source Edition.
  4.  
  5. You have already accepted the terms of the license.
  6.  
  7. Environment:
  8. INCLUDE=
  9.  
  10. Unset
  11. LIB=
  12.  
  13. Unset
  14. PATH=
  15.  
  16. C:\cygwin\usr\local\bin
  17.  
  18. C:\cygwin\bin
  19.  
  20. C:\WINDOWS
  21.  
  22. C:\WINDOWS\system32
  23.  
  24. C:\WINDOWS\System32\Wbem
  25.  
  26. C:\cygwin\bin
  27. You are licensed to use this software under the terms of the GNU GPL version 3.You are licensed to use this software under the terms of the Lesser GNU LGPL version 2.1.
  28. See C:/QtSDK/QtSources/4.8.13
  29.  
  30. or C:/QtSDK/QtSources/4.8.1L
  31.  
  32. Configuration:
  33. minimal-config
  34.  
  35. small-config
  36.  
  37. medium-config
  38.  
  39. large-config
  40.  
  41. full-config
  42.  
  43. build_all
  44.  
  45. debug
  46. Qt Configuration:
  47. release
  48.  
  49. debug
  50.  
  51. zlib
  52.  
  53. png
  54.  
  55. accessibility
  56.  
  57. opengl
  58.  
  59. s60
  60.  
  61. ipv6
  62.  
  63. script
  64.  
  65. scripttools
  66.  
  67. xmlpatterns
  68.  
  69. multimedia
  70.  
  71. audio-backend
  72.  
  73. declarative
  74.  
  75. native-gestures
  76.  
  77. svg
  78.  
  79. minimal-config
  80.  
  81. small-config
  82.  
  83. medium-config
  84.  
  85. large-config
  86.  
  87. full-config
  88.  
  89. QMAKESPEC...................win32-g++ (commandline)
  90. Architecture................windows
  91. Maketool....................mingw32-make
  92. Debug symbols...............yes
  93. Link Time Code Generation...no
  94. Accessibility support.......yes
  95. STL support.................yes
  96. Exception support...........yes
  97. RTTI support................yes
  98. MMX support.................yes
  99. 3DNOW support...............no
  100. SSE support.................yes
  101. SSE2 support................yes
  102. IWMMXT support..............no
  103. OpenGL support..............yes
  104. OpenVG support..............no
  105. OpenSSL support.............no
  106. QtDBus support..............no
  107. QtXmlPatterns support.......yes
  108. Phonon support..............no
  109. QtMultimedia support........yes
  110. WebKit support..............no
  111. Declarative support.........yes
  112. Declarative debugging.......yes
  113. QtScript support............yes
  114. QtScriptTools support.......yes
  115. Graphics System.............raster
  116. Qt3 compatibility...........no
  117. DirectWrite support.........no
  118.  
  119. Third Party Libraries:
  120. ZLIB support............qt
  121. GIF support.............plugin
  122. TIFF support............plugin
  123. JPEG support............plugin
  124. PNG support.............yes
  125. MNG support.............plugin
  126. FreeType support........no
  127.  
  128. Styles:
  129. Windows.................yes
  130. Windows XP..............no
  131. Windows Vista...........no
  132. Plastique...............yes
  133. Cleanlooks..............yes
  134. Motif...................yes
  135. CDE.....................yes
  136. Windows CE..............no
  137. Windows Mobile..........no
  138. S60.....................no
  139.  
  140. Sql Drivers:
  141. ODBC....................no
  142. MySQL...................no
  143. OCI.....................no
  144. PostgreSQL..............no
  145. TDS.....................no
  146. DB2.....................no
  147. SQLite..................plugin (qt)
  148. SQLite2.................no
  149. InterBase...............no
  150.  
  151. Sources are in..............C:\QtSDK\QtSources\4.8.1
  152. Build is done in............C:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw
  153. Install prefix............../Desktop/Qt/4.8.1/mingw-w64-cygw
  154. Headers installed to......../Desktop/Qt/4.8.1/mingw-w64-cygw/include
  155. Libraries installed to....../Desktop/Qt/4.8.1/mingw-w64-cygw/lib
  156. Plugins installed to......../Desktop/Qt/4.8.1/mingw-w64-cygw/plugins
  157. Imports installed to......../Desktop/Qt/4.8.1/mingw-w64-cygw/imports
  158. Binaries installed to......./Desktop/Qt/4.8.1/mingw-w64-cygw/bin
  159. Docs installed to.........../Desktop/Qt/4.8.1/mingw-w64-cygw/doc
  160. Data installed to.........../Desktop/Qt/4.8.1/mingw-w64-cygw
  161. Translations installed to.../Desktop/Qt/4.8.1/mingw-w64-cygw/translations
  162. Examples installed to......./Desktop/Qt/4.8.1/mingw-w64-cygw/examples
  163. Demos installed to........../Desktop/Qt/4.8.1/mingw-w64-cygw/demos
  164.  
  165. Running syncqt...
  166. Creating qmake...
  167. g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include/QtCore -IC:\QtSDK\QtSources\4.8.1/include -IC:\QtSDK\QtSources\4.8.1/include/QtCore -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/global -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/xml -IC:\QtSDK\QtSources\4.8.1/mkspecs/win32-g++ -IC:\QtSDK\QtSources\4.8.1/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
  168. del project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o option.o winmakefile.o projectgenerator.o property.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_vcproj.o msvc_vcxproj.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o gbuild.o qbitarray.o qbuffer.o qbytearray.o qcryptographichash.o qvsnprintf.o qbytearraymatcher.o qconfig.o qdatetime.o qdir.o qdiriterator.o qfile.o qtemporaryfile.o qfileinfo.o qabstractfileengine.o qfilesystementry.o qfilesystemengine.o qfilesystemengine_win.o qfilesystemiterator_win.o qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_win.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o qlist.o qlinkedlist.o qlocale.o qlocale_tools.o qlocale_win.o qmalloc.o qmap.o qregexp.o qtextcodec.o qutfcodec.o qstring.o qstringlist.o qsystemlibrary.o qsystemerror.o qtextstream.o quuid.o qvector.o qurl.o qsettings.o qsettings_win.o qvariant.o qmetatype.o qxmlstream.o qxmlutils.o qnumeric.o
  169. g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include/QtCore -IC:\QtSDK\QtSources\4.8.1/include -IC:\QtSDK\QtSources\4.8.1/include/QtCore -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/global -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/xml -IC:\QtSDK\QtSources\4.8.1/mkspecs/win32-g++ -IC:\QtSDK\QtSources\4.8.1/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
  170. Building qmake failed, return code 2
To copy to clipboard, switch view to plain text mode 

Is there anyone here successful compiling Qt 4.8.x with a cygwin environment?

Thanks,
Pierre.