[Paraview] CVS not installing pvpython

Orion Poplawski orion at cora.nwra.com
Fri Aug 15 11:09:38 EDT 2008


Berk Geveci wrote:
> How are you creating this package? First creating an installation with the 
> default paths and then moving them? It looks like, by modifying one CMake file, 
> you can have ParaView generate the right sort of build AND set the right 
> forwarding path without worrying about RPATHs. In CMake/ParaViewCommon.cmake, 
> the forwarding path seems to be set here:
> 
> IF(NOT PV_INSTALL_LIB_DIR)
>   SET(PV_INSTALL_LIB_DIR ${PV_INSTALL_ROOT}/lib/paraview-${PARAVIEW_VERSION})
> ENDIF(NOT PV_INSTALL_LIB_DIR)
> 
> It sound like, if you change that to
> 
> IF(NOT PV_INSTALL_LIB_DIR)
>   SET(PV_INSTALL_LIB_DIR ${PV_INSTALL_ROOT}/lib/paraview-${PARAVIEW_VERSION})-mpi
> ENDIF(NOT PV_INSTALL_LIB_DIR)
> 
> everything should work. Of course, take my word with a pinch of salt since I am 
> only a novice when it comes to writing CMake files.

Below is basically what I do.  The binaries though need rpaths set to 
the appropriate /usr/lib[64]/paraview[-mpi] directory in order to work 
because they are not in the default linker path (and they can't be or 
you won't be able to switch between the two).

mkdir fedora
pushd fedora

cmake .. \
         -DPV_INSTALL_LIB_DIR:PATH=/%{_lib}/paraview \

make VERBOSE=1 %{?_smp_mflags}
popd

mkdir fedora-mpi
pushd fedora-mpi
cmake .. \
         -DPV_INSTALL_LIB_DIR:PATH=/%{_lib}/paraview-mpi \

make VERBOSE=1 %{?_smp_mflags}
popd


# Install mpi version
pushd fedora-mpi
make install DESTDIR=$RPM_BUILD_ROOT

#Cleanup %{_bindir}
pushd $RPM_BUILD_ROOT/%{_bindir}
#Don't ship copy of Qt assisstant
rm $RPM_BUILD_ROOT%{_bindir}/assistant
#Don't need mpi versions of these
rm -f paraview pvpython pvTestDriver vtkSMExtractDocumentation
#Move the remaining mpi binaries out of the way
for f in *
do
    mv $f ${f}-mpi
done
popd

#Remove mpi copy of includes, man pages, and documentation
rm -rf $RPM_BUILD_ROOT/%{_includedir}/paraview-%{pv_majmin}
rm -rf $RPM_BUILD_ROOT%{_mandir}
rm -r 
$RPM_BUILD_ROOT%{_libdir}/paraview-mpi/{doc,Documentation,pqClient.adp}
popd

#Install the normal version
pushd fedora
make install DESTDIR=$RPM_BUILD_ROOT

#Create desktop file
cat > paraview.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=ParaView Viewer
GenericName=Data Viewer
Comment=ParaView allows viewing of large data sets
Type=Application
Terminal=false
Icon=paraview_22x22
MimeType=application/x-paraview;
Categories=Application;Graphics;
Exec=paraview
EOF

desktop-file-install --vendor=fedora \
        --add-category=X-Fedora \
        --dir %{buildroot}%{_datadir}/applications/ \
        paraview.desktop

popd

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the ParaView mailing list