<?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[moc: standard input:0: Note: No relevant classes found. No output generated.]]></title><description><![CDATA[<p dir="auto">I have project on qt 5.15.2(Community).<br />
This project was build without issues, but after moving one to different directory no moc_* files are creating.<br />
I tested on three different PC, on twos project was build, but on the third I can't.<br />
How this issue can be fixed?<br />
#moc</p>
]]></description><link>https://forum.qt.io/topic/130302/moc-standard-input-0-note-no-relevant-classes-found-no-output-generated</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 21:30:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/130302.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Sep 2021 08:24:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to moc: standard input:0: Note: No relevant classes found. No output generated. on Wed, 15 Sep 2021 18:09:27 GMT]]></title><description><![CDATA[<p dir="auto">My first instinct was to scrutinize the <code>main</code> of <code>moc</code> itself, but I'm not seeing too many clues:</p>
<p dir="auto"><a href="https://github.com/qt/qtbase/blob/d32f7dde257f6d/src/tools/moc/main.cpp#L573" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt/qtbase/blob/d32f7dde257f6d/src/tools/moc/main.cpp#L573</a></p>
<p dir="auto">My other thought is the infamous "MAX_PATH" limit of 260 char on windows:  <a href="https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file</a></p>
<p dir="auto">Over the years, I have ended up pinning a handful of bizarre and silent failures on the MAX_PATH issue. This should be considered as a candidate diagnosis if the longest path in the project repository reaches 260 char, but should also be considered even if the project paths (from project root) are themselves short, but the absolute path where the project is checked out (or where the build outputs are placed) consists of a long path.</p>
]]></description><link>https://forum.qt.io/post/680741</link><guid isPermaLink="true">https://forum.qt.io/post/680741</guid><dc:creator><![CDATA[KH-219Design]]></dc:creator><pubDate>Wed, 15 Sep 2021 18:09:27 GMT</pubDate></item><item><title><![CDATA[Reply to moc: standard input:0: Note: No relevant classes found. No output generated. on Wed, 15 Sep 2021 09:14:40 GMT]]></title><description><![CDATA[<p dir="auto">Then I don't know what's wrong. Probably some error by moving the code, or misconfigured Qt, it's hard to say :/</p>
]]></description><link>https://forum.qt.io/post/680658</link><guid isPermaLink="true">https://forum.qt.io/post/680658</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 15 Sep 2021 09:14:40 GMT</pubDate></item><item><title><![CDATA[Reply to moc: standard input:0: Note: No relevant classes found. No output generated. on Wed, 15 Sep 2021 09:09:04 GMT]]></title><description><![CDATA[<p dir="auto">No complaining about Q_OBJECT. The version is the same, all project files were copied to new folder. Moreover, in the old place on the same PC project was compiled fine using the same QT.<br />
I work on Windows10x64, MinGW 8.1-x64.</p>
]]></description><link>https://forum.qt.io/post/680656</link><guid isPermaLink="true">https://forum.qt.io/post/680656</guid><dc:creator><![CDATA[Vlad48]]></dc:creator><pubDate>Wed, 15 Sep 2021 09:09:04 GMT</pubDate></item><item><title><![CDATA[Reply to moc: standard input:0: Note: No relevant classes found. No output generated. on Wed, 15 Sep 2021 08:57:04 GMT]]></title><description><![CDATA[<p dir="auto">Are you sure it is the same code? Same Qt version? Does the class <code>moc</code> is complaining about have <code>Q_OBJECT</code> macro in it?</p>
]]></description><link>https://forum.qt.io/post/680652</link><guid isPermaLink="true">https://forum.qt.io/post/680652</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 15 Sep 2021 08:57:04 GMT</pubDate></item><item><title><![CDATA[Reply to moc: standard input:0: Note: No relevant classes found. No output generated. on Wed, 15 Sep 2021 08:50:43 GMT]]></title><description><![CDATA[<p dir="auto">Sure I made these many times without success.</p>
]]></description><link>https://forum.qt.io/post/680651</link><guid isPermaLink="true">https://forum.qt.io/post/680651</guid><dc:creator><![CDATA[Vlad48]]></dc:creator><pubDate>Wed, 15 Sep 2021 08:50:43 GMT</pubDate></item><item><title><![CDATA[Reply to moc: standard input:0: Note: No relevant classes found. No output generated. on Wed, 15 Sep 2021 08:32:45 GMT]]></title><description><![CDATA[<p dir="auto">When moving the project, make sure to clean up any build artifacts:</p>
<ul>
<li>.pro.user files</li>
<li>.qmake.stash</li>
<li>Makefile</li>
<li>etc.</li>
</ul>
]]></description><link>https://forum.qt.io/post/680647</link><guid isPermaLink="true">https://forum.qt.io/post/680647</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 15 Sep 2021 08:32:45 GMT</pubDate></item></channel></rss>