<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[QElectroTech — Linux compile with Qt online versions]]></title>
		<link>https://qelectrotech.org/forum/viewtopic.php?id=1525</link>
		<atom:link href="https://qelectrotech.org/forum/extern.php?action=feed&amp;tid=1525&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Linux compile with Qt online versions.]]></description>
		<lastBuildDate>Mon, 03 Oct 2022 15:52:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=16811#p16811</link>
			<description><![CDATA[<p> Qt 6.4 + KF6 checks:<br /><a href="https://download.qelectrotech.org/qet/scorpio/Qt6.4_test/Qt6.4._cmake.txt">https://download.qelectrotech.org/qet/s … _cmake.txt</a><br /><a href="https://download.qelectrotech.org/qet/scorpio/Qt6.4_test/ninja_build.txt">https://download.qelectrotech.org/qet/s … _build.txt</a><br /><a href="https://download.qelectrotech.org/qet/scorpio/Qt6.4_test/ninja_log.txt">https://download.qelectrotech.org/qet/s … ja_log.txt</a></p><br /><p><a href="https://download.qelectrotech.org/qet/scorpio/Qt6.4_test/qmake6.txt">https://download.qelectrotech.org/qet/s … qmake6.txt</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 03 Oct 2022 15:52:37 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=16811#p16811</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=16009#p16009</link>
			<description><![CDATA[<p> Qt6.2.4 + KF5 5.93 errors log:</p><p><a href="https://download.qelectrotech.org/qet/scorpio/Qt6.2.4.error.txt">https://download.qelectrotech.org/qet/s … .error.txt</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 28 Mar 2022 15:13:11 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=16009#p16009</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15928#p15928</link>
			<description><![CDATA[<p> <a href="https://invent.kde.org/graphics/digikam/-/commit/f5274f011cae4c0f518c708bd55369f4fa51db25">https://invent.kde.org/graphics/digikam … f4fa51db25</a><br /></p><div class="quotebox"><blockquote><p>KF6 is now compiled to 100%, excpeted libksane and Marble, not yet ported to...<br />KF6 is now compiled to 100%, excpeted libksane and Marble, not yet ported to Qt6. Both will be checked later.<br />Compile Qt6 version of fcitx-qt.<br />Now we can start to check QtAV, and start to backport all Qt6 port patches.</p></blockquote></div><p><a href="https://bugs.kde.org/show_bug.cgi?id=264879">https://bugs.kde.org/show_bug.cgi?id=264879</a><br /><a href="https://bugs.kde.org/show_bug.cgi?id=416704">https://bugs.kde.org/show_bug.cgi?id=416704</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Thu, 10 Mar 2022 17:31:29 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15928#p15928</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15817#p15817</link>
			<description><![CDATA[<p> <a href="https://www.volkerkrause.eu/2022/02/12/kf6-unit-test-status.html">https://www.volkerkrause.eu/2022/02/12/ … tatus.html</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Sat, 12 Feb 2022 19:19:03 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15817#p15817</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15802#p15802</link>
			<description><![CDATA[<p> thanks, looking at it.<br />And I&#039;ll give it a try.<br />KF6 or 5 source of my frustration... </p>]]></description>
			<author><![CDATA[null@example.com (De-Backer)]]></author>
			<pubDate>Mon, 07 Feb 2022 15:16:38 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15802#p15802</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15801#p15801</link>
			<description><![CDATA[<p> <a href="https://www.ics.com/blog/get-ready-port-your-code-qt-6-2022">https://www.ics.com/blog/get-ready-port … -qt-6-2022</a><br /><a href="https://www.qt.io/blog/porting-from-qt-5-to-qt-6-using-qt5compat-library">https://www.qt.io/blog/porting-from-qt- … at-library</a><br /><a href="https://www.qt.io/blog/porting-from-qt-5-to-qt-6-using-clazy-checks">https://www.qt.io/blog/porting-from-qt- … azy-checks</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 07 Feb 2022 14:14:48 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15801#p15801</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15746#p15746</link>
			<description><![CDATA[<p> </p><div class="quotebox"><cite>scorpio810 wrote:</cite><blockquote><p>@ Simon, <br />you can compile last 0.9-dev on Qt6.X without error?, or saw like me:</p></blockquote></div><p>no, needs to debug.:-/ </p>]]></description>
			<author><![CDATA[null@example.com (De-Backer)]]></author>
			<pubDate>Thu, 20 Jan 2022 19:44:38 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15746#p15746</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15737#p15737</link>
			<description><![CDATA[<p> Possible fix ? ... I don&#039;t know this part ...<br />#if TODO_LIST<br />#pragma message(&quot;@TODO remove code for QT 6 or later&quot;)<br />#&nbsp; &nbsp; &nbsp; &nbsp; pragma message(&quot;@TODO ad Core5Compat to Cmake&quot;)<br />#endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qDebug() &lt;&lt; &quot;Help code for QT 6 or later&quot;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QString&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; path_ = collectionPath(false);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QRegularExpression rx (&quot;^(.*)/(.*\\.elmt)$&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!rx.isValid())<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; qWarning()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt;QObject::tr(&quot;this is an error in the code&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; rx.errorString()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; rx.patternErrorOffset();<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QRegularExpressionMatch match = rx.match(path_);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (match.hasMatch())<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return project()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;embeddedElementCollection()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;addElementDefinition(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; match.captured(1),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; match.captured(2),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xml_document.documentElement());<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qDebug() &lt;&lt; &quot;ElementsLocation::setXml :&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot; rx don&#039;t match&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />#endif</p><p>But it segfault again .. further in the code ..</p><p>nclude-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include ../sources/titleblocktemplate.h -o release/moc_titleblocktemplate.cpp<br />../sources/TerminalStrip/terminalstrip.cpp: In member function ‘bool PhysicalTerminal::setLevelOf(shared_real_terminal, int)’:<br />../sources/TerminalStrip/terminalstrip.cpp:305:76: error: no matching function for call to ‘min(int&amp;, qsizetype)’<br />&nbsp; 305 |&nbsp; &nbsp; &nbsp;m_real_terminal.swapItemsAt(i, std::min(level, m_real_terminal.size()-1));<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</p><p>&nbsp; &nbsp; &nbsp; <br />In file included from ../sources/TerminalStrip/ui/terminalstripeditor.cpp:18:<br />../sources/TerminalStrip/ui/terminalstripeditor.h:74:45: error: field ‘m_item_strip_H’ has incomplete type ‘QHash&lt;QTreeWidgetItem*, TerminalStrip*&gt;’<br />&nbsp; &nbsp;74 |&nbsp; &nbsp;QHash&lt;QTreeWidgetItem *, TerminalStrip *&gt; m_item_strip_H;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~<br />In file included from ../../Qt/6.2.2/gcc_64/include/QtCore/qtypeinfo.h:42,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtCore/qglobal.h:1422,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtGui/qtguiglobal.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/qdialog.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/QDialog:1,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../sources/TerminalStrip/ui/terminalstripeditor.h:21,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../sources/TerminalStrip/ui/terminalstripeditor.cpp:18:<br />../../Qt/6.2.2/gcc_64/include/QtCore/qcontainerfwd.h:51:43: note: declaration of ‘class QHash&lt;QTreeWidgetItem*, TerminalStrip*&gt;’<br />&nbsp; &nbsp;51 | template &lt;typename Key, typename T&gt; class QHash;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~<br />In file included from ../sources/TerminalStrip/ui/terminalstripeditor.cpp:18:<br />../sources/TerminalStrip/ui/terminalstripeditor.h:75:43: error: field ‘m_uuid_terminal_H’ has incomplete type ‘QHash&lt;QUuid, QPointer&lt;TerminalElement&gt; &gt;’<br />&nbsp; &nbsp;75 |&nbsp; &nbsp;QHash&lt;QUuid, QPointer&lt;TerminalElement&gt;&gt; m_uuid_terminal_H;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~<br />In file included from ../../Qt/6.2.2/gcc_64/include/QtCore/qtypeinfo.h:42,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtCore/qglobal.h:1422,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtGui/qtguiglobal.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/qdialog.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/QDialog:1,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../sources/TerminalStrip/ui/terminalstripeditor.h:21,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../sources/TerminalStrip/ui/terminalstripeditor.cpp:18:<br />../../Qt/6.2.2/gcc_64/include/QtCore/qcontainerfwd.h:51:43: note: declaration of ‘class QHash&lt;QUuid, QPointer&lt;TerminalElement&gt; &gt;’<br />&nbsp; &nbsp;51 | template &lt;typename Key, typename T&gt; class QHash;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~<br />In file included from ../sources/TerminalStrip/ui/terminalstripeditor.cpp:18:<br />../sources/TerminalStrip/ui/terminalstripeditor.h:76:41: error: field ‘m_uuid_strip_H’ has incomplete type ‘QHash&lt;QUuid, QPointer&lt;TerminalStrip&gt; &gt;’<br />&nbsp; &nbsp;76 |&nbsp; &nbsp;QHash&lt;QUuid, QPointer&lt;TerminalStrip&gt;&gt; m_uuid_strip_H;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~<br />In file included from ../../Qt/6.2.2/gcc_64/include/QtCore/qtypeinfo.h:42,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtCore/qglobal.h:1422,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtGui/qtguiglobal.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/qdialog.h:43,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../Qt/6.2.2/gcc_64/include/QtWidgets/QDialog:1,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../sources/TerminalStrip/ui/terminalstripeditor.h:21,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../sources/TerminalStrip/ui/terminalstripeditor.cpp:18:<br />../../Qt/6.2.2/gcc_64/include/QtCore/qcontainerfwd.h:51:43: note: declaration of ‘class QHash&lt;QUuid, QPointer&lt;TerminalStrip&gt; &gt;’<br />&nbsp; &nbsp;51 | template &lt;typename Key, typename T&gt; class QHash;</p><p><span class="postimg"><img src="https://download.qelectrotech.org/qet/forum_img_2/Qt6_FTBFS.png" alt="https://download.qelectrotech.org/qet/forum_img_2/Qt6_FTBFS.png" /></span></p><p><a href="https://doc.qt.io/qt-6/portingguide.html">https://doc.qt.io/qt-6/portingguide.html</a><br /><a href="https://doc.qt.io/qt-6/porting-to-qt6-using-clazy.html">https://doc.qt.io/qt-6/porting-to-qt6-using-clazy.html</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Mon, 17 Jan 2022 12:35:58 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15737#p15737</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15734#p15734</link>
			<description><![CDATA[<p> @ Simon, <br />you can compile last 0.9-dev on Qt6.X without error?, or saw like me:<br />../sources/ElementsCollection/elementslocation.cpp: In member function ‘bool ElementsLocation::setXml(const QDomDocument&amp;) const’:<br />../sources/ElementsCollection/elementslocation.cpp:783:11: error: ‘class QRegularExpression’ has no member named ‘exactMatch’; did you mean ‘NoMatch’?<br />&nbsp; &nbsp; if (rx.exactMatch(path_))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NoMatch<br />../sources/ElementsCollection/elementslocation.cpp:788:10: error: ‘class QRegularExpression’ has no member named ‘cap’; did you mean ‘swap’?<br />&nbsp; &nbsp; &nbsp; &nbsp;rx.cap(1),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swap<br />../sources/ElementsCollection/elementslocation.cpp:789:10: error: ‘class QRegularExpression’ has no member named ‘cap’; did you mean ‘swap’?<br />&nbsp; &nbsp; &nbsp; &nbsp;rx.cap(2),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swap </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Sun, 16 Jan 2022 19:08:59 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15734#p15734</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15732#p15732</link>
			<description><![CDATA[<p> The Extra CMake Modules package, or ECM, adds to the modules provided by CMake, including ones used by </p><div class="codebox"><pre><code>find_package()</code></pre></div><p><a href="https://api.kde.org/frameworks/extra-cmake-modules/html/index.html">https://api.kde.org/frameworks/extra-cm … index.html</a> </p>]]></description>
			<author><![CDATA[null@example.com (De-Backer)]]></author>
			<pubDate>Sun, 16 Jan 2022 16:35:51 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15732#p15732</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15730#p15730</link>
			<description><![CDATA[<p> CMake Warning at build/_deps/kcoreaddons-src/CMakeLists.txt:7 (find_package):<br />&nbsp; Could not find a configuration file for package &quot;ECM&quot; that is compatible&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; with requested version &quot;5.77.0&quot;.&nbsp; ..... What the fuck ...</p><div class="codebox"><pre><code>laurent@debian:~$ apt-cache policy libkf5coreaddons-dev
libkf5coreaddons-dev:
  Installé : 5.78.0-4
  Candidat : 5.78.0-4
 Table de version :
 *** 5.78.0-4 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        100 /var/lib/dpkg/status

laurent@debian:~$ apt-cache policy libkf5widgetsaddons-dev
libkf5widgetsaddons-dev:
  Installé : 5.78.0-2
  Candidat : 5.78.0-2
 Table de version :
 *** 5.78.0-2 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        100 /var/lib/dpkg/status</code></pre></div><div class="codebox"><pre><code>laurent@debian:~/kde/mkspecs/modules$ cat qt_KCoreAddons.pri 
QT.KCoreAddons.VERSION = 5.91.0
QT.KCoreAddons.MAJOR_VERSION = 5
QT.KCoreAddons.MINOR_VERSION = 91
QT.KCoreAddons.PATCH_VERSION = 0
QT.KCoreAddons.name = KF5CoreAddons
QT.KCoreAddons.module = KF5CoreAddons
QT.KCoreAddons.defines = 
QT.KCoreAddons.includes = $$PWD/../../include/KF6/KCoreAddons
QT.KCoreAddons.private_includes =
QT.KCoreAddons.libs = $$PWD/../../lib/x86_64-linux-gnu
QT.KCoreAddons.depends = core
QT.KCoreAddons.module_config = </code></pre></div><br /><div class="codebox"><pre><code>laurent@debian:~/Qt/6.2.2/gcc_64/mkspecs/modules$ cat qt_KCoreAddons.pri 
QT.KCoreAddons.VERSION = 5.91.0
QT.KCoreAddons.MAJOR_VERSION = 5
QT.KCoreAddons.MINOR_VERSION = 91
QT.KCoreAddons.PATCH_VERSION = 0
QT.KCoreAddons.name = KF5CoreAddons
QT.KCoreAddons.module = KF5CoreAddons
QT.KCoreAddons.defines = 
QT.KCoreAddons.includes = ~/kde/include/KF6/KCoreAddons
QT.KCoreAddons.private_includes =
QT.KCoreAddons.libs = ~/kde/lib/x86_64-linux-gnu
QT.KCoreAddons.depends = core
QT.KCoreAddons.module_config = </code></pre></div><div class="codebox"><pre><code>laurent@debian:~/qet_git/build$ /usr/local/bin/cmake .. -G Ninja -DBUILD_WITH_QT6=ON -DEXCLUDE_DEPRECATED_BEFORE_AND_AT=CURRENT
-- The CXX compiler identification is GNU 8.3.0
-- 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
_____________________________________________________________________
Copyright 2006 The QElectroTech Team
This file is part of QElectroTech.

QElectroTech is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
QElectroTech is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with QElectroTech.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
_____________________________________________________________________
Add sub directorie tests
.____________________________________________________________________
. PROJECT_NAME              :unittests
. PROJECT_SOURCE_DIR        :/home/laurent/qet_git/tests
. Add sub directorie catch
..___________________________________________________________________
.. PROJECT_NAME              :C_unittests
.. PROJECT_SOURCE_DIR        :/home/laurent/qet_git/tests/catch
.. QET_DIR                   :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
 - qet_compilation_vars
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
.. QT_VERSION_MAJOR   :6
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found WrapOpenGL: TRUE  
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version &quot;0.5.0&quot;)
-- Found WrapVulkanHeaders: /usr/include  
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version &quot;1.1.1d&quot;)  
-- Found WrapOpenSSLHeaders: /usr/include (found version &quot;1.1.1d&quot;) 
 - fetch_kdeaddons
 - fetch_singleapplication
 - fetch_pugixml
.. CATCH_INCLUDE_DIR is not set,assuming Catch2 can be found automatically in your system
. Add sub directorie googletest
..___________________________________________________________________
.. PROJECT_NAME              :G_unittests
.. PROJECT_SOURCE_DIR        :/home/laurent/qet_git/tests/googletest
.. QET_DIR                   :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
 - qet_compilation_vars
.. QT_VERSION_MAJOR          :6
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version &quot;0.5.0&quot;)
CMake Deprecation Warning at build/_deps/gtest-src/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake &lt; 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument &lt;min&gt; value or use a ...&lt;max&gt; suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 8.3.0
-- 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
CMake Deprecation Warning at build/_deps/gtest-src/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
  Compatibility with CMake &lt; 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument &lt;min&gt; value or use a ...&lt;max&gt; suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at build/_deps/gtest-src/googletest/CMakeLists.txt:56 (cmake_minimum_required):
  Compatibility with CMake &lt; 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument &lt;min&gt; value or use a ...&lt;max&gt; suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Found PythonInterp: /usr/bin/python (found version &quot;2.7.16&quot;) 
 - fetch_kdeaddons
 - fetch_singleapplication
 - fetch_pugixml
. Add sub directorie googlemock
..___________________________________________________________________
.. PROJECT_NAME              :G_unitmocktests
.. PROJECT_SOURCE_DIR        :/home/laurent/qet_git/tests/googlemock
.. QET_DIR                   :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
 - qet_compilation_vars
.. QT_VERSION_MAJOR          :6
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version &quot;0.5.0&quot;)
 - fetch_kdeaddons
 - fetch_singleapplication
 - fetch_pugixml
. Add sub directorie qttest
..___________________________________________________________________
.. PROJECT_NAME              :qt_unittests
.. PROJECT_SOURCE_DIR        :/home/laurent/qet_git/tests/qttest
.. QET_DIR                   :/home/laurent/qet_git
.. QET_COMPONENTS is not set !!! I set them up !!!
 - qet_compilation_vars
.. QT_VERSION_MAJOR          :6
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version &quot;0.5.0&quot;)
 - fetch_kdeaddons
 - fetch_singleapplication
 - fetch_pugixml
 - paths_compilation_installation
 - start_options
 - developer_options
 - git_update_submodules
 - git_last_commit_sha
 - fetch_kdeaddons
CMake Warning at build/_deps/ecm-src/docs/CMakeLists.txt:10 (find_package):
  No &quot;FindSphinx.cmake&quot; found in CMAKE_MODULE_PATH.                                                                                                                                                                                                                           


CMake Warning (dev) at build/_deps/ecm-src/docs/CMakeLists.txt:10 (find_package):
  FindSphinx.cmake must either be part of this project itself, in this case                                                                                                                                                                                                   
  adjust CMAKE_MODULE_PATH so that it points to the correct location inside                                                                                                                                                                                                   
  its source tree.                                                                                                                                                                                                                                                            

  Or it must be installed by a package which has already been found via                                                                                                                                                                                                       
  find_package().  In this case make sure that package has indeed been found                                                                                                                                                                                                  
  and adjust CMAKE_MODULE_PATH to contain the location where that package has                                                                                                                                                                                                 
  installed FindSphinx.cmake.  This must be a location provided by that                                                                                                                                                                                                       
  package.  This error in general means that the buildsystem of this project                                                                                                                                                                                                  
  is relying on a Find-module without ensuring that it is actually available.                                                                                                                                                                                                 

This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                                                                                                                         

CMake Warning at build/_deps/ecm-src/docs/CMakeLists.txt:20 (find_package):
  No &quot;FindQCollectionGenerator.cmake&quot; found in CMAKE_MODULE_PATH.                                                                                                                                                                                                             


CMake Warning (dev) at build/_deps/ecm-src/docs/CMakeLists.txt:20 (find_package):
  FindQCollectionGenerator.cmake must either be part of this project itself,                                                                                                                                                                                                  
  in this case adjust CMAKE_MODULE_PATH so that it points to the correct                                                                                                                                                                                                      
  location inside its source tree.                                                                                                                                                                                                                                            

  Or it must be installed by a package which has already been found via                                                                                                                                                                                                       
  find_package().  In this case make sure that package has indeed been found                                                                                                                                                                                                  
  and adjust CMAKE_MODULE_PATH to contain the location where that package has                                                                                                                                                                                                 
  installed FindQCollectionGenerator.cmake.  This must be a location provided                                                                                                                                                                                                 
  by that package.  This error in general means that the buildsystem of this                                                                                                                                                                                                  
  project is relying on a Find-module without ensuring that it is actually                                                                                                                                                                                                    
  available.                                                                                                                                                                                                                                                                  

This warning is for project developers.  Use -Wno-dev to suppress it.                                                                                                                                                                                                         

-- The following OPTIONAL packages have been found:

 * PythonInterp
 * Qt6LinguistTools
 * Qt6CoreTools (required version &gt;= 6.2.2)
 * OpenGL
 * WrapVulkanHeaders
 * Qt6GuiTools (required version &gt;= 6.2.2)
 * Qt6DBusTools (required version &gt;= 6.2.2)
 * Qt6DBus (required version &gt;= 6.2.2)
 * Qt6Gui (required version &gt;= 6.2.2)
 * Qt6PrintSupport
 * Qt6Xml
 * Qt6Svg
 * Qt6Sql
 * OpenSSL
 * WrapOpenSSLHeaders
 * Qt6Network
 * Qt6WidgetsTools (required version &gt;= 6.2.2)
 * Qt6Widgets
 * Qt6Concurrent
 * Qt6Test

-- The following REQUIRED packages have been found:

 * QT
 * Threads
 * Qt6

-- The following features have been disabled:

 * BUILD_HTML_DOCS, Generate HTML documentation for installed modules.
 * BUILD_MAN_DOCS, Generate man page documentation for installed modules.
 * BUILD_QTHELP_DOCS, Generate QtHelp documentation for installed modules.
 * BUILD_TESTING, Build automated tests.

-- The following OPTIONAL packages have not been found:

 * XKB (required version &gt;= 0.5.0), XKB API common to servers and clients., &lt;http://xkbcommon.org&gt;
 * Sphinx (required version &gt;= 1.2), Tool to generate documentation., &lt;https://www.sphinx-doc.org/&gt;
   Required to build documentation for Extra CMake Modules.
 * QCollectionGenerator, Qt help collection generator., &lt;https://www.qt.io/&gt;
   Required to build Extra CMake Modules documentation in Qt Help format.

CMake Warning at build/_deps/kcoreaddons-src/CMakeLists.txt:7 (find_package):
  Could not find a configuration file for package &quot;ECM&quot; that is compatible                                                                                                                                                                                                    
  with requested version &quot;5.77.0&quot;.                                                                                                                                                                                                                                            

  The following configuration files were considered but not accepted:                                                                                                                                                                                                         

    /usr/share/ECM/cmake/ECMConfig.cmake, version: 5.54.0                                                                                                                                                                                                                     



-- 
 * ECM (required version &gt;= 5.77.0), Extra CMake Modules., &lt;https://commits.kde.org/extra-cmake-modules&gt;

CMake Error at /usr/local/share/cmake-3.22/Modules/FeatureSummary.cmake:464 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake                                                                                                                                                                                                    
  run.                                                                                                                                                                                                                                                                        
Call Stack (most recent call first):                                                                                                                                                                                                                                          
  build/_deps/kcoreaddons-src/CMakeLists.txt:9 (feature_summary)                                                                                                                                                                                                              


-- Configuring incomplete, errors occurred!
See also &quot;/home/laurent/qet_git/build/CMakeFiles/CMakeOutput.log&quot;.
See also &quot;/home/laurent/qet_git/build/CMakeFiles/CMakeError.log&quot;.</code></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Sun, 16 Jan 2022 07:31:03 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15730#p15730</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15729#p15729</link>
			<description><![CDATA[<p> <a href="https://doc-snapshots.qt.io/qt6-dev/qregularexpression.html">https://doc-snapshots.qt.io/qt6-dev/qre … ssion.html</a></p><p><a href="https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users">https://doc.qt.io/qt-5/qregularexpressi … gexp-users</a></p><div class="quotebox"><blockquote><p>Porting from QRegExp&#039;s Exact Matching<br />Exact matching indicates whether the regular expression matches the entire subject string. For example, the classes yield on the subject string &quot;abc123&quot;:</p><p>QRegExp::exactMatch()&nbsp; &nbsp; QRegularExpressionMatch::hasMatch()<br />&quot;\\d+&quot;&nbsp; &nbsp; false&nbsp; &nbsp; true<br />&quot;[a-z]+\\d+&quot;&nbsp; &nbsp; true&nbsp; &nbsp; true<br />Exact matching is not reflected in QRegularExpression. If you want to be sure that the subject string matches the regular expression exactly, you can wrap the pattern using the anchoredPattern() function:</p><p>QString p(&quot;a .*|pattern&quot;);</p><p>// re matches exactly the pattern string p<br />QRegularExpression re(QRegularExpression::anchoredPattern(p));<br />Porting from QRegExp&#039;s Partial Matching<br />When using QRegExp::exactMatch(), if an exact match was not found, one could still find out how much of the subject string was matched by the regular expression by calling QRegExp::matchedLength(). If the returned length was equal to the subject string&#039;s length, then one could conclude that a partial match was found.</p><p>QRegularExpression supports partial matching explicitly by means of the appropriate MatchType.</p></blockquote></div><p><a href="https://stackoverflow.com/questions/68577160/port-qregexpexactmatch-in-qt6">https://stackoverflow.com/questions/685 … tch-in-qt6</a><br /><a href="https://github.com/Komet/MediaElch/issues/1086">https://github.com/Komet/MediaElch/issues/1086</a></p><div class="quotebox"><blockquote><p>bugwelle commented on 16 Dec 2020 • <br />edited <br />QRegEx is deprecated and was removed in Qt 6. If we want to upgrade, we need to replace it.</p><p>Notable differences:</p><p><a href="https://doc.qt.io/qt-5/qregularexpression.html#notes-for-qregexp-users">https://doc.qt.io/qt-5/qregularexpressi … gexp-users</a><br />Upgrade step by step. We use similar regex names throughout MediaElch. So we could:</p><p>replace rx.cap( by match.captured(<br />replace QRegEx by QRegularExpression<br />replace if (rx.indexIn( by QRegularExpressionMatch match = rx.match(searchString); if (match.hasMatch()) and update the invalid code parts<br />replace .setCaseSensitivity by .setPatternOptions<br />For lastIndexIn patterns, we can rewrite it using QString::lastIndexIn:</p><p>&nbsp; &nbsp; rx.setPattern(&quot;[-\\s_]&quot;);<br />&nbsp; &nbsp; while (name.length() &gt; 0 &amp;&amp; rx.lastIndexIn(name) == name.length() - 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; name.chop(1);<br />&nbsp; &nbsp; }<br />becomes</p><p>&nbsp; &nbsp; rx.setPattern(&quot;[-\\s_]&quot;);<br />&nbsp; &nbsp; while (name.length() &gt; 0 &amp;&amp; name.lastIndexOf(rx) == name.length() - 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; name.chop(1);<br />&nbsp; &nbsp; }</p></blockquote></div><p><a href="https://github.com/Komet/MediaElch/pull/1089/commits/21a865d31f53d637ca0595625056dc6477a862fd">https://github.com/Komet/MediaElch/pull … 6477a862fd</a> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Sat, 15 Jan 2022 19:08:17 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15729#p15729</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=15728#p15728</link>
			<description><![CDATA[<p> @Simon :<br /></p><div class="quotebox"><cite>De-Backer wrote:</cite><blockquote><p>or for Qt6<br /></p><div class="codebox"><pre><code>cp ~/kde/usr/mkspecs/modules/*.pri ~/Qt/6.0.0/gcc_64/mkspecs/modules/
cp -r ~/kde/usr/include/* ~/Qt/6.0.0/gcc_64/include/
cp -r ~/kde/usr/lib64 ~/Qt/6.0.0/gcc_64/
cp -r ~/kde/usr/bin ~/Qt/6.0.0/gcc_64/</code></pre></div></blockquote></div><br /><p>Install Qt6.2 before with MaintenanceTool</p><p>Edit ~/.bashrc :</p><div class="codebox"><pre><code>PATH=.:~/Qt/6.2.2/gcc_64/bin:$PATH
export PATH=~/kde/src/kdesrc-build:$PATH</code></pre></div><p>Apply change<br /></p><div class="codebox"><pre><code>source ~/.bashrc</code></pre></div><br /><p>Edit qt5.conf<br /></p><div class="codebox"><pre><code>sudo nano /usr/lib/x86_64-linux-gnu/qtchooser/qt5.conf</code></pre></div><p>Verify:<br /></p><div class="codebox"><pre><code>qtchooser -print-env
QT_SELECT=&quot;default&quot;
QTTOOLDIR=&quot;/home/laurent/Qt/6.2.2/gcc_64/bin&quot;
QTLIBDIR=&quot;/home/laurent/Qt/6.2.2/gcc_64/lib&quot;</code></pre></div><br /><div class="codebox"><pre><code>qmake --version
QMake version 3.1
Using Qt version 6.2.2 in /home/laurent/Qt/6.2.2/gcc_64/lib</code></pre></div><br /><p>Update Cmake :<br /><a href="https://github.com/Kitware/CMake/">https://github.com/Kitware/CMake/</a></p><div class="codebox"><pre><code>laurent@debian:~/Téléchargements/CMake-master$ 
./bootstrap &amp;&amp; make &amp;&amp; sudo make install</code></pre></div><p>Update ~/.kdesrc-buildrc </p><br /><div class="codebox"><pre><code>laurent@debian:~$ cat ~/.kdesrc-buildrc </code></pre></div><div class="quotebox"><blockquote><p># This is a sample kdesrc-build configuration file appropriate for KDE<br /># Frameworks 5-based build environments.<br />#<br /># See the kdesrc-buildrc-sample for explanations of what the options do, or<br /># view the manpage or kdesrc-build documentation at<br /># <a href="https://docs.kde.org/trunk5/en/extragear-utils/kdesrc-build/index.html">https://docs.kde.org/trunk5/en/extragea … index.html</a><br />global<br />&nbsp; <span style="color: red">&nbsp; branch-group kf5-qt5</span><br />&nbsp; &nbsp; kdedir ~/kde # Where to install KF5-based software<br />&nbsp; &nbsp; # Uncomment this and edit value to choose a different Qt5<br />&nbsp; &nbsp; <span style="color: red">qtdir ~/Qt/6.2.2/gcc_64&nbsp; &nbsp;# Where to find Qt5</span></p><p>&nbsp; &nbsp; # Where to download source code. By default the build directory and<br />&nbsp; &nbsp; # logs will be kept under this directory as well.<br />&nbsp; &nbsp; <span style="color: red">source-dir ~/kde</span><br />end global</p><p># Instead of specifying modules here, the current best practice is to refer to<br /># KF5 module lists maintained with kdesrc-build by the KF5 developers. As new<br /># modules are added or modified, the kdesrc-build KF5 module list is altered to<br /># suit, and when you update kdesrc-build you will automatically pick up the<br /># needed changes.</p><p># NOTE: You MUST change the path below to include the actual path to your<br /># kdesrc-build installation.<br />#include ~/kde/src/kdesrc-build/kf6-qt6-build-include<br /><span style="color: red">include ~/kde/src/kdesrc-build/kf6-frameworks-build-include</span><br /># If you wish to maintain the module list yourself that is possible, simply<br /># look at the files pointed to above and use the &quot;module-set&quot; declarations that<br /># they use, with your own changes.</p><p># It is possible to change the options for modules loaded from the file<br /># included above (since it&#039;s not possible to add a module that&#039;s already been<br /># included), e.g.<br />options kcoreaddons <br />&nbsp; &nbsp; make-options -j16<br />end options</p></blockquote></div><p>--initial-setup and build with kdesrc-build kwidgetsaddons karchive kcoreaddons <br /></p><div class="codebox"><pre><code>laurent@debian:~$ ./kdesrc-build --initial-setup
laurent@debian:~$ ./kdesrc-build kwidgetsaddons karchive kcoreaddons --include-dependencies


Updating sysadmin-repo-metadata (to branch master)
git gave error exit code 129

Building extra-cmake-modules from frameworks (1/4)
        No source update, but the last configure failed
        Updating extra-cmake-modules (to branch master)
        git gave error exit code 129
        Source update complete for extra-cmake-modules: no files affected
        Preparing build system for extra-cmake-modules.
        Removing files in build directory for extra-cmake-modules
        Old build system cleaned, starting new build system.
        Running cmake targeting Unix Makefiles...
        Compiling... succeeded (after 0 seconds)
        Installing.. succeeded (after 0 seconds)

Building karchive from frameworks (2/4)
        No source update, but the last configure failed
        Updating karchive (to branch master)
        git gave error exit code 129
        Source update complete for karchive: no files affected
        Preparing build system for karchive.
        Removing files in build directory for karchive
        Old build system cleaned, starting new build system.
        Running cmake targeting Unix Makefiles...
        Compiling... succeeded (after 30 seconds)
        Note: - 1 - compile warnings
        Installing.. succeeded (after 0 seconds)

Building kcoreaddons from frameworks (3/4)
        No source update, but the last configure failed
        Updating kcoreaddons (to branch master)
        git gave error exit code 129
        Source update complete for kcoreaddons: no files affected
        Preparing build system for kcoreaddons.
        Removing files in build directory for kcoreaddons
        Old build system cleaned, starting new build system.
        Running cmake targeting Unix Makefiles...
        Compiling... succeeded (after 12 seconds)
        Note: --- 21 --- compile warnings
        Installing.. succeeded (after 0 seconds)

Building kwidgetsaddons from frameworks (4/4)
        No source update, but the last configure failed
        Updating kwidgetsaddons (to branch master)
        git gave error exit code 129
        Source update complete for kwidgetsaddons: no files affected
        Preparing build system for kwidgetsaddons.
        Removing files in build directory for kwidgetsaddons
        Old build system cleaned, starting new build system.
        Running cmake targeting Unix Makefiles...
        Compiling... succeeded (after 3 minutes, and 48 seconds)
        Note: ---- 86 ---- compile warnings
        Installing.. succeeded (after 0 seconds)

&lt;&lt;&lt;  PACKAGES SUCCESSFULLY BUILT  &gt;&gt;&gt;
extra-cmake-modules
karchive
kcoreaddons
kwidgetsaddons
 
        * Installing &quot;sample-kde-env-master.sh&quot; would overwrite an existing file:
        *  /home/laurent/.config/kde-env-master.sh
        * If this is acceptable, please delete the existing file and re-run,
        * or pass --delete-my-settings and re-run.

:-)
Your logs are saved in file:///home/laurent/kde/log/2022-01-15-02</code></pre></div><br /><p>Setup Qt6.2.2:<br /></p><div class="codebox"><pre><code>cp ~/kde/mkspecs/modules/*.pri ~/Qt/6.2.2/gcc_64/mkspecs/modules/
cp -r ~/kde/include/KF6 ~/Qt/6.2.2/gcc_64/include/
cp -r ~/kde/lib/x86_64-linux-gnu ~/Qt/6.2.2/gcc_64/
cp -r ~/kde/bin ~/Qt/6.2.2/gcc_64/</code></pre></div><br /><p>Go to QET source directory<br /></p><div class="codebox"><pre><code>mkdir build &amp;&amp; cd build
#/usr/local/bin/cmake .. -G Ninja  ## not working yet
qmake ../qelectrotech.pro
make -j24</code></pre></div><p>Compile error ..with Qt6.2.2 and KF6</p><div class="codebox"><pre class="cpp" style="font-family:monospace;">..<span style="color: #000040;">/</span>sources<span style="color: #000040;">/</span>ElementsCollection<span style="color: #000040;">/</span>elementslocation.<span style="color: #007788;">cpp</span><span style="color: #008080;">:</span> In member function ‘<span style="color: #0000ff;">bool</span> ElementsLocation<span style="color: #008080;">::</span><span style="color: #007788;">setXml</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">const</span> QDomDocument<span style="color: #000040;">&amp;</span><span style="color: #008000;">&#41;</span> <span style="color: #0000ff;">const</span>’<span style="color: #008080;">:</span><br />..<span style="color: #000040;">/</span>sources<span style="color: #000040;">/</span>ElementsCollection<span style="color: #000040;">/</span>elementslocation.<span style="color: #007788;">cpp</span><span style="color: #008080;">:</span><span style="color: #0000dd;">783</span><span style="color: #008080;">:</span><span style="color: #0000dd;">11</span><span style="color: #008080;">:</span> error<span style="color: #008080;">:</span> ‘<span style="color: #0000ff;">class</span> QRegularExpression’ has no member named ‘exactMatch’<span style="color: #008080;">;</span> did you mean ‘NoMatch’<span style="color: #008080;">?</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #008000;">&#40;</span>rx.<span style="color: #007788;">exactMatch</span><span style="color: #008000;">&#40;</span>path_<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000040;">^</span>~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NoMatch<br />..<span style="color: #000040;">/</span>sources<span style="color: #000040;">/</span>ElementsCollection<span style="color: #000040;">/</span>elementslocation.<span style="color: #007788;">cpp</span><span style="color: #008080;">:</span><span style="color: #0000dd;">788</span><span style="color: #008080;">:</span><span style="color: #0000dd;">10</span><span style="color: #008080;">:</span> error<span style="color: #008080;">:</span> ‘<span style="color: #0000ff;">class</span> QRegularExpression’ has no member named ‘cap’<span style="color: #008080;">;</span> did you mean ‘swap’<span style="color: #008080;">?</span><br />&nbsp; &nbsp; &nbsp; &nbsp;rx.<span style="color: #007788;">cap</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000040;">^</span>~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swap<br />..<span style="color: #000040;">/</span>sources<span style="color: #000040;">/</span>ElementsCollection<span style="color: #000040;">/</span>elementslocation.<span style="color: #007788;">cpp</span><span style="color: #008080;">:</span><span style="color: #0000dd;">789</span><span style="color: #008080;">:</span><span style="color: #0000dd;">10</span><span style="color: #008080;">:</span> error<span style="color: #008080;">:</span> ‘<span style="color: #0000ff;">class</span> QRegularExpression’ has no member named ‘cap’<span style="color: #008080;">;</span> did you mean ‘swap’<span style="color: #008080;">?</span><br />&nbsp; &nbsp; &nbsp; &nbsp;rx.<span style="color: #007788;">cap</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000040;">^</span>~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swap<br />g<span style="color: #000040;">++</span> <span style="color: #000040;">-</span>c <span style="color: #000040;">-</span>pipe <span style="color: #000040;">-</span>std<span style="color: #000080;">=</span>c<span style="color: #000040;">++</span><span style="color: #0000dd;">17</span> <span style="color: #000040;">-</span>O2 <span style="color: #000040;">-</span>std<span style="color: #000080;">=</span>gnu<span style="color: #000040;">++</span>1z <span style="color: #000040;">-</span>Wall <span style="color: #000040;">-</span>Wextra <span style="color: #000040;">-</span>D_REENTRANT <span style="color: #000040;">-</span>fPIC <span style="color: #000040;">-</span>DQET_ALLOW_OVERRIDE_CED_OPTION <span style="color: #000040;">-</span>DQET_ALLOW_OVERRIDE_CTBTD_OPTION <span style="color: #000040;">-</span>DQET_ALLOW_OVERRIDE_CD_OPTION <span style="color: #000040;">-</span>DQAPPLICATION_CLASS<span style="color: #000080;">=</span>QApplication <span style="color: #000040;">-</span>DQT_MESSAGELOGCONTEXT <span style="color: #000040;">-</span>DGIT_COMMIT_SHA<span style="color: #000080;">=</span>\<span style="color: #FF0000;">&quot;d7e2ef283a6c9b48f2e405fa7bd0f46dd3500c0a<span style="color: #000099; font-weight: bold;">\&quot;</span> -DQET_LANG_PATH=/usr/local/share/qelectrotech/lang/ -DQET_COMMON_COLLECTION_PATH=/usr/local/share/qelectrotech/elements/ -DQET_COMMON_TBT_PATH=/usr/local/share/qelectrotech/titleblocks/ -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I../../qet_git -I. -I../SingleApplication -I../sources/ui -I../sources/TerminalStrip/ui -I../../Qt/6.2.2/gcc_64/include -I../../Qt/6.2.2/gcc_64/include/QtSvg -I../../Qt/6.2.2/gcc_64/include/QtPrintSupport -I../../Qt/6.2.2/gcc_64/include/KF6/KWidgetsAddons -I../../Qt/6.2.2/gcc_64/include/QtWidgets -I../../Qt/6.2.2/gcc_64/include/QtGui -I../../Qt/6.2.2/gcc_64/include/QtNetwork -I../../Qt/6.2.2/gcc_64/include/QtXml -I../../Qt/6.2.2/gcc_64/include/QtSql -I../../Qt/6.2.2/gcc_64/include/QtConcurrent -I../../Qt/6.2.2/gcc_64/include/KF6/KCoreAddons -I../../Qt/6.2.2/gcc_64/include/QtCore -Irelease -I. -I../../Qt/6.2.2/gcc_64/mkspecs/linux-g++ -o release/xmlprojectelementcollectionitem.o ../sources/ElementsCollection/xmlprojectelementcollectionitem.cpp<br />make[1]: *** [Makefile.Release:62978: release/elementslocation.o] Error 1<br />make[1]: *** Attente des tâches non terminées....<br />make[1] : on quitte le répertoire « /home/laurent/qet_git/build »<br />make: *** [Makefile:42: release] Error 2</span></pre></div><br /><p><span class="postimg"><img src="https://download.qelectrotech.org/qet/forum_img_2/Qt6_bug.png" alt="https://download.qelectrotech.org/qet/forum_img_2/Qt6_bug.png" /></span> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Sat, 15 Jan 2022 17:51:21 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=15728#p15728</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=13484#p13484</link>
			<description><![CDATA[<p> For suse TW<br />Compiling KDE frameworks :<br /></p><div class="codebox"><pre><code>mkdir -p ~/kde/src
cd ~/kde/src/
git clone https://invent.kde.org/sdk/kdesrc-build.git &amp;&amp; cd kdesrc-build
./kdesrc-build --initial-setup
./kdesrc-build kwidgetsaddons karchive kcoreaddons --include-dependencies --ignore-modules Qt5</code></pre></div><p>setup Qt5.51.1</p><div class="codebox"><pre><code>cp ~/kde/usr/mkspecs/modules/*.pri ~/Qt/5.15.1/gcc_64/mkspecs/modules/
cp -r ~/kde/usr/include/* ~/Qt/5.15.1/gcc_64/include/
cp -r ~/kde/usr/lib64 ~/Qt/5.15.1/gcc_64/
cp -r ~/kde/usr/bin ~/Qt/5.15.1/gcc_64/</code></pre></div><p>or for Qt6<br /></p><div class="codebox"><pre><code>cp ~/kde/usr/mkspecs/modules/*.pri ~/Qt/6.0.0/gcc_64/mkspecs/modules/
cp -r ~/kde/usr/include/* ~/Qt/6.0.0/gcc_64/include/
cp -r ~/kde/usr/lib64 ~/Qt/6.0.0/gcc_64/
cp -r ~/kde/usr/bin ~/Qt/6.0.0/gcc_64/</code></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (De-Backer)]]></author>
			<pubDate>Sat, 03 Oct 2020 04:49:27 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=13484#p13484</guid>
		</item>
		<item>
			<title><![CDATA[Linux compile with Qt online versions]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?pid=10880#p10880</link>
			<description><![CDATA[<p> Get Qt 5 and install the version you want&nbsp; in your $HOME Qt directory:<br /></p><div class="codebox"><pre><code>wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run</code></pre></div><p>Edit qtchooser/qt5.conf <br />cat /usr/lib/x86_64-linux-gnu/qtchooser/qt5.conf <br /></p><div class="codebox"><pre><code>/home/laurent/Qt/5.13.2/gcc_64/bin
/home/laurent//Qt/5.13.2/gcc_64/lib</code></pre></div><br /><p>cat .bashrc<br /></p><div class="codebox"><pre><code>PATH=.:~/Qt/5.13.2/gcc_64/bin:$PATH
export PATH=~/kde/src/kdesrc-build:$PATH</code></pre></div><p>Apply change<br /></p><div class="codebox"><pre><code>source ~/.bashrc </code></pre></div><br /><div class="codebox"><pre><code>$ qtchooser -print-env
QT_SELECT=&quot;default&quot;
QTTOOLDIR=&quot;/home/laurent/Qt/5.13.2/gcc_64/bin&quot;
QTLIBDIR=&quot;/home/laurent/Qt/5.13.2/gcc_64/lib&quot;</code></pre></div><div class="codebox"><pre><code>$ qmake --version
QMake version 3.1
Using Qt version 5.13.2 in /home/laurent/Qt/5.13.2/gcc_64/lib</code></pre></div><br /><p><a href="https://community.kde.org/Get_Involved/development#Set_up_kdesrc-build">https://community.kde.org/Get_Involved/ … esrc-build</a><br /><a href="https://jbbgameich.github.io/misc/2019/05/25/kdesrc-build-custom-qt.html">https://jbbgameich.github.io/misc/2019/ … om-qt.html</a></p><br /><div class="codebox"><pre><code>mkdir -p ~/kde/src
cd ~/kde/src/
git clone https://invent.kde.org/sdk/kdesrc-build.git  &amp;&amp; cd kdesrc-build</code></pre></div><p>Edit ~/.kdesrc-buildrc, and replace the path to Qt qtdir with the path you installed Qt to. The line should then look similar to this:<br />cat .kdesrc-buildrc <br /></p><div class="quotebox"><blockquote><p># This is a sample kdesrc-build configuration file appropriate for KDE<br /># Frameworks 5-based build environments.<br />#<br /># See the kdesrc-buildrc-sample for explanations of what the options do, or<br /># view the manpage or kdesrc-build documentation at<br /># <a href="https://docs.kde.org/trunk5/en/extragear-utils/kdesrc-build/index.html">https://docs.kde.org/trunk5/en/extragea … index.html</a><br />global<br />&nbsp; &nbsp; branch-group kf5-qt5<br />&nbsp; &nbsp; kdedir ~/kde # Where to install KF5-based software<br />&nbsp; &nbsp; # Uncomment this and edit value to choose a different Qt5<br />&nbsp; &nbsp; qtdir ~/Qt/5.13.2/gcc_64&nbsp; &nbsp;# Where to find Qt5</p><p>&nbsp; &nbsp; # Where to download source code. By default the build directory and<br />&nbsp; &nbsp; # logs will be kept under this directory as well.<br />&nbsp; &nbsp; source-dir ~/kde<br />end global</p><p># Instead of specifying modules here, the current best practice is to refer to<br /># KF5 module lists maintained with kdesrc-build by the KF5 developers. As new<br /># modules are added or modified, the kdesrc-build KF5 module list is altered to<br /># suit, and when you update kdesrc-build you will automatically pick up the<br /># needed changes.</p><p># NOTE: You MUST change the path below to include the actual path to your<br /># kdesrc-build installation.<br />include ~/kde/src/kdesrc-build/kf5-qt5-build-include</p><p># If you wish to maintain the module list yourself that is possible, simply<br /># look at the files pointed to above and use the &quot;module-set&quot; declarations that<br /># they use, with your own changes.</p><p># It is possible to change the options for modules loaded from the file<br /># included above (since it&#039;s not possible to add a module that&#039;s already been<br /># included), e.g.<br />options kcoreaddons <br />&nbsp; &nbsp; make-options -j16<br />end options</p></blockquote></div><p>Compiling KDE frameworks :<br /></p><div class="codebox"><pre><code>kdesrc-build kwidgetsaddons karchive kcoreaddons --include-dependencies
cp ~/kde/mkspecs/*.pri ~/Qt/5.13.2/gcc_64/mkspecs/modules/</code></pre></div><p>Get QET source files and compile it:<br /></p><div class="codebox"><pre><code>git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git
cd qet_git
mkdir build/ &amp;&amp; cd build
qmake ../qelectrotech.pro
make -j$(nproc)</code></pre></div><p> </p>]]></description>
			<author><![CDATA[null@example.com (scorpio810)]]></author>
			<pubDate>Sun, 17 Nov 2019 14:26:47 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?pid=10880#p10880</guid>
		</item>
	</channel>
</rss>
