[vtk-developers] VTK build problems (virgin build).
Andrew Maclean
a.maclean at cas.edu.au
Wed Aug 24 20:29:00 EDT 2005
Summary:
There seem to be issues with
1) Shared libaries on and RPATH OFF and building both VTK and ParaView.
2) libQVTK.so dependency if build examples is on.
I suspect that these problems only manifest themselves when a build is done
starting with ana empty directory.
Could someone please confirm this.
I am using the latest CVS as of 24 Aug 2005 23:00 UTC, for both CMake, VTK ans
ParaView.
I suspect these issues don't appear in the datrboard because (perhaps) make
clean is not done before a build.
The OS is Linux, Debian using gcc version 4.0.2. I have tried it on two
different machines using the following procedure:
If you create an empty directory and run ccmake in it for VTK selecting:
1) Examples: ON, Shared Libs: ON, Wrap TCL: ON, Wrap Python ON, PArallel ON,
GUI SUpport ON, Use Rpath ON, and Use QVTK ON.
2) Release build, -Wall.
-------------- libQVTK --------------------
Almost everything builds except a fail occurs when the examples are built:
/usr/bin/ld: cannot find -lQVTK
The solution is to then copy file:/usr/local/lib/vtk/libQVTK.so from
the /usr/local/lib/vtk directory and run make again.
Now everything builds OK and the libQVTK.so library is rebuilt.
So there is a dependency problem here - it needs libQVTK.so before it can
build it.
--------------------- Switching off RPATH -------------------------
If you switch off RPath, keeping Shared libs ON, and delete all the libs and
executables. This is as instructed for the installing of the libraries the
build fails at this point:
Building CXX object
Common/Testing/Cxx/CMakeFiles/CommonCxxTests.dir/TestGarbageCollector.o
Linking CXX executable bin/CommonCxxTests
Linking CXX executable bin/TestCxxFeatures
Linking CXX executable bin/TestInstantiator
Linking CXX executable bin/FilteringCxxTests
Generating conversion_complete
../../../bin/vtkpython: error while loading shared libraries:
libvtksys.so.4.5:cannot open shared object file: No such file or directory
make[2]: *** [Filtering/Testing/Python/conversion_complete] Error 127
make[1]: ***
[Filtering/Testing/Python/CMakeFiles/FilteringPythonTests.dir/all]Error 2
make: *** [all] Error 2
Finally, I think that /VTK/README.html needs to be updated to reflect the
recent changes.
------------------------ ParaView, RPATH switched off. ---------------
In the case of ParaView, the build fails at:
Linking CXX shared library bin/libvtkPVFiltersCS.so
Generating vtkSMGeneratedModules.h
Error converting executable file "../../bin/kwProcessXML-real" to real path:
Nosuch file or directory
make[2]: *** [Servers/ServerManager/vtkSMGeneratedModules.h] Error 1
make[1]: *** [Servers/ServerManager/CMakeFiles/vtkPVServerManager.dir/all]
Error 2
make: *** [all] Error 2
-----------------------------------------------------------
___________________________________________
Andrew J. P. Maclean
Postal:
Australian Centre for Field Robotics
The Rose Street Building J04
The University of Sydney 2006 NSW
AUSTRALIA
Room:106
Phone:+61 2 9351 3283
Fax:+61 2 9351 7474
http://www.acfr.usyd.edu.au/
___________________________________________
More information about the vtk-developers
mailing list