Results 1 to 5 of 5

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

  1. #1
    Join Date
    Mar 2008
    Posts
    10
    Thanks
    1

    Red face can't create qmake when installing at windows XP with win32-g++

    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.
    Last edited by jpn; 23rd March 2008 at 19:18. Reason: missing [quote] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: can't create qmake when installing at windows XP with win32-g++

    What parameters did you pass to configure? Could you post the first error messages you get?

  3. #3
    Join Date
    Mar 2008
    Posts
    10
    Thanks
    1

    Smile Re: can't create qmake when installing at windows XP with win32-g++

    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~~
    Last edited by jpn; 23rd March 2008 at 19:19. Reason: missing [quote] tags

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: can't create qmake when installing at windows XP with win32-g++

    Quote Originally Posted by owen_263 View Post
    ...
    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?

  5. The following user says thank you to jacek for this useful post:

    owen_263 (31st March 2008)

  6. #5
    Join Date
    Mar 2008
    Posts
    10
    Thanks
    1

    Smile Re: can't create qmake when installing at windows XP with win32-g++

    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~

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.