嵌入式爱好者

查看: 2174|回复: 1

[Linux] qtdatavis3d

[复制链接]

2

主题

3

帖子

10

积分

扫一扫,手机访问本帖
发表于 2023-3-21 21:32:24 | 显示全部楼层 |阅读模式
qt3dsu**ce demo 运行错误

Warning: Flat qualifier not supported on your platform's GLSL language. Requires at least GLSL version 1.2 with GL_EXT_gpu_shader4 extension.
Shadows are not yet supported for OpenGL ES2
EGLFS: OpenGL windows cannot be mixed with others.
Aborted



需要硬件GPU加速,但启动不起来
回复

使用道具 举报

2

主题

3

帖子

10

积分

 楼主| 发表于 2023-3-22 09:57:10 | 显示全部楼层
Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
QOpenGLShader::compile(Fragment): 1:2: P0003: Warning: Extension 'GL_ARB_fragment_coord_conventions' not supported
4:1: S0032: no default precision defined for variable 'FragColor'
*** Problematic Fragment shader source code ***
#version 320 es
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
out vec4 FragColor;
void main(){
FragColor = vec4(0.7f, 0.7f, 0.7f, 1.0f);
}
***
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::compile(Fragment): 1:2: P0003: Warning: Extension 'GL_ARB_fragment_coord_conventions' not supported
4:1: S0032: no default precision defined for variable 'ourColor'
*** Problematic Fragment shader source code ***
#version 320 es
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
in vec3 ourColor;
out vec4 FragColor;
void main(){
FragColor = vec4(ourColor, 1.0f);
}
***
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::compile(Fragment): 1:2: P0003: Warning: Extension 'GL_ARB_fragment_coord_conventions' not supported
4:1: S0032: no default precision defined for variable 'FragColor'
*** Problematic Fragment shader source code ***
#version 320 es
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
out vec4 FragColor;
void main(){
FragColor = vec4(0.7f, 0.7f, 0.7f, 1.0f);
}
***
QOpenGLShader::link: Link failed because of missing fragment shader.
point_count 0
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 14:32

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表