qt3d not working on RaspberryPi2 (Missing main function for shader)
-
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:
pi@raspberrypi:~ $ ./cpp_exampleUnable 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" ...
I was try qt5.7 from git and has same error. Canvas3D and QML 2D Shaders work fine.
How I can fix it? -
Hi and welcome to devnet,
Since Qt3D is still TP, I'd recommend posting this question on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.
-
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:
pi@raspberrypi:~ $ ./cpp_exampleUnable 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" ...
I was try qt5.7 from git and has same error. Canvas3D and QML 2D Shaders work fine.
How I can fix it?@BuTbKa
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. -
@BuTbKa
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.@Diracsbracket @SGaist meant http://lists.qt-project.org/mailman/listinfo/interest (mailing list) not another forum category.
-
@Diracsbracket @SGaist meant http://lists.qt-project.org/mailman/listinfo/interest (mailing list) not another forum category.
@jsulm
OK. Got it.
Just was hoping for a reaction of the original poster, but he hasn't been active here as of lately.
Cheerio. -
Hi and welcome to devnet,
Since Qt3D is still TP, I'd recommend posting this question on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.
@SGaist
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). -
@SGaist
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).@Diracsbracket @SGaist meant: this forum is for people using Qt not developing Qt.
-
@Diracsbracket @SGaist meant: this forum is for people using Qt not developing Qt.
@jsulm
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?? -
@jsulm
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??@Diracsbracket 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.
-
@Diracsbracket 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.
@jsulm
OK. Thanks for clarifying this. Sometimes, I'm a little bit slow...^^
In any case, reporting a problem like this seems perfectly valid to me, from a "user" point of view.
Cheers.