<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Build failed Qt6.5 on Raspberry Pi CM4]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I build Qt6.5.1 from the source code on the Raspberry Pi CM4 with 4GB RAM, and 32GB eMMC.</p>
<p dir="auto">Steps:</p>
<pre><code>wget https://qt-mirror.dannhauer.de/archive/qt/6.5/6.5.1/single/qt-everywhere-src-6.5.1.tar.xz

tar -xf qt-everywhere-src-6.5.1.tar.xz

cd qt-everywhere-src-6.5.1

cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=/opt/Qt/6.5.1 \
-DQT_FEATURE_opengles2=ON \
-DQT_FEATURE_opengles3=ON \
-DQT_FEATURE_kms=ON \
-DQT_FEATURE_xcb=ON \
-DQT_FEATURE_vulkan=ON .

cmake --build . --parallel
</code></pre>
<p dir="auto">The message error:</p>
<pre><code>[761/11656] Performing configure step for 'gn'
-- The CXX compiler identification is GNU 10.2.1
-- The C compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python3: /usr/bin/python3.9 (found version "3.9.2") found components: Interpreter
-- Found Ninja: /usr/bin/ninja (found suitable version "1.10.1", minimum required is "1.7.2")
-- Configuring done (4.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/smarthome/qt-everywhere-src-6.5.1/qtwebengine/src/gn
[761/11656] Performing build step for 'gn'
[0/1] Generating gn
ninja: Entering directory `/home/smarthome/qt-everywhere-src-6.5.1/qtwebengine/src/gn/Release'
[195/195] LINK gn
[901/11656] Compiling syncqt
[1/1] Cleaning all built files...
Cleaning... 2 files.
[1/2] Building CXX object CMakeFiles/syncqt.dir/main.cpp.o
[2/2] Linking CXX executable /home/smarthome/qt-everywhere-src-6.5.1/qtbase/libexec/syncqt
[1292/11656] Building CXX object qtbase/src/corelib/CMakeFiles/Core.dir/mimetypes/qmimemagicrule.cpp.o
...
...
6201 | void TBuiltIns::addQueryFunctions(TSampler sampler, const TString&amp; typeName, int version, EProfile profile)
      |      ^~~~~~~~~
/home/smarthome/qt-everywhere-src-6.5.1/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp: In member function ‘void QtShaderTools::glslang::TBuiltIns::addGatherFunctions(QtShaderTools::glslang::TSampler, const TString&amp;, int, EProfile)’:
/home/smarthome/qt-everywhere-src-6.5.1/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp:6824:6: note: parameter passing for argument of type ‘QtShaderTools::glslang::TSampler’ changed in GCC 9.1
 6824 | void TBuiltIns::addGatherFunctions(TSampler sampler, const TString&amp; typeName, int version, EProfile profile)
      |      ^~~~~~~~~
[2757/11656] Building CXX object qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.o
FAILED: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.o
/usr/bin/c++ -DLanguageServerPrivate_EXPORTS -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_LANGUAGESERVER_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_JSONRPC_LIB -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/smarthome/qt-everywhere-src-6.5.1/qtlanguageserver/src/languageserver/LanguageServerPrivate_autogen/include -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtLanguageServer -I/home/smarthome/qt-everywhere-src-6.5.1/qtlanguageserver/src/languageserver -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtLanguageServer/6.5.1 -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtLanguageServer/6.5.1/QtLanguageServer -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/src/corelib -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtCore/6.5.1 -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtCore/6.5.1/QtCore -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtCore -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/mkspecs/linux-g++ -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtJsonRpc -I/home/smarthome/qt-everywhere-src-6.5.1/qtlanguageserver/src/jsonrpc -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtJsonRpc/6.5.1 -I/home/smarthome/qt-everywhere-src-6.5.1/qtbase/include/QtJsonRpc/6.5.1/QtJsonRpc -DNDEBUG -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -Wsuggest-override -Winvalid-pch -include /home/smarthome/qt-everywhere-src-6.5.1/qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/cmake_pch.hxx -MD -MT qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.o -MF qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.o.d -o qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.o -c /home/smarthome/qt-everywhere-src-6.5.1/qtlanguageserver/src/languageserver/qlanguageservergen.cpp
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[2762/11656] Building CXX object qtshadertools/src/SPIRV-Cross/CMakeFiles/BundledSpirv_Cross.dir/__/3rdparty/SPIRV-Cross/spirv_msl.cpp.o
ninja: build stopped: subcommand failed.
</code></pre>
]]></description><link>https://forum.qt.io/topic/145663/build-failed-qt6-5-on-raspberry-pi-cm4</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 05:59:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145663.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Jun 2023 08:42:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Build failed Qt6.5 on Raspberry Pi CM4 on Thu, 15 Jun 2023 05:10:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kevin-nguyen">@<bdi>Kevin-Nguyen</bdi></a> said in <a href="/post/761045">Build failed Qt6.5 on Raspberry Pi CM4</a>:</p>
<blockquote>
<p dir="auto">When I compile the qtdeclarative package separately, this error still occurs.<br />
Therefore, it cannot be due to a lack of RAM.</p>
</blockquote>
<p dir="auto">Why not? Perhaps qlanguageservergen.cpp.o is an very large binary and you don't have enough RAM to generate that file.</p>
<p dir="auto">Anyway, see <a href="https://www.google.com/search?q=%22Killed+signal+terminated+program+cc1plus%22" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.google.com/search?q="Killed+signal+terminated+program+cc1plus"</a> -- insufficient memory seems to be the usual culprit. You can try increasing your swap size, but cross-compiling from a desktop host is the recommended approach.</p>
]]></description><link>https://forum.qt.io/post/761486</link><guid isPermaLink="true">https://forum.qt.io/post/761486</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Thu, 15 Jun 2023 05:10:16 GMT</pubDate></item><item><title><![CDATA[Reply to Build failed Qt6.5 on Raspberry Pi CM4 on Sat, 10 Jun 2023 02:45:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> I determined the problem was in the <strong>qtdeclarative</strong> package.<br />
When I compile the <strong>qtdeclarative</strong> package separately, this error still occurs.<br />
Therefore, it cannot be due to a lack of RAM.</p>
<pre><code>cmake --build . -- qtdeclarative
</code></pre>
<p dir="auto">The above error occurred</p>
]]></description><link>https://forum.qt.io/post/761045</link><guid isPermaLink="true">https://forum.qt.io/post/761045</guid><dc:creator><![CDATA[Kevin Nguyen]]></dc:creator><pubDate>Sat, 10 Jun 2023 02:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to Build failed Qt6.5 on Raspberry Pi CM4 on Fri, 09 Jun 2023 14:20:06 GMT]]></title><description><![CDATA[<p dir="auto">I'm not sure if 4GB RAM is enough to build Qt, especially with the <code>--parallel</code> option. 4 GB is definitely not enough to build Qt WebEngine.</p>
]]></description><link>https://forum.qt.io/post/761011</link><guid isPermaLink="true">https://forum.qt.io/post/761011</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Fri, 09 Jun 2023 14:20:06 GMT</pubDate></item></channel></rss>