5050# 7 - One of more packages failed to install
5151
5252
53- if [ " ${MSYSTEM} " = " MINGW64" ]; then
54- export BUILD_BITNESS=" 64"
55- export BUILDCOMPONENT=" x86_64"
56- elif [ " ${MSYSTEM} " = " MSYS" ]; then
57- echo " Please run this script from an MINGW32 or MINGW64 type bash terminal appropriate"
58- echo " to the bitness you want to work on. You may do this once for each of them should"
59- echo " you wish to do both."
60- exit 2
61- else
62- echo " This script is not set up to handle systems of type ${MSYSTEM} , only MINGW32 or"
63- echo " MINGW64 are currently supported. Please rerun this in a bash terminal of one"
64- echo " of those two types."
53+ if [ " ${MSYSTEM} " != " CLANG64" ]; then
54+ echo " Please run this script from a CLANG64 type bash terminal."
55+ echo " Current MSYSTEM is: ${MSYSTEM} "
6556 exit 2
6657fi
6758
68- # We use this internally - but it is actually the same as ${MINGW_PREFIX}
69- export MINGW_BASE_DIR=$MSYSTEM_PREFIX
70- # A more compact - but not necessarily understood by other than MSYS/MINGW
71- # executables - path:
72- export MINGW_INTERNAL_BASE_DIR=" /mingw${BUILD_BITNESS} "
73- #
74- # FIXME: don't add duplicates but rearrange instead to put them in the "right" order:
75- #
76- export PATH=" ${MINGW_INTERNAL_BASE_DIR} /usr/local/bin:${MINGW_INTERNAL_BASE_DIR} /bin:/usr/bin:${PATH} "
59+ export MINGW_BASE_DIR=" ${MSYSTEM_PREFIX} "
60+ export PATH=" ${MINGW_BASE_DIR} /usr/local/bin:${MINGW_BASE_DIR} /bin:/usr/bin:${PATH} "
7761echo " MSYSTEM is: ${MSYSTEM} "
7862echo " PATH is now: ${PATH} "
7963echo " "
@@ -118,27 +102,27 @@ while true; do
118102 perl \
119103 bison \
120104 flex \
121- " mingw-w64- ${BUILDCOMPONENT } -ccache" \
122- " mingw-w64- ${BUILDCOMPONENT } -ntldd" \
123- " mingw-w64- ${BUILDCOMPONENT } -toolchain" \
124- " mingw-w64- ${BUILDCOMPONENT } -zlib" \
125- " mingw-w64- ${BUILDCOMPONENT } -icu" \
126- " mingw-w64- ${BUILDCOMPONENT } -openssl" \
127- " mingw-w64- ${BUILDCOMPONENT } -cmake" \
128- " mingw-w64- ${BUILDCOMPONENT } -ninja" \
129- " mingw-w64- ${BUILDCOMPONENT } -pcre2" \
130- " mingw-w64- ${BUILDCOMPONENT } -bzip2" \
131- " mingw-w64- ${BUILDCOMPONENT } -qt6-tools" \
132- " mingw-w64- ${BUILDCOMPONENT } -qt6-translations" \
133- " mingw-w64- ${BUILDCOMPONENT } -freetype" \
134- " mingw-w64- ${BUILDCOMPONENT } -harfbuzz" \
135- " mingw-w64- ${BUILDCOMPONENT } -libjpeg-turbo" \
136- " mingw-w64- ${BUILDCOMPONENT } -libpng" \
137- " mingw-w64- ${BUILDCOMPONENT } -zstd" \
138- " mingw-w64- ${BUILDCOMPONENT } -libb2" \
139- " mingw-w64- ${BUILDCOMPONENT } -brotli" \
140- " mingw-w64- ${BUILDCOMPONENT } -graphite2" \
141- " mingw-w64- ${BUILDCOMPONENT } -gettext" ; then
105+ " ${MINGW_PACKAGE_PREFIX } -ccache" \
106+ " ${MINGW_PACKAGE_PREFIX } -ntldd" \
107+ " ${MINGW_PACKAGE_PREFIX } -toolchain" \
108+ " ${MINGW_PACKAGE_PREFIX } -zlib" \
109+ " ${MINGW_PACKAGE_PREFIX } -icu" \
110+ " ${MINGW_PACKAGE_PREFIX } -openssl" \
111+ " ${MINGW_PACKAGE_PREFIX } -cmake" \
112+ " ${MINGW_PACKAGE_PREFIX } -ninja" \
113+ " ${MINGW_PACKAGE_PREFIX } -pcre2" \
114+ " ${MINGW_PACKAGE_PREFIX } -bzip2" \
115+ " ${MINGW_PACKAGE_PREFIX } -qt6-tools" \
116+ " ${MINGW_PACKAGE_PREFIX } -qt6-translations" \
117+ " ${MINGW_PACKAGE_PREFIX } -freetype" \
118+ " ${MINGW_PACKAGE_PREFIX } -harfbuzz" \
119+ " ${MINGW_PACKAGE_PREFIX } -libjpeg-turbo" \
120+ " ${MINGW_PACKAGE_PREFIX } -libpng" \
121+ " ${MINGW_PACKAGE_PREFIX } -zstd" \
122+ " ${MINGW_PACKAGE_PREFIX } -libb2" \
123+ " ${MINGW_PACKAGE_PREFIX } -brotli" \
124+ " ${MINGW_PACKAGE_PREFIX } -graphite2" \
125+ " ${MINGW_PACKAGE_PREFIX } -gettext" ; then
142126 break
143127 fi
144128
@@ -158,12 +142,21 @@ ccache --max-size=10G
158142# echo "=== Listing Environment Variables ==="
159143# printenv
160144
145+ # Detect the Qt version installed by pacman so we can build a matching static qtbase
146+ QT_VERSION=$( pacman -Q " ${MINGW_PACKAGE_PREFIX} -qt6-base" | awk ' {print $2}' | sed ' s/-.*//' )
147+ if [ -z " $QT_VERSION " ]; then
148+ echo " ERROR: Could not detect Qt version from pacman"
149+ exit 1
150+ fi
151+ echo " Detected system Qt version: ${QT_VERSION} "
152+ echo " QT_VERSION=${QT_VERSION} " >> $GITHUB_ENV
153+
161154echo " Debugging libbz2 symbols"
162155echo " BZ2 library:"
163- find /mingw64 /lib -name " *bz2*" -type f
156+ find ${MSYSTEM_PREFIX} /lib -name " *bz2*" -type f
164157echo " PCRE2 library:"
165- find /mingw64 /lib -name " *pcre2*" -type f
158+ find ${MSYSTEM_PREFIX} /lib -name " *pcre2*" -type f
166159echo " Freetype library:"
167- find /mingw64 /lib -name " *freetype*" -type f
160+ find ${MSYSTEM_PREFIX} /lib -name " *freetype*" -type f
168161
169162exit 0
0 commit comments