[vtkusers] Getting Started Questions

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Sep 5 10:03:58 EDT 2008


Bruce,

  Mike is right using LD_LIBRARY_PATH is the correct solution any
other one requires sudo/root power.
  the other alternative (which is not the default on VTK release) is
to set VTK_USE_RPATH. This is a great option for novice user on UNIX
system.

  Either way after setting LD_LIBRARY_PATH or rebuilding VTK with
rpath on you can then check that VTK is build properly if you execute
the test:

  $ make test

(you'll need VTK_TESTING:ON)

2cts

On Fri, Sep 5, 2008 at 3:54 PM, Labitt, Bruce
<labittb1 at tycoelectronics.com> wrote:
> Thanks Mike.
>
> Believe me, I'm far from a guru myself - that is why I am "here" asking
> questions.  Instead of using LD_LIBRARY_PATH, shouldn't I just use
> ldconfig for the new directory of libraries?  I would have thought the
> build process would have done this already..
>
> Yes, compile did reach 100%.  Is there a log file showing that
> everything passes?
>
> -----Original Message-----
> From: Mike Jackson [mailto:mike.jackson at bluequartz.net]
> Sent: Friday, September 05, 2008 9:18 AM
> To: Labitt, Bruce
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] Getting Started Questions
>
> I am not a linux guru but it looks like your LD_LIBRARAY_PATH may need
> to include the VTK-build/bin directory.
>
> Also, when you compiled vtk, did the compile reach 100% ?? That would
> indicate a successful compile.
>
> Mike
>
> On Sep 5, 2008, at 8:57 AM, Labitt, Bruce wrote:
>
>> I'm trying to get started with vtk.  I have downloaded vtk5.2.  I used
>> cmake 2.6 to build vtk on a RHEL5.2 clone.  How can I tell if the
>> build
>> is really successful?  Can I examine an output file?  Is there a test
>> suite I can run?
>>
>> I have built vtk out of place into a VTK-build directory.  Some of the
>> files in the VTK-build/bin directory do not run, for instance, when I
>> run
>> [ bin]$./GraphicsCxxTests         the result is
>>
>> ./GraphicsCxxTests: error while loading shared libraries:
>> libvtkRendering.so.5.2: cannot open shared object file: No such file
>> or
>> directory
>>
>> libvtkRendering.so.5.2 is in the current directory bin
>>
>> Other files do run, like Medical1, and Cone6.
>>
>> I attempted to compile in python support.  I cannot tell if this was
>> done properly however.  If I type
>> [ VTK-build/bin] $ vtkpython
>>
>> I get
>> vtk version 5.0.4, vtk source  rather than the expected 5.2.  Is this
>> correct?
>>
>> If I type [ VTK-build/bin]$ ./vtkpython  I get
>>
>> ./vtkpython: error while loading shared libraries: libvtkViews.so.5.2:
>> cannot open shared object file: No such file or directory.
>>
>> There is a libvtkViews.so.5.2 in the directory...
>>
>> Any tips or help would be greatly appreciated.
>>
>> Thanks,
>> Bruce
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Mathieu



More information about the vtkusers mailing list