[vtkusers] RENDERING ERROR

A.M.Parvanian m.parvanian at gmail.com
Wed Apr 7 05:15:36 EDT 2010


I want to compile VTK with Java wrapping (VTK_WRAP_JAVA=ON), vtkHybrid kit (
VTK_USE_HYBRID=ON), and vtkRendering kit (VTK_USE_RENDERING=ON);

But I don't know why I get this error at about 41% of compilation:

[ 39%] Java Wrappings - generating vtkXMLWriter.java
[ 39%] Java Wrappings - generating vtkXYZMolReader.java
[ 39%] Java Wrappings - generating vtkZLibDataCompressor.java
[ 39%] Java Wrappings - generating vtkRowQueryToTable.java
[ 41%] Built target vtkIOJavaJavaClasses
[ 41%] Building CXX object
Rendering/CMakeFiles/vtkRendering.dir/vtkGraphicsFactory.o
*In file included from
/home/group/src/VTK/Rendering/vtkGraphicsFactory.cxx:65:
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:37:74: error:
X11/StringDefs.h: No such file or directory
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:38:73: error:
X11/Intrinsic.h: No such file or directory
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
variable or field ‘vtkXRenderWindowInteractorCallback’ declared void
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
‘Widget’ was not declared in this scope
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
‘XtPointer’ was not declared in this scope
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
‘XEvent’ was not declared in this scope
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
expected primary-expression before ‘,’ token
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
‘Boolean’ was not declared in this scope
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
expected primary-expression before ‘)’ token
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
initializer expression list treated as compound expression
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:46: error:
variable or field ‘vtkXRenderWindowInteractorTimer’ declared void
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:46: error:
‘XtPointer’ was not declared in this scope
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:46: error:
‘XtIntervalId’ was not declared in this scope
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:46: error:
expected primary-expression before ‘)’ token
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:46: error:
initializer expression list treated as compound expression
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:78: error:
‘XtAppContext’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:79: error:
‘XtAppContext’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:118: error:
‘Widget’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:119: error:
‘Widget’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:149: error:
‘Widget’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:150: error:
‘Widget’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:158: error:
‘Widget’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:158: error:
‘XtPointer’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:159: error:
‘XEvent’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:159: error:
‘Boolean’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:159: error: ‘void
vtkXRenderWindowInteractorCallback(int, int, int*, int*)’ redeclared as
different kind of symbol
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:45: error:
previous declaration of ‘int vtkXRenderWindowInteractorCallback’
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:160: error:
‘XtPointer’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:160: error:
‘XtIntervalId’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:160: error: ‘void
vtkXRenderWindowInteractorTimer(int, int*)’ redeclared as different kind of
symbol
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:46: error:
previous declaration of ‘int vtkXRenderWindowInteractorTimer’
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:167: error:
‘XtAppContext’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:170: error: ISO
C++ forbids declaration of ‘Display’ with no type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:170: error:
expected ‘;’ before ‘*’ token
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:171: error:
‘Window’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:172: error:
‘Atom’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:173: error:
‘Widget’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:177: error:
‘Widget’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:188: error:
‘XtIntervalId’ does not name a type
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:190: error:
‘XtPointer’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:190: error:
‘XtIntervalId’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:191: error:
‘Widget’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:191: error:
‘XtPointer’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:191: error:
‘XEvent’ has not been declared
/home/group/src/VTK/Rendering/vtkXRenderWindowInteractor.h:191: error:
‘Boolean’ has not been declared
make[2]: *** [Rendering/CMakeFiles/vtkRendering.dir/vtkGraphicsFactory.o]
Error 1
make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
make: *** [all] Error 2*


Any help with this trouble?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100407/812263fd/attachment.htm>


More information about the vtkusers mailing list