<?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[qt3d not working on RaspberryPi2 (Missing main function for shader)]]></title><description><![CDATA[<p dir="auto">Hello. I was cross-compiling qt5.6 for RaspberryPi2, then I was compiled some examples from qt3d directory (plasma and cpp-example) copy to RPI2 and when try to run had error:<br />
pi@raspberrypi:~ $ ./cpp_example</p>
<pre><code>Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
QOpenGLShader::link: "ERROR:LEX/PARSE-1 (fragment shader, line 40) Syntax error"
Failed to link shader program: "ERROR:LEX/PARSE-1 (fragment shader, line 40) Syntax error"
QOpenGLShader::link: "ERROR:LINK-9 (link time, line -1) Missing main function for shader"
QOpenGLShader::link: "ERROR:LINK-9 (link time, line -1) Missing main function for shader"
...
</code></pre>
<p dir="auto">I was try qt5.7 from git and has same error. Canvas3D and QML 2D Shaders work fine.<br />
How I can fix it?</p>
]]></description><link>https://forum.qt.io/topic/65690/qt3d-not-working-on-raspberrypi2-missing-main-function-for-shader</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 11:25:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/65690.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Apr 2016 14:20:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Wed, 21 Dec 2016 07:30:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a><br />
OK. Thanks for clarifying this. Sometimes, I'm a little bit slow...^^<br />
In any case, reporting a problem like this seems perfectly valid to me, from a "user" point of view.<br />
Cheers.</p>
]]></description><link>https://forum.qt.io/post/365429</link><guid isPermaLink="true">https://forum.qt.io/post/365429</guid><dc:creator><![CDATA[Diracsbracket]]></dc:creator><pubDate>Wed, 21 Dec 2016 07:30:04 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Wed, 21 Dec 2016 07:21:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/diracsbracket">@<bdi>Diracsbracket</bdi></a> There are developers who develop Qt itself. Then there are people who use Qt to develop applications with it. This forum is for developers who use Qt for their projects. If you want to contact developers who develop Qt then you should use the mailing list.</p>
]]></description><link>https://forum.qt.io/post/365428</link><guid isPermaLink="true">https://forum.qt.io/post/365428</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 21 Dec 2016 07:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Wed, 21 Dec 2016 07:18:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a><br />
What do you mean? How can you use Qt without developing? Do you mean that this forum is only for users of apps written in Qt??</p>
]]></description><link>https://forum.qt.io/post/365427</link><guid isPermaLink="true">https://forum.qt.io/post/365427</guid><dc:creator><![CDATA[Diracsbracket]]></dc:creator><pubDate>Wed, 21 Dec 2016 07:18:50 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Wed, 21 Dec 2016 07:14:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/diracsbracket">@<bdi>Diracsbracket</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> meant: this forum is for people using Qt not developing Qt.</p>
]]></description><link>https://forum.qt.io/post/365425</link><guid isPermaLink="true">https://forum.qt.io/post/365425</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 21 Dec 2016 07:14:49 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Wed, 21 Dec 2016 06:04:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
What do you mean, "More user oriented" ? Isn't Qt a DEVELOPMENT platform, and does't this forum have a "Qt Development" subgroup?. If one of the Qt-provided examples does not work, then this is a user (and usage) problem after all.  Some of the qt3d examples don't work on either PC and Pi2 (Pi2 with EGLFS).</p>
]]></description><link>https://forum.qt.io/post/365418</link><guid isPermaLink="true">https://forum.qt.io/post/365418</guid><dc:creator><![CDATA[Diracsbracket]]></dc:creator><pubDate>Wed, 21 Dec 2016 06:04:06 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Tue, 20 Dec 2016 07:42:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a><br />
OK. Got it.<br />
Just was hoping for a reaction of the original poster, but he hasn't been active here as of lately.<br />
Cheerio.</p>
]]></description><link>https://forum.qt.io/post/365271</link><guid isPermaLink="true">https://forum.qt.io/post/365271</guid><dc:creator><![CDATA[Diracsbracket]]></dc:creator><pubDate>Tue, 20 Dec 2016 07:42:09 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Tue, 20 Dec 2016 07:27:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/diracsbracket">@<bdi>Diracsbracket</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> meant <a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank" rel="noopener noreferrer nofollow ugc">http://lists.qt-project.org/mailman/listinfo/interest</a> (mailing list) not another forum category.</p>
]]></description><link>https://forum.qt.io/post/365267</link><guid isPermaLink="true">https://forum.qt.io/post/365267</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 20 Dec 2016 07:27:23 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Tue, 20 Dec 2016 06:11:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/butbka">@<bdi>BuTbKa</bdi></a><br />
Hi, I'm having the same problem. Have you managed to solve it? I didn't find a repost of your message in a different category as suggested by the moderator, so I ask it here.</p>
]]></description><link>https://forum.qt.io/post/365263</link><guid isPermaLink="true">https://forum.qt.io/post/365263</guid><dc:creator><![CDATA[Diracsbracket]]></dc:creator><pubDate>Tue, 20 Dec 2016 06:11:02 GMT</pubDate></item><item><title><![CDATA[Reply to qt3d not working on RaspberryPi2 (Missing main function for shader) on Thu, 07 Apr 2016 23:01:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Since Qt3D is still TP, I'd recommend posting this question on the <a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank" rel="noopener noreferrer nofollow ugc">interest mailing list</a>. You'll find there Qt's developers/maintainers. This forum is more user oriented.</p>
]]></description><link>https://forum.qt.io/post/321384</link><guid isPermaLink="true">https://forum.qt.io/post/321384</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 07 Apr 2016 23:01:31 GMT</pubDate></item></channel></rss>