echo "ParaView" $VERSION
echo "##########################################################################"
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+
PVLIBVERSION=`echo ${VERSION} | awk -F. '{printf("%d.%d",$1,$2)}'`
CMAKE_OPTIONS=""
### spns #20550 - Headless mode
if [ "$PARAVIEW_HEADLESS_MODE" == "1" ]; then
EGL_FOUND=false
- LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
case $LINUX_DISTRIBUTION in
CO*|FD*)
if [ -f /usr/include/EGL/egl.h ] && [ -f /usr/lib64/libEGL.so ] && [ -f /usr/lib64/libOpenGL.so ]
echo "INFO: switching ON GDAL"
CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_GDAL:BOOL=ON"
if [ "${SAT_gdal_IS_NATIVE}" != "1" ]; then
- CMAKE_OPTIONS+=" -DGDAL_ROOT_DIR=$GDAL_ROOT_DIR"
- CMAKE_OPTIONS+=" -DGDAL_LIBRARY=$GDAL_ROOT_DIR/lib/libgdal.so"
- CMAKE_OPTIONS+=" -DGDAL_INCLUDE_DIR=$GDAL_ROOT_DIR/include"
+ if [ "${LINUX_DISTRIBUTION}" == "CO9" ]; then
+ CMAKE_OPTIONS+=" -DGDAL_ROOT_DIR=$GDAL_ROOT_DIR"
+ CMAKE_OPTIONS+=" -DGDAL_LIBRARY=$GDAL_ROOT_DIR/lib64/ogdi/libgdal.so"
+ CMAKE_OPTIONS+=" -DGDAL_INCLUDE_DIR=$GDAL_ROOT_DIR/include/gdal"
+ else
+ CMAKE_OPTIONS+=" -DGDAL_ROOT_DIR=$GDAL_ROOT_DIR"
+ CMAKE_OPTIONS+=" -DGDAL_LIBRARY=$GDAL_ROOT_DIR/lib/libgdal.so"
+ CMAKE_OPTIONS+=" -DGDAL_INCLUDE_DIR=$GDAL_ROOT_DIR/include"
+ fi
fi
CMAKE_OPTIONS+=" -DPARAVIEW_GENERATE_PROXY_DOCUMENTATION:BOOL=ON"
CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_ENABLE_GeographicalMap:BOOL=ON"
CMAKE_OPTIONS+=" -DBLAS_LIBRARIES=/usr/lib64/libblas.so"
fi
+if [[ $DIST_NAME == "CO" && $DIST_VERSION == "9" && -f /usr/lib64/libcblas.so && -f /usr/lib64/libblas.so ]]; then
+ CMAKE_OPTIONS+=" -DLAPACK_DIR=${LAPACK_ROOT_DIR}/lib64"
+ CMAKE_OPTIONS+=" -DCBLAS_DIR=${LAPACK_ROOT_DIR}/lib64"
+ CMAKE_OPTIONS+=" -DCBLAS_LIBRARIES=/usr/lib64/libcblas.so"
+ CMAKE_OPTIONS+=" -DBLAS_LIBRARIES=/usr/lib64/libblas.so"
+fi
+
### libxml2 settings
if [ -n "$LIBXML2_ROOT_DIR" ] && [ "$SAT_libxml2_IS_NATIVE" != "1" ]; then
CMAKE_OPTIONS+=" -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2"
--- /dev/null
+#!/bin/bash
+
+echo "##########################################################################"
+echo SIP + PyQt5_sip $VERSION
+echo "##########################################################################"
+
+
+echo "*** build in SOURCE directory"
+mkdir -p $BUILD_DIR/sip-5.5.0
+cd $BUILD_DIR/sip-5.5.0
+cp -R $SOURCE_DIR/sip-5.5.0/* .
+
+# we don't install in python directory -> modify environment as described in INSTALL file
+#mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION}/site-packages
+export PATH=$(pwd)/bin:$PATH
+export PYTHONPATH=$(pwd):$PYTHONPATH
+#export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
+
+#echo
+#echo "*** build with $PYTHONBIN"
+#$PYTHONBIN setup.py build
+#if [ $? -ne 0 ]
+#then
+# echo "ERROR on build"
+# exit 2
+#fi
+
+echo
+echo "*** install with $PYTHONBIN"
+$PYTHONBIN -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL
+if [ $? -ne 0 ]
+then
+ echo "ERROR on install"
+ exit 3
+fi
+
+# ensure that lib is used
+if [ -d "$PRODUCT_INSTALL/lib64" ]; then
+ echo "WARNING: renaming lib64 directory to lib"
+ mv $PRODUCT_INSTALL/lib64 $PRODUCT_INSTALL/lib
+elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
+ echo "WARNING: renaming local/lib64 directory to lib"
+ mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
+ rm -rf $PRODUCT_INSTALL/local
+fi
+
+mkdir -p $BUILD_DIR/PyQt5_sip-12.8.1
+cd $BUILD_DIR/PyQt5_sip-12.8.1
+cp -R $SOURCE_DIR/PyQt5_sip-12.8.1/* .
+#echo
+#echo "*** build with $PYTHONBIN"
+#$PYTHONBIN setup.py build
+#if [ $? -ne 0 ]
+#then
+# echo "ERROR on build"
+# exit 2
+#fi
+
+echo
+echo "*** install with $PYTHONBIN"
+$PYTHONBIN -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL
+if [ $? -ne 0 ]
+then
+ echo "ERROR on install"
+ exit 3
+fi
+
+mkdir $PRODUCT_INSTALL/include
+cp *.h $PRODUCT_INSTALL/include
+
+cd $PRODUCT_INSTALL/bin
+ln -sf sip5 sip
+
+# ensure that lib is used
+if [ -d "$PRODUCT_INSTALL/lib64" ]; then
+ echo "WARNING: renaming lib64 directory to lib"
+ mv $PRODUCT_INSTALL/lib64 $PRODUCT_INSTALL/lib
+elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
+ echo "WARNING: renaming local/lib64 directory to lib"
+ mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
+ rm -rf $PRODUCT_INSTALL/local
+fi
+
+LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+case $LINUX_DISTRIBUTION in
+ DB10)
+ cd $PRODUCT_INSTALL/lib/python3.7/site-packages
+ ln -sf PyQt5_sip-12.8.1-py3.7-linux-x86_64.egg/PyQt5
+ ;;
+ *)
+ ;;
+esac
+
+echo
+echo "########## END"