Results 1 to 5 of 5

Thread: Cannot compile in Suse. OK with mingw and studio 2005 on Windows XP.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Location
    SW London, UK
    Posts
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Cannot compile in Suse. OK with mingw and studio 2005 on Windows XP.

    Program compiles in Studio 2005 and with mingw on Windows so I think it has to be something to do with how qmake works in Linux.

    I'm using qt 4.3.3 on Suse Linux 10.3 (have tried earlier versions also).

    Previous version of the program compiled OK on both Windows and Linux. I have added cImg template libarary and also a custom widget (modelled on the icon editor in C++ GUI Programming with Qt4)

    Other people (not here, I don't think) seem to have had the problem and one of the suggestions I tried was a hack that #undefs the offending items. That did not seem to make any difference and, in any case, would not be a very good fix to my way of thinking!

    Many thanks in advance.


    Errors as follows (4.3.2 version - 4.3.3 is similar)

    cd '/home/david/Neo/Neo' && gmake
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.2/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.3.2/include/QtCore -I/usr/local/Trolltech/Qt-4.3.2/include/QtGui -I/usr/local/Trolltech/Qt-4.3.2/include -I. -o Column.o Column.cpp
    In file included from /usr/local/Trolltech/Qt-4.3.2/include/QtCore/qmetatype.h:46,
    from /usr/local/Trolltech/Qt-4.3.2/include/QtCore/qvariant.h:45,
    from /usr/local/Trolltech/Qt-4.3.2/include/QtCore/QVariant:1,
    from ui_MPF.h:13,
    from InOut.h:25,
    from NeoRegion.h:26,
    from Column.h:27,
    from Column.cpp:24:
    /usr/local/Trolltech/Qt-4.3.2/include/QtCore/qdatastream.h:46:2: error: #error qdatastream.h must be included before any header file that defines Status
    In file included from /usr/local/Trolltech/Qt-4.3.2/include/QtCore/qvariant.h:45,
    from /usr/local/Trolltech/Qt-4.3.2/include/QtCore/QVariant:1,
    from ui_MPF.h:13,
    from InOut.h:25,
    from NeoRegion.h:26,
    from Column.h:27,
    from Column.cpp:24:
    /usr/local/Trolltech/Qt-4.3.2/include/QtCore/qmetatype.h:50:2: error: #error qmetatype.h must be included before any header file that defines Bool
    Last edited by jpn; 28th December 2007 at 18:55. Reason: missing [quote] tags

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.