[Development] Building Qt6 from source
Felix Crazzolara
felix.crazzolara at gmail.com
Sun Jun 19 12:42:43 CEST 2022
Dear everyone,
I would like to build Qt 6.3.1 from source. Unfortunately, when building
the tests I got the following build error:
[1/367] Running moc --collect-json for target tst_qmlsplitlib
FAILED:
qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_release_metatypes.json.gen
qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_release_metatypes.json
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_release_metatypes.json.gen
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_release_metatypes.json
cd
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib
&&
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtbase/libexec/moc
-o
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_release_metatypes.json.gen
--collect-json
@/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/tst_qmlsplitlib_json_file_list.txt
&& /home/felix/apps/software_tools/bin/cmake -E copy_if_different
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_release_metatypes.json.gen
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/meta_types/qt6tst_qmlsplitlib_release_metatypes.json
Error opening
/home/felix/git/software_tools/qt-everywhere-src-6.3.1/qtdeclarative/tests/auto/qml/qmlsplitlib/tst_qmlsplitlib_autogen/include/moc_tst_qmlsplitlib_library_tst_qmlsplitlib.cpp.json
for reading
ninja: build stopped: subcommand failed.
My system specs are:
Ubuntu 20.04.4 LTS
cmake version 3.21.3
gcc (GCC) 11.2.0
g++ (GCC) 11.2.0
ninja version: 1.10.2.git.kitware.jobserver-1
I got the sources from the Qt website. I tried to track down why this error
occurs, but wasn't able to do so. Does someone have an idea why this error
occurs? If someone has experience with building Qt 6 on Ubuntu 20 with a
different CMake version or other Qt version, I'd be happy to try that as
well.
Many thanks and best regards,
Felix Crazzolara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220619/3e198c0c/attachment.htm>
More information about the Development
mailing list