mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
ENH: initial support for building ParaView with QT5
- still issues with the required version eg, system has qt-5.5, but ParaView tries to use qt-5.6
This commit is contained in:
@ -307,23 +307,31 @@ addQtSupport()
|
||||
# parse -> "Using Qt version X.Y.Z in ..."
|
||||
QtVersion=$($qmake -query QT_VERSION)
|
||||
|
||||
# Split Major.Minor.Revision - could also use IFS hacking
|
||||
set -- $(echo "$QtVersion" | sed -e 's/\./ /g')
|
||||
case "$QtVersion" in
|
||||
3.* | 4.[0-4]*)
|
||||
# QT is too old
|
||||
cat <<ERROR
|
||||
----
|
||||
Error: ${0##*/}
|
||||
|
||||
QtMajor=$1
|
||||
QtMinor=$2
|
||||
|
||||
if [ $QtMajor -lt 4 -o $QtMajor -eq 4 -a $QtMinor -lt 5 ]
|
||||
then
|
||||
echo "*** Error: Qt version provided < 4.5"
|
||||
echo "*** Please use the -qmake option to specify the location of a version of Qt >= 4.5"
|
||||
echo "*** e.g."
|
||||
echo "*** -qmake /usr/local/qt-4.6.2/bin/qmake"
|
||||
echo "*** -qmake $installBASE/qt-4.6.2/bin/qmake"
|
||||
QT version ($QtVersion) provided < 4.5
|
||||
Please use the -qmake option to specify the location of a newer QT version
|
||||
For example,
|
||||
... -qmake /usr/local/qt-4.6.2/bin/qmake
|
||||
... -qmake $installBASE/qt-4.6.2/bin/qmake
|
||||
----
|
||||
ERROR
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
5.*)
|
||||
# QT4 is the default, must specify QT5 explicitly
|
||||
addCMakeVariable "PARAVIEW_QT_VERSION:STRING=5"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
echo "*** Error: cannot find qmake either at \$QMAKE_PATH or in current \$PATH"
|
||||
echo "Error: cannot find qmake either at \$QMAKE_PATH or in current \$PATH"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user