[vtkusers] Error in Compilation of Gui\Qt\Events Example

Emma Ryan eryanvtk at yahoo.com
Tue Oct 24 01:53:00 EDT 2006


I get the following error when trying to compile the QtVtk examples from the GUI\Qt directory.  Except for the init function (which I dont see in the .ui.h file) , all the otehr errors should not be present.  The variables are declared in the gui.h file. Nevertheless I get the following error.

Any clue as to what I should do ?  Or what may be the problem ?

Thanks in advance,
Emma



:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(39) : error C2039: 'init' : is not a member of 'Form1'
        C:/netprograms/VTK/Examples/GUI/Qt/Events/GUI.h(30) : see declaration of 'Form1'
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(44) : error C2065: 'qVTK1' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(44) : error C2227: left of '->SetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(48) : error C2065: 'ren1' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(48) : error C2440: '=' : cannot convert from 'class vtkRenderer *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(49) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(49) : error C2227: left of '->AddRenderer' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(56) : error C2065: 'connect' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(56) : error C2673: 'init' : global functions do not have 'this' pointers
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(64) : error C2227: left of '->AddViewProp' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(72) : error C2065: 'qVTK2' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(72) : error C2227: left of '->SetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(76) : error C2065: 'ren2' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(76) : error C2440: '=' : cannot convert from 'class vtkRenderer *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(77) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(77) : error C2227: left of '->AddRenderer' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(84) : error C2673: 'init' : global functions do not have 'this' pointers
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(92) : error C2227: left of '->AddViewProp' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(98) : error C2065: 'connections' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(98) : error C2440: '=' : cannot convert from 'class vtkEventQtSlotConnect *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(101) : error C2227: left of '->Connect' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(101) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(101) : error C2227: left of '->GetInteractor' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(103) : error C2673: 'init' : global functions do not have 'this' pointers
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(108) : error C2227: left of '->Connect' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(108) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(108) : error C2227: left of '->GetInteractor' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(110) : error C2673: 'init' : global functions do not have 'this' pointers
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(115) : error C2227: left of '->Connect' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(115) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(115) : error C2227: left of '->GetInteractor' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(117) : error C2065: 'radio1' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(121) : error C2227: left of '->Connect' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(121) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(121) : error C2227: left of '->GetInteractor' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(123) : error C2065: 'radio2' : undeclared identifier
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(127) : error C2227: left of '->Connect' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(127) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(127) : error C2227: left of '->GetInteractor' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(129) : error C2673: 'init' : global functions do not have 'this' pointers
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(133) : error C2227: left of '->Connect' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(133) : error C2227: left of '->GetRenderWindow' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(133) : error C2227: left of '->GetInteractor' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(135) : error C2673: 'init' : global functions do not have 'this' pointers
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(138) : error C2227: left of '->PrintSelf' must point to class/struct/union
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.ui.h(143) : error C2509: 'destroy' : member function not declared in 'Form1'
        C:/netprograms/VTK/Examples/GUI/Qt/Events/GUI.h(30) : see declaration of 'Form1'
C:\netprograms\VTK\Examples\GUI\Qt\Events\GUI.cxx(31) : warning C4114: same type qualifier used more than once
moc_GUI.cxx
Generating Code...
Error executing cl.exe.

ALL_BUILD - 46 error(s), 1 warning(s)



 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061023/4cfe775f/attachment.htm>


More information about the vtkusers mailing list