Errors when building QT 4.7.3 from source
-
You need perl in the path, I had the same issue. Download "activeperl":http://www.activestate.com/activeperl/downloads and your problems will go away ;-)
-
ucomesdag:
That helped but there are still 3 or 4 errors:@header created for C:/QtSDK/QtSources/4.7.3/src/qt3support/widgets/q3whatsthis.h
(2)
header created for C:/QtSDK/QtSources/4.7.3/src/qt3support/widgets/q3widgetstack
.h (2)
header (master) created for Qt3Support
headers.pri file created for Qt3Support
Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK
QtSources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK\QtS
ources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/src/corelib/global -IC:\Q
tSDK\QtSources\4.7.3/src/corelib/xml -IC:\QtSDK\QtSources\4.7.3/mkspecs/win32-g+- -IC:\QtSDK\QtSources\4.7.3/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLE
S -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNI
CODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_
GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAK
E_OPENSOURCE_EDITION project.cpp
project.cpp: In member function 'QStringList& QMakeProject::values(const QString
&, QMap<QString, QStringList>&)':
project.cpp:3004: error: 'class QDateTime' has no member named 'toString'
mingw32-make: *** [project.o] Error 1
del project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o option.o win
makefile.o projectgenerator.o property.o meta.o makefiledeps.o metamakefile.o xm
loutput.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 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 qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_wi
n.o qfsfileengine_iterator_win.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o ql
ist.o qlinkedlist.o qlocale.o qmalloc.o qmap.o qregexp.o qtextcodec.o qutfcodec.
o qstring.o qstringlist.o qsystemlibrary.o qtextstream.o quuid.o qvector.o qurl.
o qsettings.o qsettings_win.o qvariant.o qmetatype.o qxmlstream.o qxmlutils.o qn
umeric.o
C:\QtSDK\QtSources\4.7.3\qmake\project.o konnte nicht gefunden werden
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK
QtSources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/include -IC:\QtSDK\QtS
ources\4.7.3/include/QtCore -IC:\QtSDK\QtSources\4.7.3/src/corelib/global -IC:\Q
tSDK\QtSources\4.7.3/src/corelib/xml -IC:\QtSDK\QtSources\4.7.3/mkspecs/win32-g+ - -IC:\QtSDK\QtSources\4.7.3/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLE
S -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNI
CODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_
GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAK
E_OPENSOURCE_EDITION project.cpp
project.cpp: In member function 'QStringList& QMakeProject::values(const QString
&, QMap<QString, QStringList>&)':
project.cpp:3004: error: 'class QDateTime' has no member named 'toString'
mingw32-make: *** [project.o] Error 1
Building qmake failed, return code 2@
- -IC:\QtSDK\QtSources\4.7.3/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLE
-
-
[quote author="Volker" date="1303818302"]
[quote author="ucomesdag" date="1303596988"]Btw the regular sources also seem to need perl for syncqt.[/quote]syncqt is not needed for regular sources. I used to compile Qt myself on windows for years, I had no problems ever.[/quote]
Same here, but because of the issue with the QtSources that come with the SDK I downloaded the regular sources cause I did'nt want to install perl, if I could have lived without it why install it now, and I had exactly the same issue it needed perl. -
syncqt is only needed if the source tree is different from the build tree (according to the configure shell script). I never needed perl on my Windows box when I compiled Qt mysql for a couple of years (always using the regular sources of the framework, no SDK; using MSVS). What are your configure options?
-
[quote author="Volker" date="1304013778"]syncqt is only needed if the source tree is different from the build tree (according to the configure shell script). I never needed perl on my Windows box when I compiled Qt mysql for a couple of years (always using the regular sources of the framework, no SDK; using MSVS). What are your configure options?[/quote]
None as I always used when compiling from source. -
I just ran two configure sessions for Qt 4.7.3, and all went without any problems.
Setup:
- Installed Qt Creator 2.2.0
- downloaded qt-everywhere-commercial-src-4.7.3.tar.gz (the open source should be fairly identical, except of licensing files)
- extract the archive
- cd into the extracted directory
- ran .\configure.exe in Visual Studio 2008 command prompt
- opened cmd.exe, put C:\Qt\qtcreator-2.2.0\mingw\bin into PATH and ran .\configure.exe -platform win32-g++ -qconfig minimal
No hassles with missing perl (it is not installed!) in both cases, no call of syncqt.