Results 1 to 2 of 2

Thread: Qt4.3.0 build on WinXP SP2 using VC++2003 - QVistaHelper???

  1. #1
    Join Date
    Feb 2006
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qt4.3.0 build on WinXP SP2 using VC++2003 - QVistaHelper???

    Hi

    I'm trying to build Qt4.3.0 commercial on my laptop which uses WinXP SP2 compiling with VStudio 2003. Using the Visual Studio .Net2003 command prompt after configuring

    configure -debug -stl -rtti -qt-style-windowsxp -shared - exceptions

    I type NMake which fails at some point with the following

    cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fptmp\obj\debug_shared\QtGuid_pch
    .pch -nologo -Zm300 -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc -DQT_SHARED -DQT_THRE
    AD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_EDITION=QT_EDITION_DESK
    TOP -DQT_BUILD_GUI_LIB -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNIN
    GS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DQT_RASTER_IMAGEENGINE -DQ
    T_RASTER_PAINTENGINE -DQT_NO_CUPS -DQT_NO_LPR -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT
    _HAVE_SSE -DQT_HAVE_SSE2 -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQ
    _INTERNAL_QAPP_SRC -DQT_DLL -DQT_CORE_LIB -I"..\..\include\QtCore" -I"..\..\incl
    ude\QtCore" -I"..\..\include" -I"..\..\include\QtGui" -I"tmp" -I"..\3rdparty\win
    tab" -I"..\3rdparty\libpng" -I"..\3rdparty\zlib" -I"dialogs" -I"..\..\include\Ac
    tiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\mkspecs\win32-msvc.net" -Fotmp\o
    bj\debug_shared\ @C:\DOCUME~1\irudkin.TG\LOCALS~1\Temp\nm23A.tmp
    moc_qwizard_win_p.cpp
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(36) : error C2653: 'QVistaHelper' : i
    s not a class or namespace name
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(41) : error C2653: 'QVistaHelper' : i
    s not a class or namespace name
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(42) : error C2270: 'metaObject' : mod
    ifiers not allowed on nonmember functions
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(46) : error C2653: 'QVistaHelper' : i
    s not a class or namespace name
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(50) : error C2061: syntax error : ide
    ntifier 'QVistaHelper'
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(50) : error C2146: syntax error : mis
    sing '(' before identifier 'QVistaHelper'
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(51) : error C2352: 'QObject::qt_metac
    ast' : illegal call of non-static member function
    c:\Qt\4.3.0\include\QtCore\../../src\corelib\kernel\qobject.h(92) : see
    declaration of 'QObject::qt_metacast'
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(54) : error C2653: 'QVistaHelper' : i
    s not a class or namespace name
    tmp\moc\debug_shared\moc_qwizard_win_p.cpp(56) : error C2352: 'QObject::qt_metac
    all' : illegal call of non-static member function
    c:\Qt\4.3.0\include\QtCore\../../src\corelib\kernel\qobject.h(92) : see
    declaration of 'QObject::qt_metacall'
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
    VC7\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    I can compile with the same Qt config setting on another XP OS PC and it compiles with no problem. Why is this failing? Thanks

    Cya Illya

  2. #2
    Join Date
    Feb 2006
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4.3.0 build on WinXP SP2 using VC++2003 - QVistaHelper???

    Hi

    It is a bug in the Qt 4.3.0 installation. A temp fix thing to do until Qt4.3.1 if you come across this problem is to type in the Qt directory "del /s qconfig.h", then configure and build again.

    Cya Illya

  3. The following user says thank you to irudkin for this useful post:

    manish prasad (14th August 2007)

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.