← Back to team overview

yade-users team mailing list archive

Re: Optional libraries (VTK, Eigen)

 

2009/12/10 boon chiaweng <booncw@xxxxxxxxxxx>

>  Hi everyone,
>
> I am still confused about optional libraries, although I've read the new
> documentation
> http://beta.arcig.cz/~eudoxos/yade/sphinx/prog.html#build-system<http://beta.arcig.cz/%7Eeudoxos/yade/sphinx/prog.html#build-system>.
> I'm quite hopeless with computers.
>
> Q1.  To use VTK, I understand that I will need to compile with VTK and
> include YADE_REQUIRE_FEATURE(vtk) in the cpp files.
>
No. you dont need that. You just need to add to your engine simulation next
string:
VTKRecorder(virtPeriod=0.001,fileName='lsm-',recorders=['spheres','facets','intr']),



> How do I compile with vtk? Do I have to download something, and which
> directory? Do I have to edit scons.profile-default with features
> ="gts,log4cxx,openmpi,opengl, vtk"?
>
Exactly. You need to add vtk into the feature list and install vtk-dev
package for your system.



> Q2.  Also, in which directory should I unpack the tar.gz for
> Eigen.tuxfamily?  The tutorial uses the following header command:
> #include <Eigen/Core>
> USING_PART_OF_NAMESPACE_EIGEN
> How does my YADE .cpp files know where I installed the library?<Eigen/Core> could be anywhere..
>
>
> Yours,
>
> CWBoon
>
>
>
> ------------------------------
> New Windows 7: Simplify what you do everyday. Find the right PC for you.<http://windows.microsoft.com/shop>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>
>

References