으로 컴파일하려고하면 Qt 5.6의 "Cube OpenGL ES 2.0 예제"의 표준 예제 인 25.2.2인데, Win/Linux에서는 좋지만 Android 7.0 - API 24에서는 검은 색 화면이 좋습니다.QOpenGLWidget을 Android에서 어떻게 사용할 수 있습니까?
같은 문제는 내가 MainWindow를에 QOpenGLWidget의 객체를 넣을 때 발생 - 두 경우 모두에서 API를 24
응용 프로그램 출력을 - 안드로이드 7.0에서 검은 화면 : 나는 안드로이드로 다운 그레이드 할 때
W libQtGUI.so: (null):0 ((null)): QOpenGLShader::compile(Vertex): ERROR: Valid GLSL but not GLSL ES
W libQtGUI.so: (null):0 ((null)): *** Problematic Vertex shader source code ***
W libQtGUI.so: (null):0 ((null)): #define lowp
W libQtGUI.so: #define mediump
W libQtGUI.so: #define highp
W libQtGUI.so: #line 1
W libQtGUI.so: attribute highp vec3 vertexCoord;attribute highp vec2 textureCoord;varying highp vec2 uv;uniform highp mat4 vertexTransform;uniform highp mat3 textureTransform;void main() { uv = (textureTransform * vec3(textureCoord,1.0)).xy; gl_Position = vertexTransform * vec4(vertexCoord,1.0);}
W libQtGUI.so: (null):0 ((null)): ***
W libQtGUI.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: Valid GLSL but not GLSL ES
W libQtGUI.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
을하지만, SDK 도구 25.1.7에서 https://dl.google.com/android/repository/tools_r25.1.7-windows.zip QOpenGLWidget는 MainWindow에서만 Android에서 잘 작동하지만 QOpenGLWidget이 포함되어 있으면 다른 QDialog를 표시하지 않습니다.
QOpenGLWidget을 Android에서 사용할 수 있습니까?