<?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[Failed call: &quot;QT_INSTALL_PREFIX&quot;]]></title><description><![CDATA[<p dir="auto">I try compile <a href="https://invent.kde.org/frameworks/syntax-highlighting" target="_blank" rel="noopener noreferrer nofollow ugc">https://invent.kde.org/frameworks/syntax-highlighting</a><br />
My apt Qt6 install version is  6.2.4<br />
KDE framework for syntax highlight requires version 6.4.0<br />
I install from sources to /usr/local/Qt-6.4.0/<br />
If I run cmake .. of syntax-highlighting<br />
is error</p>
<pre><code>$ cmake ..

CMake Warning at /usr/local/share/ECM/modules/ECMQueryQt.cmake:97 (message):
  Failed call: "QT_INSTALL_PREFIX"
Call Stack (most recent call first):
  /usr/local/share/ECM/kde-modules/KDEInstallDirs6.cmake:199 (ecm_query_qt)
  /usr/local/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:12 (include)


CMake Error at /usr/local/share/ECM/modules/ECMQueryQt.cmake:98 (message):
  Qt6 qtpaths call failed: 101
Call Stack (most recent call first):
  /usr/local/share/ECM/kde-modules/KDEInstallDirs6.cmake:199 (ecm_query_qt)
  /usr/local/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!
See also "/home/andrzej/wazne/gitmy/syntax-highlighting/build/CMakeFiles/CMakeOutput.log".
</code></pre>
]]></description><link>https://forum.qt.io/topic/147645/failed-call-qt_install_prefix</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 09:25:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/147645.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Aug 2023 14:49:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Failed call: &quot;QT_INSTALL_PREFIX&quot; on Tue, 08 Aug 2023 20:11:25 GMT]]></title><description><![CDATA[<p dir="auto">You can't mix two different Qt major versions.</p>
<p dir="auto">From the looks of it, you did not point CMake to your custom Qt installation. Check CMAKE_PREFIX_PATH.</p>
]]></description><link>https://forum.qt.io/post/768027</link><guid isPermaLink="true">https://forum.qt.io/post/768027</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 08 Aug 2023 20:11:25 GMT</pubDate></item><item><title><![CDATA[Reply to Failed call: &quot;QT_INSTALL_PREFIX&quot; on Tue, 08 Aug 2023 09:49:56 GMT]]></title><description><![CDATA[<p dir="auto">After</p>
<pre><code>sudo apt install qtbase5-private-dev qt6-tools-dev qt6-l10n-tools
</code></pre>
<p dir="auto">error changed to</p>
<pre><code>CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt6Network/Qt6NetworkPlugins.cmake:5 (__qt_internal_include_plugin_packages):
  Unknown CMake command "__qt_internal_include_plugin_packages".
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Qt6Network/Qt6NetworkConfig.cmake:131 (include)
  /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake:219 (find_package)
  CMakeLists.txt:49 (find_package)
</code></pre>
]]></description><link>https://forum.qt.io/post/767962</link><guid isPermaLink="true">https://forum.qt.io/post/767962</guid><dc:creator><![CDATA[AndrzejB]]></dc:creator><pubDate>Tue, 08 Aug 2023 09:49:56 GMT</pubDate></item><item><title><![CDATA[Reply to Failed call: &quot;QT_INSTALL_PREFIX&quot; on Tue, 08 Aug 2023 07:24:27 GMT]]></title><description><![CDATA[<p dir="auto">QT_INSTALL_PREFIX was probably in cmake was:</p>
<pre><code>find_package(ECM 5.240.0 REQUIRED NO_MODULE)
</code></pre>
<p dir="auto">I changed it to</p>
<pre><code>find_package(ECM REQUIRED NO_MODULE)
</code></pre>
<p dir="auto">Next I install from sources Qt 6.5.2 with standard prefix /usr<br />
and changed</p>
<pre><code>set(REQUIRED_QT_VERSION 6.4.0)
find_package(Qt6 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED COMPONENTS Core Network Test)
</code></pre>
<p dir="auto">to</p>
<pre><code>find_package(Qt6 NO_MODULE REQUIRED COMPONENTS Core Network Test)
</code></pre>
<p dir="auto">now is not QT_INSTALL_PREFIX, still error with CorePrivate</p>
<pre><code>-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
CMake Error at /usr/lib/cmake/Qt6Core/Qt6CoreVersionlessTargets.cmake:37 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: Qt::Core

  Targets not yet defined: Qt::CorePrivate

Call Stack (most recent call first):
  /usr/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:55 (include)
  /usr/lib/cmake/Qt6/Qt6Config.cmake:157 (find_package)
  CMakeLists.txt:46 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/andrzej/wazne/gitmy/syntax-highlighting/build/CMakeFiles/CMakeOutput.log".
</code></pre>
<p dir="auto">note: if I change Qt6 to Qt5 is without cmake errors, but unfortunately in .cpp code is used QList.data() which is error in Qt5</p>
]]></description><link>https://forum.qt.io/post/767947</link><guid isPermaLink="true">https://forum.qt.io/post/767947</guid><dc:creator><![CDATA[AndrzejB]]></dc:creator><pubDate>Tue, 08 Aug 2023 07:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to Failed call: &quot;QT_INSTALL_PREFIX&quot; on Mon, 07 Aug 2023 18:34:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">How did you point cmake to your custom Qt build ?</p>
]]></description><link>https://forum.qt.io/post/767894</link><guid isPermaLink="true">https://forum.qt.io/post/767894</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 07 Aug 2023 18:34:48 GMT</pubDate></item></channel></rss>