[vtk-developers] build errors with libvtkCommon.so.4.5
tom fogal
tfogal at apollo.sr.unh.edu
Fri Aug 19 16:56:07 EDT 2005
It seems like I didn't fully explain the issue in my initial message.
Sorry, hopefully this will clarify.
<430640D4.4070000 at kitware.com>Brad King writes:
>tom fogal wrote:
>> Thus I would imagine it needs some sort of rpath setting to
>> be able to find the library, or my setting of the LD_LIBRARY_PATH
>> environment variable.
>
>You need to set LD_LIBRARY_PATH to point to the vtk-build/bin directory
>if VTK_USE_RPATH is OFF.
I assume you mean "ON" here, because I've just installed (see below)
without setting this environment variable.
>> It should be noted that in the times I've had this trouble, I've
>> started with VTK_USE_RPATH as ON and then later switched it to OFF,
>> after I got the message during 'make install' and smacked myself in the
>> head. Also these are all out of source builds.
>> I am trying a build now where I conciously set VTK_USE_RPATH to OFF
>> before running a single 'make', from a clean directory. I will respond
>> with results later, hopefully this afternoon...
I have just checked, this works appropriately.
>There are no dependencies to get the libraries to re-link when the
>VTK_USE_RPATH setting chagnes. The make install error message instructs
>you to delete the libraries before running "make" again after setting
>VTK_USE_RPATH to OFF. This will probably be a common problem so I'll
>investigate getting things to relink automatically.
I didn't explain this properly; the reason I wrote the original mail
was because the following did not work:
$ mkdir cvs_build_vtk
$ cd cvs_build_vtk
$ ccmake ../VTK
# setup; note VTK_USE_RPATH is ON
$ make
$ sudo make install
# bang head against wall for being dumb about VTK_USE_RPATH
$ ccmake ../VTK
# set VTK_USE_RPATH to OFF
$ rm bin/*
$ make
$ sudo make install
The second 'sudo make install' still failed with the same error. I got
the impression from the error message that this was all I needed to do,
but I've yet to get it to work without 'rm -fr cvs_build_vtk'-ing and
restarting from scratch, ensuring VTK_USE_RPATH was OFF the *first*
time.
I was under the impression that removing everything in the bin/
directory should work. Maybe I am just not following the appropriate
procedure?
>> I would argue that VTK_USE_RPATH should default to OFF. Is there a
<snip>
>Read the end of the make install error message: "See comments in
>VTK/CMake/vtkSelectSharedLibraries.cmake for more information.". There
>is a good reason the default is ON when checking out from CVS. The
>default actually will be OFF for releases, though.
Okay, I agree with the logic that CVS users should be smarter.
Should've have paid closer attention to that thread... Sorry.
-tom
More information about the vtk-developers
mailing list