Qt 6 broken on ARM (aarch64 and armv7) since 3.15
Using the following Dockerfile...
FROM alpine:latest AS build
# Install build dependencies
RUN apk add --no-cache \
qt6-qtbase-dev \
qt6-qtdeclarative-dev \
g++ \
make \
git
WORKDIR /app/QJsonSerializer
RUN git clone --depth 1 https://github.com/Znurre/QJsonSerializer.git . \
&& /usr/lib/qt6/bin/qmake \
&& make -j`nproc` \
&& make install
...with the following command:
docker buildx build --platform=linux/arm64/8 .
...will result in the following error:
#0 1.952 /usr/lib/qt6/mkspecs/features/toolchain.prf:76: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
#0 1.958 Project ERROR: failed to parse default search paths from compiler output
This works on x86_64. It also work when changing latest
to 3.14
. Both 3.15
and edge
have this problem on ARM, possibly other architectures as well.