[vtkusers] Installing VtkQt problem

Jacey-Lynn Minoi jlminoi at doc.ic.ac.uk
Mon Dec 19 15:13:16 EST 2005


Hi,
 
 I've installed 'vtkqt cmake' from
 http://staff.science.uva.nl/~dshamoni/VtkQt/ 
 for Unix,
 and I followed the instruction given in the INSTALL file. 
 I managed to ccmake the CMakeLists.txt but when executing 'make'/'make 
 install', it gave me plenty of error msges such as
 
-----------------------------
In file included from /homes/VtkQta/src/vtkQtImageViewer.cxx:16:
/homes/VtkQta/src/vtkQtImageViewer.h:20:18: qgl.h: No such file or directory
In file included from /homes/jlminoi/VtkQta/src/vtkQtImageViewer.cxx:16:
/homes/VtkQta/src/vtkQtImageViewer.h:22: parse error before `,' token
/homes/VtkQta/src/vtkQtImageViewer.h:27: parse error before `*' token
/homes/VtkQta/src/vtkQtImageViewer.h:28: destructors must be member functions
/homes/VtkQta/src/vtkQtImageViewer.h: In function `void SetPosition(int*)':
/homes/VtkQta/src/vtkQtImageViewer.h:37: invalid use of `this' in non-member
function
/homes/VtkQta/src/vtkQtImageViewer.h: In function `void SetInitializeResize(bool)':
/homes/VtkQta/src/vtkQtImageViewer.h:39: `InitializeResize' undeclared (first
use this function)
/homes/VtkQta/src/vtkQtImageViewer.h:39: (Each undeclared identifier is reported
only once for each function it appears in.)
/homes/VtkQta/src/vtkQtImageViewer.h: At global scope:
/homes/VtkQta/src/vtkQtImageViewer.h:41: parse error before `public'
/homes/VtkQta/src/vtkQtImageViewer.h:52: `bool InitializeResize' used prior to
declaration
/homes/VtkQta/src/vtkQtImageViewer.h:54: parse error before `private'
/homes/VtkQta/src/vtkQtImageViewer.h:56: parse error before `&' token
/homes/VtkQta/src/vtkQtImageViewer.h:56: `void operator=(...)' must be a
nonstatic member function
/homes/VtkQta/src/vtkQtImageViewer.h:56: `void operator=(...)' must take exactly
two arguments
/homes/VtkQta/src/vtkQtImageViewer.cxx:18: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx: In constructor
`vtkQtImageViewer::vtkQtImageViewer()':
/homes/VtkQta/src/vtkQtImageViewer.cxx:18: class `vtkQtImageViewer' does not
have any field named `QGLWidget'
/homes/VtkQta/src/vtkQtImageViewer.cxx:20: `FALSE' undeclared (first use this
function)
/homes/VtkQta/src/vtkQtImageViewer.cxx:22: `qt_xdisplay' undeclared (first use
this function)
/homes/VtkQta/src/vtkQtImageViewer.cxx:22: no method
`vtkQtImageViewer::SetDisplayId'
/homes/VtkQta/src/vtkQtImageViewer.cxx:23: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx:23: no method `vtkQtImageViewer::SetWindowId'
/homes/VtkQta/src/vtkQtImageViewer.cxx: At global scope:
/homes/VtkQta/src/vtkQtImageViewer.cxx:26: `QWidget' was not declared in this scope
/homes/VtkQta/src/vtkQtImageViewer.cxx:26: `parent' was not declared in this scope
/homes/VtkQta/src/vtkQtImageViewer.cxx:26: parse error before `char'
/homes/VtkQta/src/vtkQtImageViewer.cxx:26: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx: In constructor
`vtkQtImageViewer::vtkQtImageViewer(...)':
/homes/VtkQta/src/vtkQtImageViewer.cxx:26: `parent' undeclared (first use this
function)
/homes/VtkQta/src/vtkQtImageViewer.cxx:26: `name' undeclared (first use this
function)
/homes/VtkQta/src/vtkQtImageViewer.cxx:26: class `vtkQtImageViewer' does not
have any field named `QGLWidget'
/homes/VtkQta/src/vtkQtImageViewer.cxx:29: `TRUE' undeclared (first use this
function)
/homes/VtkQta/src/vtkQtImageViewer.cxx:31: no method
`vtkQtImageViewer::SetDisplayId'
/homes/VtkQta/src/vtkQtImageViewer.cxx:32: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx:32: no method `vtkQtImageViewer::SetWindowId'
/homes/VtkQta/src/vtkQtImageViewer.cxx: At global scope:
/homes/VtkQta/src/vtkQtImageViewer.cxx:36: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx:40: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx: In member function `void
vtkQtImageViewer::paintGL()':
/homes/VtkQta/src/vtkQtImageViewer.cxx:41: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx: At global scope:
/homes/VtkQta/src/vtkQtImageViewer.cxx:45: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx: In member function `void
vtkQtImageViewer::SetWindowName(const char*)':
/homes/VtkQta/src/vtkQtImageViewer.cxx:46: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx:47: parse error before `(' token
/homes/VtkQta/src/vtkQtImageViewer.cxx:48: `QGLWidget' undeclared (first use
this function)
/homes/VtkQta/src/vtkQtImageViewer.cxx: At global scope:
/homes/VtkQta/src/vtkQtImageViewer.cxx:52: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx: In member function `void
vtkQtImageViewer::SetPosition(int, int)':
/homes/VtkQta/src/vtkQtImageViewer.cxx:53: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx:54: parse error before `::' token
/homes/VtkQta/src/vtkQtImageViewer.cxx: At global scope:
/homes/VtkQta/src/vtkQtImageViewer.cxx:58: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx: In member function `void
vtkQtImageViewer::resizeGL(int, int)':
/homes/VtkQta/src/vtkQtImageViewer.cxx:59: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.cxx:60: invalid use of undefined type `class
vtkQtImageViewer'
/homes/VtkQta/src/vtkQtImageViewer.h:22: forward declaration of `class
vtkQtImageViewer'
make[2]: *** [src/CMakeFiles/vtkqt.dir/vtkQtImageViewer.o] Error 1
make[1]: *** [src/CMakeFiles/vtkqt.dir/all] Error 2
make: *** [all] Error 2
-------------------

 As I am very new to using vtkQt, therefore I would appreciate it if anyone 
 could help me. I've also checked-out M.Koenig's vtkqt site, downloaded the 
 files but still encounter similar problems. 
 
 I am so excited to test out vtkqt, but all this problems is demotivating me.
 
 Helpp plzz.. ;)
 
rgds,
jacey
 
 



More information about the vtkusers mailing list