PDA

View Full Version : QVistaHelper build error



jhearon
28th June 2007, 20:41
Hi,
New to this list. Sorry if this is not the appropriate place to post build errors.
Trying to build qt4.3 on vista using msvc2005 (vc8), w MS sdk. Managed to get qmake built, .pro files created, etc. but stuck on some strange tmp file complaining about 'QVistaHelper'. Anyone happen to run into this before? Is it perhaps something to do with the debug option?

thank you.
-----
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
v:\temp\qt-all-opensource-src-4.3.0\qt-all-opensource-src-4.3.0\include\
qtcore\../../src/corelib/kernel/qobject.h(94) : 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
v:\temp\qt-all-opensource-src-4.3.0\qt-all-opensource-src-4.3.0\include\
qtcore\../../src/corelib/kernel/qobject.h(94) : see declaration of 'QObject::qt_
metacall'
moc_qaccessibleplugin.cpp
moc_qlistview.cpp
moc_qabstractitemdelegate.cpp
moc_qlistwidget_p.cpp
moc_qtablewidget_p.cpp
moc_qtreewidget_p.cpp
moc_qabstractproxymodel.cpp
moc_qstringlistmodel.cpp
moc_qcolumnviewgrip_p.cpp
moc_qinputcontextplugin.cpp
moc_qinputcontext.cpp
moc_qwininputcontext_p.cpp
moc_qgraphicsitemanimation.cpp
moc_qsystemtrayicon.cpp
moc_qcompleter_p.cpp
moc_qundogroup.cpp
moc_qundostack.cpp
Generating Code...
Compiling...
moc_qundostack_p.cpp
moc_qundoview.cpp
Generating Code...
NMAKE : fatal error U1077: '"V:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"V:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

V:\Temp\qt-all-opensource-src-4.3.0\qt-all-opensource-src-4.3.0>

jpn
28th June 2007, 21:46
Try searching the forums for "QVistaHelper (http://www.qtcentre.org/forum/f-installation-5/t-qt430-build-on-winxp-sp2-using-vc2003-qvistahelper-7589.html)".

svha
30th September 2007, 08:05
I'm currently on windows XP and using qt4.3.1 and Visual Studio 2005 Express.
I have workarounded the problem with following steps:

1. Delete the last qt-compilation with:
nmake clean
2. Build a new qt and disable style windowsvista:
qconfigure msvc2005 -debug -no-style-windowsvista
3. Do Build
nmake

Kind regards