|
|
@ -14,16 +14,6 @@ MISSINGTOOLS=0
|
|
|
|
command -v 7z >/dev/null 2>&1 || { echo "Error: 7z (7zip) is not on the path."; MISSINGTOOLS=1; }
|
|
|
|
command -v 7z >/dev/null 2>&1 || { echo "Error: 7z (7zip) is not on the path."; MISSINGTOOLS=1; }
|
|
|
|
command -v cmake >/dev/null 2>&1 || { echo "Error: cmake (CMake) is not on the path."; MISSINGTOOLS=1; }
|
|
|
|
command -v cmake >/dev/null 2>&1 || { echo "Error: cmake (CMake) is not on the path."; MISSINGTOOLS=1; }
|
|
|
|
|
|
|
|
|
|
|
|
MISSINGPYTHON=0
|
|
|
|
|
|
|
|
if ! command -v python >/dev/null 2>&1; then
|
|
|
|
|
|
|
|
echo "Warning: Python is not on the path, automatic Qt installation impossible."
|
|
|
|
|
|
|
|
MISSINGPYTHON=1
|
|
|
|
|
|
|
|
elif ! python --version >/dev/null 2>&1; then
|
|
|
|
|
|
|
|
echo "Warning: Python is (probably) fake stub Python that comes bundled with newer versions of Windows, automatic Qt installation impossible."
|
|
|
|
|
|
|
|
echo "If you think you have Python installed, try changing the order of your PATH environment variable in Advanced System Settings."
|
|
|
|
|
|
|
|
MISSINGPYTHON=1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ $MISSINGTOOLS -ne 0 ]; then
|
|
|
|
if [ $MISSINGTOOLS -ne 0 ]; then
|
|
|
|
wrappedExit 1
|
|
|
|
wrappedExit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -889,30 +879,12 @@ printf "Qt ${QT_VER}... "
|
|
|
|
if [ -d "Qt/${QT_VER}" ]; then
|
|
|
|
if [ -d "Qt/${QT_VER}" ]; then
|
|
|
|
printf "Exists. "
|
|
|
|
printf "Exists. "
|
|
|
|
elif [ -z $SKIP_EXTRACT ]; then
|
|
|
|
elif [ -z $SKIP_EXTRACT ]; then
|
|
|
|
if [ $MISSINGPYTHON -ne 0 ]; then
|
|
|
|
|
|
|
|
echo "Can't be automatically installed without Python."
|
|
|
|
|
|
|
|
wrappedExit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd "$DEPS" > /dev/null
|
|
|
|
pushd "$DEPS" > /dev/null
|
|
|
|
if ! [ -d 'aqt-venv' ]; then
|
|
|
|
AQT_VERSION="v3.1.7"
|
|
|
|
echo " Creating Virtualenv for aqt..."
|
|
|
|
if ! [ -f "aqt_x64-${AQT_VERSION}.exe" ]; then
|
|
|
|
run_cmd python -m venv aqt-venv
|
|
|
|
download "aqt ${AQT_VERSION}"\
|
|
|
|
fi
|
|
|
|
"https://github.com/miurahr/aqtinstall/releases/download/${AQT_VERSION}/aqt_x64.exe" \
|
|
|
|
if [ -d 'aqt-venv/bin' ]; then
|
|
|
|
"aqt_x64-${AQT_VERSION}.exe"
|
|
|
|
VENV_BIN_DIR='bin'
|
|
|
|
|
|
|
|
elif [ -d 'aqt-venv/Scripts' ]; then
|
|
|
|
|
|
|
|
VENV_BIN_DIR='Scripts'
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Error: Failed to create virtualenv in expected location."
|
|
|
|
|
|
|
|
wrappedExit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# check version
|
|
|
|
|
|
|
|
aqt-venv/${VENV_BIN_DIR}/pip list | grep 'aqtinstall\s*1.1.3' || [ $? -ne 0 ]
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
|
|
|
|
echo " Installing aqt wheel into virtualenv..."
|
|
|
|
|
|
|
|
run_cmd "aqt-venv/${VENV_BIN_DIR}/pip" install aqtinstall==1.1.3
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
popd > /dev/null
|
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
|
|
|
@ -921,7 +893,7 @@ printf "Qt ${QT_VER}... "
|
|
|
|
mkdir Qt
|
|
|
|
mkdir Qt
|
|
|
|
cd Qt
|
|
|
|
cd Qt
|
|
|
|
|
|
|
|
|
|
|
|
run_cmd "${DEPS}/aqt-venv/${VENV_BIN_DIR}/aqt" install ${QT_VER} windows desktop "win${BITS}_msvc${QT_MSVC_YEAR}${SUFFIX}"
|
|
|
|
run_cmd "${DEPS}/aqt_x64-${AQT_VERSION}.exe" install-qt windows desktop ${QT_VER} "win${BITS}_msvc${QT_MSVC_YEAR}${SUFFIX}"
|
|
|
|
|
|
|
|
|
|
|
|
printf " Cleaning up extraneous data... "
|
|
|
|
printf " Cleaning up extraneous data... "
|
|
|
|
rm -rf Qt/{aqtinstall.log,Tools}
|
|
|
|
rm -rf Qt/{aqtinstall.log,Tools}
|
|
|
|