[Interest] Qt 5.15.7-lts-lgpl compile on M1 Silicon (macOS 10.12 Monterey) Issues

Michael Jackson mike.jackson at bluequartz.net
Sun Nov 6 23:07:56 CET 2022


I have been trying to compile 5.15.7-lts-lgpl on my M1 system running
Monterey. The actual compile seems to go off without a hitch for the
parts that I am compiling but when I get to the part of "make docs"
then I am getting an error but just not sure how to track this down
and Google doesn't seem to find my error.

here is the last part of the compile output:

---------
cd network/ && ( test -e Makefile ||
/Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/bin/qmake -o
Makefile /Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/network/network.pro
) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
Makefile prepare_docs
/Users/Shared/NX_SDK/Qt/5.15.7/clang_arm64/bin/qtattributionsscanner
/Users/Shared/OpenSource/qt-5.15.7-src/qtbase --filter
QDocModule=qtnetwork -o
/Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/src/network/codeattributions.qdoc
File /Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/3rdparty/libjpeg/qt_attribution.json:
Unknown key CopyrightFile.
File /Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/3rdparty/libjpeg/qt_attribution.json:
Expected JSON string as value of LicenseFiles.
/Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/src/network/qdoc_wrapper.sh
-outputdir /Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/doc/qtnetwork
-installdir /Users/Shared/NX_SDK/Qt/Docs/Qt-5.15.7
/Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/network/doc/qtnetwork.qdocconf
-prepare -indexdir
/Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/doc
-no-link-errors
-I/Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/network -I.
-I/Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/network/kernel
-I../../include -I../../include/QtNetwork
-I../../include/QtNetwork/5.15.7
-I../../include/QtNetwork/5.15.7/QtNetwork
-I../../include/QtCore/5.15.7 -I../../include/QtCore/5.15.7/QtCore
-I../../include/QtCore -I.moc
-I/Users/Shared/OpenSource/qt-5.15.7-src/qtbase/mkspecs/macx-clang
-F/Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/lib
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.1.6/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
qt.qdoc: Start qdoc for QtNetwork in dual process mode: prepare phase.
QIODevice::write: device not open
qt.qdoc: Parse source files for "QtNetwork"
qt.qdoc: Source files parsed for "QtNetwork"
qt.qdoc: End qdoc for QtNetwork in dual process mode: prepare phase.
cd sql/ && ( test -e Makefile ||
/Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/bin/qmake -o
Makefile /Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/sql/sql.pro
) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
Makefile prepare_docs
/Users/Shared/NX_SDK/Qt/5.15.7/clang_arm64/bin/qtattributionsscanner
/Users/Shared/OpenSource/qt-5.15.7-src/qtbase --filter
QDocModule=qtsql -o
/Users/Shared/OpenSource/qt-5.15.7-arm64-release/qtbase/src/sql/codeattributions.qdoc
File /Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/3rdparty/libjpeg/qt_attribution.json:
Unknown key CopyrightFile.
File /Users/Shared/OpenSource/qt-5.15.7-src/qtbase/src/3rdparty/libjpeg/qt_attribution.json:
Expected JSON string as value of LicenseFiles.
libc++abi: Pure virtual function called!
make[5]: *** [qtattributionsscanner] Abort trap: 6
make[4]: *** [sub-sql-prepare_docs] Error 2
make[3]: *** [sub-src-prepare_docs] Error 2
make[2]: *** [module-qtbase-prepare_docs] Error 2
make[1]: *** [html_docs] Error 2
make: *** [docs] Error 2
------------


Here is the configure that I am using:

#------------------------------------------------------------------------------
export LLVM_INSTALL_DIR=/opt/local/clang+llvm-15.0.2-arm64-apple-darwin21.0
cd $Qt5_BUILD_DIR
$DEV_ROOT/$Qt5_SOURCE_DIR/configure \
--prefix=$INSTALL_PREFIX \
--docdir=$DOC_INSTALL_PREFIX \
--examplesdir=$EXAMPLE_INSTALL_PREFIX \
-platform macx-clang \
-device-option QMAKE_APPLE_DEVICE_ARCHS=$ARCH \
-device-option QMAKE_MACOSX_DEPLOYMENT_TARGET=11.0 \
-$BUILD_TYPE \
-opensource -confirm-license \
-gui \
-widgets \
-no-gif \
-no-icu \
-no-pch \
-no-angle \
-no-dbus \
-no-sqlite \
-no-harfbuzz \
-skip multimedia \
-skip qtcanvas3d \
-skip qtcharts \
-skip qtconnectivity \
-skip qtgamepad \
-skip qtlocation \
-skip qtmultimedia \
-skip qtnetworkauth \
-skip qtpurchasing \
-skip qtremoteobjects \
-skip qtscript \
-skip qtsensors \
-skip qtserialbus \
-skip qtserialport \
-skip qtwebchannel \
-skip qtwebengine \
-skip qtwebsockets \
-skip qtxmlpatterns \
-skip qtquick3d \
-skip qtquickcontrols \
-skip qtquickcontrols2 \
-skip qtquicktimeline \
-skip qtdeclarative \
-nomake examples \
-nomake tests \
-make tools
--------------

It is always nice to have the documentation local but maybe not
completely needed as I can just rely on the online version of the
docs.

There are 3 small patches that get applied to make everything compile
on the M1 under Monterey. I can post those patches if we think it will
help.

Has anyone seen this error before by chance?

--
Mike Jackson


More information about the Interest mailing list