PDA

View Full Version : can't create qmake when installing at windows XP with win32-g++



owen_263
21st March 2008, 01:09
When i was installing qt at windows XP, it reported compiling errors.
Here is the exerpt at last:


D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qhash.h:557:
instantiated from `void QHash<Key, T>::detach_helper() [with Key =
QString, T = QHashDummyValue]'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qhash.h:273:
instantiated from `void QHash<Key, T>::detach() [with Key = QString, T
= QHashDummyValue]'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qhash.h:257:
instantiated from `QHash<Key, T>::QHash(const QHash<Key, T>&) [with
Key = QString, T = QHashDummyValue]'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qset.h:60:
instantiated from `QSet<T>::QSet(const QSet<T>&) [with T = QString]'
project.cpp:1246: instantiated from here
<internal>:493: too many arguments to function `void* operator
new(unsigned int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qhash.h:493: at
this point in file
<internal>:495: too many arguments to function `void* operator
new(unsigned int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qhash.h:495: at
this point in file
mingw32-make: *** [project.o] Error 1

Your help will be highly appreciated.

jacek
21st March 2008, 10:58
What parameters did you pass to configure? Could you post the first error messages you get?

owen_263
23rd March 2008, 01:28
Thanks for replying.

The parameters are like this:

configure -platform win32-g++

And here is the error begins:


Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -ID:\Batch\qt-win-opensource-src-4.3.4/src/corelib/arch/generic -ID:\Batch\qt-win-opensource-src-4.3.4/include -ID:\Batch\qt-win-opensource-src-4.3.4/include/QtCore -ID:\Batch\qt-win-opensource-src-4.3.4/include -ID:\Batch\qt-win-opensource-src-4.3.4/include/QtCore -ID:\Batch\qt-win-opensource-src-4.3.4/src/corelib/global -ID:\Batch\qt-win-opensource-src-4.3.4/include/QtScript -ID:\Batch\qt-win-opensource-src-4.3.4/mkspecs/win32-g++ -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 -DQMAKE_OPENSOURCE_EDITION project.cpp
In file included from D:/Batch/qt-win-opensource-src-4.3.4/include/QtCore/qlist.h:1,
from D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qstringlist.h:49,
from D:/Batch/qt-win-opensource-src-4.3.4/include/QtCore/qstringlist.h:1,
from project.h:47,
from project.cpp:44:
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qlist.h:56:15: new: No such file or directory
In file included from D:/Batch/qt-win-opensource-src-4.3.4/include/QtCore/qmap.h:1,
from project.h:51,
from project.cpp:44:
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:55:15: new: No such file or directory
<internal>: In member function `QMapData::Node* QMap<Key,
T>::node_create(QMapData*, QMapData::Node**, const Key&, const T&) [with Key
= QString, T = ExpandFunc]':
project.cpp:507: instantiated from `QMap<Key, T>::iterator QMap<Key, T>::insert(const Key&, const T&) [with Key = QString, T = ExpandFunc]'
project.cpp:84: instantiated from here
<internal>:415: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:415: at this
point in file
<internal>:416: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:416: at this
point in file
<internal>: In member function `QMapData::Node* QMap<Key,
T>::node_create(QMapData*, QMapData::Node**, const Key&, const T&) [with Key
= QString, T = TestFunc]':
project.cpp:507: instantiated from `QMap<Key, T>::iterator QMap<Key, T>::insert(const Key&, const T&) [with Key = QString, T = TestFunc]'
project.cpp:122: instantiated from here
<internal>:415: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:415: at this
point in file
<internal>:416: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:416: at this
point in file
In file included from project.cpp:167:
<internal>: In member function `QMapData::Node* QMap<Key,
T>::node_create(QMapData*, QMapData::Node**, const Key&, const T&) [with Key
= QString, T = QStringList]':
project.cpp:474: instantiated from `T& QMap<Key, T>::operator[](const Key&) [with Key = QString, T = QStringList]'
project.cpp:167: instantiated from here
<internal>:415: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:415: at this
point in file
<internal>:416: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:416: at this
point in file
<internal>: In member function `QMapData::Node* QMap<Key,
T>::node_create(QMapData*, QMapData::Node**, const Key&, const T&) [with Key
= QString, T = FunctionBlock*]':
project.cpp:507: instantiated from `QMap<Key, T>::iterator QMap<Key, T>::insert(const Key&, const T&) [with Key = QString, T = FunctionBlock*]'
project.cpp:766: instantiated from here
<internal>:415: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:415: at this
point in file
<internal>:416: too many arguments to function `void* operator new(unsigned
int)'
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:416: at this
point in file
In file included from project.cpp:730:
<internal>: In member function `QHashNode<Key, T>* QHash<Key,
T>::createNode(unsigned int, const Key&, const T&, QHashNode<Key, T>**)
[with Key = QString, T = bool]':
...
...

Thanks a lot~~

jacek
23rd March 2008, 15:18
...
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qlist.h:56:15: new: No such file or directory
...
D:/Batch/qt-win-opensource-src-4.3.4/src/corelib/tools/qmap.h:55:15: new: No such file or directory
It looks like there's something wrong with your MinGW installation. How did you install MinGW?

owen_263
31st March 2008, 07:39
Thanks for your help. I reconfigured my MinGW installation and qt compiled successfully. It took me about 3 hours and ended in a ld error. I will check it myself before i post another question here.
Anyway, Thanks again for your help~