Hi everyone,

I'm trying to qmake a static version from the original 4.7.3. I've been looking around for a while, trying lots of things but I don't know where does my problem come from.

I copy paste the source code of the 4.7.3 to make a new static version
from: C:\QtSDK\QtSources\4.7.3
to : C:\QtSDK\QtSources\4.7.3static

i execute the command:
C:\QtSDK\QtSources\4.7.3static>configure -static

And I get loooooooooots of errors, it looks like it is not linking properly:
Qt Code:
  1. C:\QtSDK\QtSources\4.7.3static>configure -static
  2. Which edition of Qt do you want to use ?
  3. Type 'c' if you want to use the Commercial Edition.
  4. Type 'o' if you want to use the Open Source Edition.
  5. o
  6.  
  7. This is the Qt for Windows Open Source Edition.
  8.  
  9. You are licensed to use this software under the terms of
  10. the GNU Lesser General Public License (LGPL) version 2.1.
  11.  
  12. Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
  13. Type 'y' to accept this license offer.
  14. Type 'n' to decline this license offer.
  15.  
  16. Do you accept the terms of the license?
  17. y
  18.  
  19. WARNING: Using static linking will disable the WebKit module.
  20.  
  21. Environment:
  22. INCLUDE=
  23. Unset
  24. LIB=
  25. Unset
  26. PATH=
  27. C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin
  28. C:\QtSDK\mingw\bin
  29. C:\Windows\system32
  30. C:\Windows
  31. C:\Windows\System32\Wbem
  32. C:\Windows\System32\WindowsPowerShell\v1.0\
  33. C:\Program Files\MATLAB\R2009a\bin
  34. C:\Program Files\MATLAB\R2009a\bin\win32
  35. C:\LT\DLLwithEXE
  36. C:\Program Files\Creaform\VXelements\
  37. C:\Program Files\Creaform\VXelements\CTS
  38. c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
  39. c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
  40. C:\Program Files\Druide\Antidote
  41. You are licensed to use this software under the terms of the GNU GPL version 3.Y
  42. ou are licensed to use this software under the terms of the Lesser GNU LGPL vers
  43. ion 2.1.
  44. See C:/QtSDK/QtSources/4.7.3static3
  45.  
  46. or C:/QtSDK/QtSources/4.7.3staticL
  47.  
  48. Configuration:
  49. minimal-config
  50. small-config
  51. medium-config
  52. large-config
  53. full-config
  54. build_all
  55. debug
  56. Qt Configuration:
  57. release
  58. debug
  59. zlib
  60. gif
  61. tiff
  62. jpeg
  63. png
  64. mng
  65. accessibility
  66. qt3support
  67. opengl
  68. s60
  69. ipv6
  70. script
  71. scripttools
  72. xmlpatterns
  73. phonon
  74. phonon-backend
  75. multimedia
  76. audio-backend
  77. declarative
  78. native-gestures
  79. svg
  80. minimal-config
  81. small-config
  82. medium-config
  83. large-config
  84. full-config
  85.  
  86. QMAKESPEC...................win32-g++ (detected)
  87. Architecture................windows
  88. Maketool....................mingw32-make
  89. Debug symbols...............yes
  90. Link Time Code Generation...no
  91. Accessibility support.......yes
  92. STL support.................yes
  93. Exception support...........yes
  94. RTTI support................yes
  95. MMX support.................yes
  96. 3DNOW support...............yes
  97. SSE support.................yes
  98. SSE2 support................yes
  99. IWMMXT support..............no
  100. OpenGL support..............yes
  101. OpenVG support..............no
  102. OpenSSL support.............no
  103. QtDBus support..............no
  104. QtXmlPatterns support.......yes
  105. Phonon support..............yes
  106. QtMultimedia support........yes
  107. WebKit support..............no
  108. Declarative support.........yes
  109. Declarative debugging.......yes
  110. QtScript support............yes
  111. QtScriptTools support.......yes
  112. Graphics System.............raster
  113. Qt3 compatibility...........yes
  114.  
  115. Third Party Libraries:
  116. ZLIB support............qt
  117. GIF support.............yes
  118. TIFF support............yes
  119. JPEG support............yes
  120. PNG support.............yes
  121. MNG support.............yes
  122. FreeType support........no
  123.  
  124. Styles:
  125. Windows.................yes
  126. Windows XP..............yes
  127. Windows Vista...........yes
  128. Plastique...............yes
  129. Cleanlooks..............yes
  130. Motif...................yes
  131. CDE.....................yes
  132. Windows CE..............no
  133. Windows Mobile..........no
  134. S60.....................no
  135.  
  136. Sql Drivers:
  137. ODBC....................no
  138. MySQL...................no
  139. OCI.....................no
  140. PostgreSQL..............no
  141. TDS.....................no
  142. DB2.....................no
  143. SQLite..................yes (qt)
  144. SQLite2.................no
  145. InterBase...............no
  146.  
  147. Sources are in..............C:\QtSDK\QtSources\4.7.3static
  148. Build is done in............C:\QtSDK\QtSources\4.7.3static
  149. Install prefix..............C:\QtSDK\QtSources\4.7.3static
  150. Headers installed to........C:/QtSDK/QtSources/4.7.3static/include
  151. Libraries installed to......C:/QtSDK/QtSources/4.7.3static/lib
  152. Plugins installed to........C:/QtSDK/QtSources/4.7.3static/plugins
  153. Imports installed to........C:/QtSDK/QtSources/4.7.3static/imports
  154. Binaries installed to.......C:/QtSDK/QtSources/4.7.3static/bin
  155. Docs installed to...........C:/QtSDK/QtSources/4.7.3static/doc
  156. Data installed to...........C:/QtSDK/QtSources/4.7.3static
  157. Translations installed to...C:/QtSDK/QtSources/4.7.3static/translations
  158. Examples installed to.......C:/QtSDK/QtSources/4.7.3static/examples
  159. Demos installed to..........C:/QtSDK/QtSources/4.7.3static/demos
  160.  
  161. WARNING: Using static linking will disable the use of plugins.
  162. Make sure you compile ALL needed modules into the library.
  163. Creating qmake...
  164. g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
  165. nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3static/include -IC:\
  166. QtSDK\QtSources\4.7.3static/include/QtCore -IC:\QtSDK\QtSources\4.7.3static/incl
  167. ude -IC:\QtSDK\QtSources\4.7.3static/include/QtCore -IC:\QtSDK\QtSources\4.7.3st
  168. atic/src/corelib/global -IC:\QtSDK\QtSources\4.7.3static/src/corelib/xml -IC:\Qt
  169. SDK\QtSources\4.7.3static/mkspecs/win32-g++ -IC:\QtSDK\QtSources\4.7.3static/too
  170. ls/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PC
  171. RE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUI
  172. LD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM
  173. -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
  174.  
  175. In file included from project.cpp:42:
  176. project.h:45:25: error: qstringlist.h: No such file or directory
  177. project.h:46:25: error: qtextstream.h: No such file or directory
  178. project.h:47:21: error: qstring.h: No such file or directory
  179. project.h:48:20: error: qstack.h: No such file or directory
  180. project.h:49:18: error: qmap.h: No such file or directory
  181. project.h:50:23: error: qmetatype.h: No such file or directory
  182. In file included from property.h:45,
  183. from project.cpp:43:
  184. C:\QtSDK\QtSources\4.7.3static/src/corelib/global/qglobal.h:62:28: error: QtCore
  185. /qconfig.h: No such file or directory
  186.  
  187. .............................................
  188.  
  189. mingw32-make: *** [project.o] Error 1
  190. Building qmake failed, return code 2
To copy to clipboard, switch view to plain text mode 


I don't know if that could be a problem with the paths, I checked and run the qtenv.bat file, it looks like this (which correspond to the correct paths):
Qt Code:
  1. echo off
  2. echo Setting up environment for Qt usage...
  3. set QTDIR=C:\QtSDK\Desktop\Qt\4.7.3\mingw
  4. set PATH=C:\QtSDK\mingw\bin;%PATH%
  5. set PATH=%QTDIR%\bin;%PATH%
To copy to clipboard, switch view to plain text mode 

Thanks in advance!!