VTKRecorder Yade 0.20

Asked by Hadda on 2011-02-15


Does the VTKRecorder works on Yade 0.20 ??

VTKRecorder.cpp and VTKRecorder.hpp exist in the yade0.20 package (StandAloneEngine folder), but can not be called from a python script and is not seen if added as engine to the xml file .

The error displayed is : VTKRecorder is not defined. (python)

                                    ERROR yade.SimulationController null - gui/qt3/SimulationController.cpp:229 loadSimulationFromFileName: ClassFactory::create - cannot create class named: VTKRecorder (xml file loading)

is it bypassed while compiling Yade ? How to check it ?

And for old users, were you able to use VTKRecorder with old versions ?


Question information

English Edit question
Yade Edit question
No assignee Edit question
Last query:
Last reply:
Anton Gladky (gladky-anton) said : #1


it should work in yade 0.20
Do you have vtk-feature enabled in scons.profile-default?

Hadda (hadda) said : #2

I have this:

PREFIX = '/home/*********/Bureau/VTKTEST/YADE'
optimize = True
exclude = 'extra,fem,lattice,mass-spring,realtime-rigidbody,snow'
features = 'gts,log4cxx,opengl,openmp,python'
QTDIR = ['/usr/share/qt3', '/usr/lib/qt', '/usr/lib/qt3', '/usr/qt/3', '/usr/lib/qt-3.3']
VTKINCDIR = ['/usr/include/vtk', '/usr/include/vtk-5.0']

Anton Gladky (gladky-anton) said : #3

Try so:

features = 'gts,log4cxx,opengl,openmp,python,vtk'

and recompile.

Hadda (hadda) said : #4

I've got this message:

ERROR: Unable to compile with optional feature `vtk'.

Anton Gladky (gladky-anton) said : #5

What operating system do you use?

You should also install the package libvtk5-dev

Hadda (hadda) said : #6

I have libvtk5-dev already installed with libvtk-5.2. but still have the same problem !

/yade-0.20-2$ scons PREFIX=/home/********/Bureau/VTKTEST/YADE optimize=1 exclude=fem,lattice,mass-spring,realtime-rigidbody,snow,extra features=gts,log4cxx,opengl,openmp,python,vtk

scons: Reading SConscript files ...
Checking whether c++ compiler "g++" works...yes
Checking for pthread_exit(NULL) in C library pthread... yes
Checking for boost::system::error_code(); /* non-essential */ in C++ library boost_system-mt... yes
Checking for boost::thread::thread() in C++ library boost_thread-mt... yes
Checking for boost::posix_time::time_duration::time_duration() in C++ library boost_date_time-mt... yes
Checking for boost::filesystem::path() in C++ library boost_filesystem-mt... yes
Checking for boost::iostreams::file_sink("") in C++ library boost_iostreams-mt... yes
Checking for boost::regex("") in C++ library boost_regex-mt... yes
Checking for try{} catch (const boost::archive::archive_exception& e) {} in C++ library boost_serialization-mt... yes
Checking for boost::program_options::options_description o in C++ library boost_program_options-mt... yes
Checking for C++ header file boost/foreach.hpp... yes
Checking for sqlite3_close(0L) in C++ library sqlite3... yes
Checking for vtkInstantiator::New() in C++ library vtkHybrid... no

ERROR: Unable to compile with optional feature `vtk'.

Anton Gladky (gladky-anton) said : #7

Try to add vtk-5.2 headers to scons:

scons VTKINCDIR=/usr/include/vtk-5.2

Hadda (hadda) said : #8

No way !

The same error persists.

Anton Gladky (gladky-anton) said : #9


I have commited fix into the 0.20 branch. Please, try it:

But, to be honestly, it is difficult to support this old stuff. Please, consider the opportunity to switch to a newer version.

Can you help with this problem?

Provide an answer of your own, or ask Hadda for more information if necessary.

To post a message you must log in.