[vtkusers] compiling vtk

Charles James Leonardo Quarra Cappiello charsquarra at hotmail.com
Fri Oct 31 00:11:40 EST 2003


Hi,

i had to compile by myself vtk since i need the GL2PS; i compiled with this 
sequence of commands

export CC='/usr/bin/gcc'
export CXX='/usr/bin/g++'
export MAKE='make -j3'
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated"
export GL2PS_INCLUDE_PATH='/home/charles/local/include/'
export GL2PS_LIBRARY='/home/charles/local/lib'
cd /home/charles/compile/BUILD/VTK
cmake '-lAH  -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK/lib \
        -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK/bin \
        -DCMAKE_INSTALL_PREFIX:PATH=/usr \
        -DCMAKE_SKIP_RPATH:BOOL=ON \
        -DPYTHON_INCLUDE_PATH:PATH=$(python2 -c"import os,sys; print 
os.path.join(sys.exec_prefix, 'include', 'python' + sys.version[:3])") \
        -DPYTHON_LIBRARY:FILEPATH=$(python2 -c"import os,sys; print 
os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3], 
'config/libpython' + sys.version[:3] + '.a')") \
        -DVTK_DATA_ROOT:PATH=%{_docdir}/vtk-data-%{version} \
        -DVTK_WRAP_PYTHON:BOOL=ON \
        -DVTK_WRAP_JAVA:BOOL=OFF \
        -DVTK_WRAP_TCL:BOOL=ON \
        -DVTK_USE_HYBRID:BOOL=ON \
        -DVTK_USE_PARALLEL:BOOL=ON \
        -DVTK_USE_PATENTED:BOOL=ON \
        -DVTK_USE_RENDERING:BOOL=ON \
        -DVTK_USE_MPI:BOOL=OFF \
        -DVTK_USE_X:BOOL=ON \
        -DGL2PS_INCLUDE_PATH:PATH=/home/charles/local/include/ \
        -DGL2PS_LIBRARY:FILEPATH=/home/charles/local/lib/libgl2ps.so \
        -DVTK_USE_GL2PS:BOOL=ON \
        -DBUILD_DOCUMENTATION:BOOL=ON \
        -DBUILD_EXAMPLES:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DBUILD_TESTING:BOOL=ON  \
        -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
        -DCMAKE_C_COMPILER:FILEPATH=$CC ' .

make
(three hours later...)
make install
ldconfig

all the vtklibraries are correctly linked by ldconfig; however, the 
vtk-python binary rpm reports the following unsatisfied dependencies

# rpm -i vtk-python-4.3.0-1.cvs20031022.i386.rpm
error: Failed dependencies:
        libvtkCommon.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkDICOMParser.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkFiltering.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkGraphics.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkHybrid.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkIO.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkImaging.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkParallel.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkPatented.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkRendering.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkexpat.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkfreetype.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkftgl.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkjpeg.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkpng.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtktiff.so is needed by vtk-python-4.3.0-1.cvs20031022
        libvtkzlib.so is needed by vtk-python-4.3.0-1.cvs20031022
        vtk is needed by vtk-python-4.3.0-1.cvs20031022


which only the last one should be justified.

  any hints about this?

cheers

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail




More information about the vtkusers mailing list