[vtkusers] questions about vtk installation on SunOS

Yanwei Niu niu at mail.eecis.udel.edu
Mon Jul 7 20:12:07 EDT 2003


HI, Dear Everyone:

   I have installed VTK 4.2.2 on my SunOS, the compilation is finished
successfully. Yet whenever I run it I got "Bus error". Dont even know how
the debug it. The following is the detail. Any comments are welcome:

   1. My os information:

   achine hardware:   sun4u
   OS version:         5.8
   Processor type:     sparc
   Hardware:           SUNW,Ultra-5_10

   2. My cshrc setup:


-----------------------------
setenv  LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/local/X/lib:$EARTH_HOME/lib:$KDEDIR/lib:$QTDIR/lib:${EARTH_HOME}/lib/sun4:/usr/openwin/lib:/m/usa/niu/VTK/install/lib/vtk:/usr/local/Sol8/usr/openwin/lib:/usa/niu/tcltk83/tclinstall/lib:/usa/niu/tcltk83/tkinstall/lib:/usa/niu/python/install/lib/python2.2/config/

setenv VTK_DATA_ROOT /m/usa/niu/VTK/VTKData



set path=($path $KDEDIR/bin)

set path=($path /opt/SUNWSpro/bin /usr/ccs/bin /usr/local/capsl/bin)
set path=($path /m/usa/niu/R/R-1.5.1/bin/)
set path=($path /m/usa/niu/cmake/bin  /m/usa/niu/cmake/Share /m/usa/niu/cmake/man)

set path=($path /m/usa/niu/tcltk83/tclinstall/bin /m/usa/niu/tcltk83/tkinstall/bin  /usa/niu/python/install/bin  )
set path=($path /m/usa/niu/VTK/install/bin)

setenv  PYTHONPATH
/usa/niu/VTK/VTK-4.2.2/Wrapping/Python:/usa/niu/python/install/bin:/m/usa/niu/VTK/install/lib/vtk
-------------------------------

   3. How I run the vtk:

   source ./cshrc

   vtk ../../VTK-4.2.2/Examples/Tutorial/Step1/Tcl/Cone.tcl

   The only error msg I got is "bus error", I tried other exampls like
   rainbow.tcl, all bus error. I also tried the vtkPython, same problem,
   only error msg is "bus error"

   I tried to source the tcl(line by line ) in the vtk command window
   after I launch vtk,
   only when I run the last "renWin Render", the bus error will occur>

-----------------------------------------------------
vtk
% package require vtk
4.2
% package require vtkinteraction
4.2
% package require vtktesting
4.2
% vtkCylinderSource cylinder
    cylinder SetResolution 8
cylinder
% % vtkPolyDataMapper cylinderMapper
    cylinderMapper SetInput [cylinder GetOutput]
cylinderMapper
% % vtkActor cylinderActor
cylinderActor
%     cylinderActor SetMapper cylinderMapper
%     eval [cylinderActor GetProperty] SetColor $tomato
    cylinderActor RotateX  30.0
    cylinderActor RotateY -45.0
% % % vtkRenderer ren1
vtkRenderWindow renWin
    renWin AddRenderer ren1
vtkRenderWindowInteractor iren
    iren SetRenderWindow renWin
ren1
% renWin
% % iren
% % ren1 AddActor cylinderActor
ren1 SetBackground 0.1 0.2 0.4
renWin SetSize 200 200
% % % iren AddObserver UserEvent {wm deiconify .vtkInteract}
20
% [ren1 GetActiveCamera] Zoom 1.5
% renWin Render
Bus error



-----------------------------------------------------


   4. my ccmake setup when I do the make and make install.
------------------------------------------------------
 BUILD_DOCUMENTATION              OFF
 BUILD_EXAMPLES                   ON
 BUILD_SHARED_LIBS                ON
 BUILD_TESTING                    ON
 CMAKE_AR                         /usr/ccs/bin/ar
 CMAKE_BACKWARDS_COMPATIBILITY    1.6
 CMAKE_BUILD_TYPE                 Release
 CMAKE_CXX_COMPILER               CC

 CMAKE_C_COMPILER                 gcc
 CMAKE_C_FLAGS                   -I/usr/local/gnu/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include
 CMAKE_C_FLAGS_DEBUG
 CMAKE_C_FLAGS_MINSIZEREL
 CMAKE_C_FLAGS_RELEASE
 CMAKE_C_FLAGS_RELWITHDEBINFO
 CMAKE_EXE_LINKER_FLAGS
 CMAKE_EXE_LINKER_FLAGS_DEBUG
 CMAKE_EXE_LINKER_FLAGS_MINSIZE
 CMAKE_EXE_LINKER_FLAGS_RELEASE
 CMAKE_EXE_LINKER_FLAGS_RELWITH
 CMAKE_HP_PTHREADS                OFF
 CMAKE_INSTALL_PREFIX             /usa/niu/VTK/install
 CMAKE_MAKE_PROGRAM               /usr/local/gnu/bin/gmake



PYTHON_LIBRARY                   /usa/niu/python/install/lib/python2.2/config/libpython2.2.so
 PYTHON_UTIL_LIBRARY
 TCL_INCLUDE_PATH                 /usa/niu/tcltk83/tclinstall/include
 TCL_LIBRARY                      /usa/niu/tcltk83/tclinstall/lib/libtcl8.3.so
 TCL_TCLSH                        /usa/niu/tcltk83/tclinstall/bin/tclsh8.3
 TK_INCLUDE_PATH                  /usa/niu/tcltk83/tkinstall/include
 TK_INTERNAL_PATH                 /m/usa/niu/VTK/VTK-4.2.2/Rendering/tkInternals/tk83
 TK_LIBRARY                       /usa/niu/tcltk83/tkinstall/lib/libtk8.3.so
 VTK_DATA_ROOT                    /usa/niu/VTK/VTKData
 VTK_DEBUG_LEAKS                  OFF
 VTK_DISABLE_TK_INIT              OFF
 VTK_OPENGL_HAS_OSMESA            OFF
 VTK_USE_64BIT_IDS                OFF
 VTK_USE_ANSI_STDLIB              ON
 VTK_USE_HYBRID                   ON
 VTK_USE_MANGLED_MESA             OFF
 VTK_USE_MPI                      OFF
 VTK_USE_PARALLEL                 ON
 VTK_USE_PATENTED                 ON
 VTK_USE_RENDERING                ON
 VTK_USE_SYSTEM_EXPAT             OFF
 VTK_USE_SYSTEM_JPEG              OFF
 VTK_USE_SYSTEM_PNG               OFF
 VTK_USE_SYSTEM_TIFF              OFF
 VTK_USE_SYSTEM_ZLIB              OFF
 VTK_USE_VOLUMEPRO                OFF
 VTK_WRAP_HINTS                   /m/usa/niu/VTK/VTK-4.2.2/Wrapping/hints
 VTK_WRAP_JAVA                    OFF
 VTK_WRAP_PYTHON                  ON
 VTK_WRAP_PYTHON_EXE              /m/usa/niu/VTK/VTK-4.2.2/bin/./vtkWrapPython
 VTK_WRAP_TCL                     ON
 VTK_WRAP_TCL_EXE                 /m/usa/niu/VTK/VTK-4.2.2/bin/./vtkWrapTcl
 X11_X11_INCLUDE_PATH             /usr/local/Sol8/usr/openwin/share/include
 X11_X11_LIB                      /usr/local/Sol8/usr/openwin/lib/libX11.so
 X11_Xext_LIB                     /usr/local/Sol8/usr/openwin/lib/libXext.so
 X11_Xlib_INCLUDE_PATH            /usr/local/Sol8/usr/openwin/share/include
 X11_Xutil_INCLUDE_PATH           /usr/local/Sol8/usr/openwin/share/include



Yours  Sincerely
Yanwei Niu





More information about the vtkusers mailing list