Cucus
16th August 2011, 15:01
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:
C:\QtSDK\QtSources\4.7.3static>configure -static
Which edition of Qt do you want to use ?
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
o
This is the Qt for Windows Open Source Edition.
You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 2.1.
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.
Do you accept the terms of the license?
y
WARNING: Using static linking will disable the WebKit module.
Environment:
INCLUDE=
Unset
LIB=
Unset
PATH=
C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin
C:\QtSDK\mingw\bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files\MATLAB\R2009a\bin
C:\Program Files\MATLAB\R2009a\bin\win32
C:\LT\DLLwithEXE
C:\Program Files\Creaform\VXelements\
C:\Program Files\Creaform\VXelements\CTS
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
C:\Program Files\Druide\Antidote
You are licensed to use this software under the terms of the GNU GPL version 3.Y
ou are licensed to use this software under the terms of the Lesser GNU LGPL vers
ion 2.1.
See C:/QtSDK/QtSources/4.7.3static3
or C:/QtSDK/QtSources/4.7.3staticL
Configuration:
minimal-config
small-config
medium-config
large-config
full-config
build_all
debug
Qt Configuration:
release
debug
zlib
gif
tiff
jpeg
png
mng
accessibility
qt3support
opengl
s60
ipv6
script
scripttools
xmlpatterns
phonon
phonon-backend
multimedia
audio-backend
declarative
native-gestures
svg
minimal-config
small-config
medium-config
large-config
full-config
QMAKESPEC...................win32-g++ (detected)
Architecture................windows
Maketool....................mingw32-make
Debug symbols...............yes
Link Time Code Generation...no
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............yes
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
OpenVG support..............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............yes
QtMultimedia support........yes
WebKit support..............no
Declarative support.........yes
Declarative debugging.......yes
QtScript support............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........yes
Third Party Libraries:
ZLIB support............qt
GIF support.............yes
TIFF support............yes
JPEG support............yes
PNG support.............yes
MNG support.............yes
FreeType support........no
Styles:
Windows.................yes
Windows XP..............yes
Windows Vista...........yes
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no
S60.....................no
Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................yes (qt)
SQLite2.................no
InterBase...............no
Sources are in..............C:\QtSDK\QtSources\4.7.3static
Build is done in............C:\QtSDK\QtSources\4.7.3static
Install prefix..............C:\QtSDK\QtSources\4.7.3static
Headers installed to........C:/QtSDK/QtSources/4.7.3static/include
Libraries installed to......C:/QtSDK/QtSources/4.7.3static/lib
Plugins installed to........C:/QtSDK/QtSources/4.7.3static/plugins
Imports installed to........C:/QtSDK/QtSources/4.7.3static/imports
Binaries installed to.......C:/QtSDK/QtSources/4.7.3static/bin
Docs installed to...........C:/QtSDK/QtSources/4.7.3static/doc
Data installed to...........C:/QtSDK/QtSources/4.7.3static
Translations installed to...C:/QtSDK/QtSources/4.7.3static/translations
Examples installed to.......C:/QtSDK/QtSources/4.7.3static/examples
Demos installed to..........C:/QtSDK/QtSources/4.7.3static/demos
WARNING: Using static linking will disable the use of plugins.
Make sure you compile ALL needed modules into the library.
Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3static/include -IC:\
QtSDK\QtSources\4.7.3static/include/QtCore -IC:\QtSDK\QtSources\4.7.3static/incl
ude -IC:\QtSDK\QtSources\4.7.3static/include/QtCore -IC:\QtSDK\QtSources\4.7.3st
atic/src/corelib/global -IC:\QtSDK\QtSources\4.7.3static/src/corelib/xml -IC:\Qt
SDK\QtSources\4.7.3static/mkspecs/win32-g++ -IC:\QtSDK\QtSources\4.7.3static/too
ls/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PC
RE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUI
LD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM
-DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
In file included from project.cpp:42:
project.h:45:25: error: qstringlist.h: No such file or directory
project.h:46:25: error: qtextstream.h: No such file or directory
project.h:47:21: error: qstring.h: No such file or directory
project.h:48:20: error: qstack.h: No such file or directory
project.h:49:18: error: qmap.h: No such file or directory
project.h:50:23: error: qmetatype.h: No such file or directory
In file included from property.h:45,
from project.cpp:43:
C:\QtSDK\QtSources\4.7.3static/src/corelib/global/qglobal.h:62:28: error: QtCore
/qconfig.h: No such file or directory
.............................................
mingw32-make: *** [project.o] Error 1
Building qmake failed, return code 2
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):
echo off
echo Setting up environment for Qt usage...
set QTDIR=C:\QtSDK\Desktop\Qt\4.7.3\mingw
set PATH=C:\QtSDK\mingw\bin;%PATH%
set PATH=%QTDIR%\bin;%PATH%
Thanks in advance!!
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:
C:\QtSDK\QtSources\4.7.3static>configure -static
Which edition of Qt do you want to use ?
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
o
This is the Qt for Windows Open Source Edition.
You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 2.1.
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.
Do you accept the terms of the license?
y
WARNING: Using static linking will disable the WebKit module.
Environment:
INCLUDE=
Unset
LIB=
Unset
PATH=
C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin
C:\QtSDK\mingw\bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files\MATLAB\R2009a\bin
C:\Program Files\MATLAB\R2009a\bin\win32
C:\LT\DLLwithEXE
C:\Program Files\Creaform\VXelements\
C:\Program Files\Creaform\VXelements\CTS
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
C:\Program Files\Druide\Antidote
You are licensed to use this software under the terms of the GNU GPL version 3.Y
ou are licensed to use this software under the terms of the Lesser GNU LGPL vers
ion 2.1.
See C:/QtSDK/QtSources/4.7.3static3
or C:/QtSDK/QtSources/4.7.3staticL
Configuration:
minimal-config
small-config
medium-config
large-config
full-config
build_all
debug
Qt Configuration:
release
debug
zlib
gif
tiff
jpeg
png
mng
accessibility
qt3support
opengl
s60
ipv6
script
scripttools
xmlpatterns
phonon
phonon-backend
multimedia
audio-backend
declarative
native-gestures
svg
minimal-config
small-config
medium-config
large-config
full-config
QMAKESPEC...................win32-g++ (detected)
Architecture................windows
Maketool....................mingw32-make
Debug symbols...............yes
Link Time Code Generation...no
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............yes
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
OpenVG support..............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............yes
QtMultimedia support........yes
WebKit support..............no
Declarative support.........yes
Declarative debugging.......yes
QtScript support............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........yes
Third Party Libraries:
ZLIB support............qt
GIF support.............yes
TIFF support............yes
JPEG support............yes
PNG support.............yes
MNG support.............yes
FreeType support........no
Styles:
Windows.................yes
Windows XP..............yes
Windows Vista...........yes
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no
S60.....................no
Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................yes (qt)
SQLite2.................no
InterBase...............no
Sources are in..............C:\QtSDK\QtSources\4.7.3static
Build is done in............C:\QtSDK\QtSources\4.7.3static
Install prefix..............C:\QtSDK\QtSources\4.7.3static
Headers installed to........C:/QtSDK/QtSources/4.7.3static/include
Libraries installed to......C:/QtSDK/QtSources/4.7.3static/lib
Plugins installed to........C:/QtSDK/QtSources/4.7.3static/plugins
Imports installed to........C:/QtSDK/QtSources/4.7.3static/imports
Binaries installed to.......C:/QtSDK/QtSources/4.7.3static/bin
Docs installed to...........C:/QtSDK/QtSources/4.7.3static/doc
Data installed to...........C:/QtSDK/QtSources/4.7.3static
Translations installed to...C:/QtSDK/QtSources/4.7.3static/translations
Examples installed to.......C:/QtSDK/QtSources/4.7.3static/examples
Demos installed to..........C:/QtSDK/QtSources/4.7.3static/demos
WARNING: Using static linking will disable the use of plugins.
Make sure you compile ALL needed modules into the library.
Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3static/include -IC:\
QtSDK\QtSources\4.7.3static/include/QtCore -IC:\QtSDK\QtSources\4.7.3static/incl
ude -IC:\QtSDK\QtSources\4.7.3static/include/QtCore -IC:\QtSDK\QtSources\4.7.3st
atic/src/corelib/global -IC:\QtSDK\QtSources\4.7.3static/src/corelib/xml -IC:\Qt
SDK\QtSources\4.7.3static/mkspecs/win32-g++ -IC:\QtSDK\QtSources\4.7.3static/too
ls/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PC
RE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUI
LD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM
-DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
In file included from project.cpp:42:
project.h:45:25: error: qstringlist.h: No such file or directory
project.h:46:25: error: qtextstream.h: No such file or directory
project.h:47:21: error: qstring.h: No such file or directory
project.h:48:20: error: qstack.h: No such file or directory
project.h:49:18: error: qmap.h: No such file or directory
project.h:50:23: error: qmetatype.h: No such file or directory
In file included from property.h:45,
from project.cpp:43:
C:\QtSDK\QtSources\4.7.3static/src/corelib/global/qglobal.h:62:28: error: QtCore
/qconfig.h: No such file or directory
.............................................
mingw32-make: *** [project.o] Error 1
Building qmake failed, return code 2
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):
echo off
echo Setting up environment for Qt usage...
set QTDIR=C:\QtSDK\Desktop\Qt\4.7.3\mingw
set PATH=C:\QtSDK\mingw\bin;%PATH%
set PATH=%QTDIR%\bin;%PATH%
Thanks in advance!!