[vtkusers] Okay, I'm lost.
Andrew Maclean
a.maclean at cas.edu.au
Mon Nov 14 17:43:48 EST 2005
This may help. It is slightly outdated but it is generally what I do. This
is for Linux.
Decide whether to use shared libraries or static ones.
If using shared libraries and if you want to install for all users then make
sure BUILD SHARED LIBS is ON and CMAKE_USE_RELATIVE_PATHS is OFF. Then when
building set LD_LIBRARY_PATH to the bin directory where the file are being
build.
i.e. export LD_LIBRARY_PATH=<path to bin dir in vtk build directory>:${
LD_LIBRARY_PATH}
After you are done, add these lines to your .bashrc file:
export VTK_DATA_ROOT=/usr/local/src/vtk/VTKData
export VTK_ROOT=/usr/local/src/vtk/VTK
export VTK_LIBRARY=/usr/local/lib/vtk-5.1
export VTK_DIR=/usr/local/lib/vtk-5.1
export
PYTHONPATH=$VTK_ROOT/Wrapping/Python:/usr/local/src/vtk/build/VTK-build/bin:
${VTK_LIBRARY}
This assumes vtk-5.1 exists in =/usr/local/lib/.
I hope this helps.
Andrew
-----Original Message-----
From: Rasmus Reinhold Paulsen [mailto:rrp at imm.dtu.dk]
Sent: Monday, 14 November 2005 19:37
To: Steven Hansen
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Okay, I'm lost.
Hi,
You could take a look at the installation guide found at
www.imm.dtu.dk/~rrp (in the manuals section). It is slightly outdated and
I do not use CMake for generating projects. However, I believe that it may
help.
Cheers,
Rasmus
On Sat, 12 Nov 2005, Steven Hansen wrote:
> I have the updated CVS source code version of vtk, but when I build it in
Cmake it doesn't seem to matter what options I choose, it still has problems
finding the right libraries when I try to run an example file that I have
been given. And if I try to run the vtk included examples, then it asks me
for a binary file to run, and I don't know where that is.
>
> Can anybody give me kind of a cook-book checklist of how to install vtk,
and with what options selected in order to just run one of the vtk included
examples? That would give me some place to start, and everybody has access
to the latest build and the vtk examples. I would really appreciate it.
>
> Steve Hansen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HowToInstallVTK
Type: application/octet-stream
Size: 7863 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051115/d814ad54/attachment.obj>
More information about the vtkusers
mailing list