Russian Qt Forum

Qt => 2D и 3D графика => Тема начата: __Heaven__ от Сентябрь 09, 2014, 21:59



Название: Неуспешный запуск шейдеров на андроид
Отправлено: __Heaven__ от Сентябрь 09, 2014, 21:59
Привет, друзья!
Попытался скомпилировать свою программу под андроид и получил непонятное мне сообщение во время запуска в вывод. Помогите мне его расшифровать, пожалуйста.
Цитировать
Отладка запущена
D/dalvikvm( 1347): Trying to load lib /data/data/org.qtproject.example.ProCASTil/lib/libgnustl_shared.so 0x40515128
D/dalvikvm( 1347): Added shared lib /data/data/org.qtproject.example.ProCASTil/lib/libgnustl_shared.so 0x40515128
D/dalvikvm( 1347): No JNI_OnLoad found in /data/data/org.qtproject.example.ProCASTil/lib/libgnustl_shared.so 0x40515128, skipping init
D/dalvikvm( 1347): Trying to load lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5Core.so 0x40515128
D/dalvikvm( 1347): Added shared lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5Core.so 0x40515128
D/dalvikvm( 1347): Trying to load lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5Gui.so 0x40515128
D/dalvikvm( 1347): Added shared lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5Gui.so 0x40515128
D/dalvikvm( 1347): No JNI_OnLoad found in /data/data/org.qtproject.example.ProCASTil/lib/libQt5Gui.so 0x40515128, skipping init
D/dalvikvm( 1347): Trying to load lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5Widgets.so 0x40515128
D/dalvikvm( 1347): Added shared lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5Widgets.so 0x40515128
D/dalvikvm( 1347): No JNI_OnLoad found in /data/data/org.qtproject.example.ProCASTil/lib/libQt5Widgets.so 0x40515128, skipping init
D/dalvikvm( 1347): Trying to load lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5OpenGL.so 0x40515128
D/dalvikvm( 1347): Added shared lib /data/data/org.qtproject.example.ProCASTil/lib/libQt5OpenGL.so 0x40515128
D/dalvikvm( 1347): No JNI_OnLoad found in /data/data/org.qtproject.example.ProCASTil/lib/libQt5OpenGL.so 0x40515128, skipping init
D/dalvikvm( 1347): Trying to load lib /data/data/org.qtproject.example.ProCASTil/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x40515128
D/dalvikvm( 1347): Added shared lib /data/data/org.qtproject.example.ProCASTil/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x40515128
I/Qt      ( 1347): qt start
D/dalvikvm( 1347): Trying to load lib /data/data/org.qtproject.example.ProCASTil/lib/libProCASTil.so 0x40515128
D/dalvikvm( 1347): Added shared lib /data/data/org.qtproject.example.ProCASTil/lib/libProCASTil.so 0x40515128
D/dalvikvm( 1347): No JNI_OnLoad found in /data/data/org.qtproject.example.ProCASTil/lib/libProCASTil.so 0x40515128, skipping init
I/Qt JAVA ( 1347): DEBUGGER: extra parameters: Bundle[{pong_file=/data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, use_local_qt_libs=true, load_local_jars=jar/QtAndroid-bundled.jar:jar/QtAndroidAccessibility-bundled.jar:, debug_ping=true, gdbserver_socket=/data/data/org.qtproject.example.ProCASTil/debug-socket, static_init_classes=:, libs_prefix=/data/local/tmp/qt/, load_local_libs=plugins/platforms/android/libqtforandroid.so:, gdbserver_command=/data/data/org.qtproject.example.ProCASTil/lib/gdbserver --multi +/data/data/org.qtproject.example.ProCASTil/debug-socket, ping_file=/data/data/org.qtproject.example.ProCASTil/debug-ping}]
I/Qt JAVA ( 1347): DEBUGGER: removing ping file /data/data/org.qtproject.example.ProCASTil/debug-ping
I/Qt JAVA ( 1347): DEBUGGER: removing pong file /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil
I/Qt JAVA ( 1347): DEBUGGER: starting /data/data/org.qtproject.example.ProCASTil/lib/gdbserver --multi +/data/data/org.qtproject.example.ProCASTil/debug-socket
I/Qt JAVA ( 1347): DEBUGGER: gdbserver started
I/Qt JAVA ( 1347): DEBUGGER: waiting for socket at /data/data/org.qtproject.example.ProCASTil/debug-socket, attempt 0
I/Qt JAVA ( 1347): DEBUGGER: waiting for socket at /data/data/org.qtproject.example.ProCASTil/debug-socket, attempt 1
I/Qt JAVA ( 1347): DEBUGGER: socket ok
I/Qt JAVA ( 1347): DEBUGGER: writing ping at /data/data/org.qtproject.example.ProCASTil/debug-ping
I/Qt JAVA ( 1347): DEBUGGER: wrote ping
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 0
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 1
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 2
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 3
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 4
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
D/dalvikvm( 1347): GC_CONCURRENT freed 312K, 53% free 2664K/5575K, external 410K/517K, paused 10ms+5ms
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 5
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 6
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 7
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 8
I/Qt JAVA ( 1347): DEBUGGER: go to sleep
Could not load shared library symbols for 52 libraries, e.g. /system/bin/linker.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?Unable to find dynamic linker breakpoint function.
GDB will retry eventurally.  Meanwhile, it is likely
that GDB is unable to debug shared library initializers
or resolve pending breakpoints after dlopen().I/Qt JAVA ( 1347): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil, attempt 9
I/Qt JAVA ( 1347): DEBUGGER: got pong /data/local/tmp/qt/debug-pong-org.qtproject.example.ProCASTil
D/libEGL  ( 1347): egl.cfg not found, using default config
D/libEGL  ( 1347): loaded /system/lib/egl/libGLES_android.so
W/Qt      ( 1347): eglconvenience/qeglconvenience.cpp:314 (void* QEglConfigChooser::chooseConfig()): Cant find EGLConfig, returning null config
W/Qt      ( 1347): eglconvenience/qeglconvenience.cpp:314 (void* QEglConfigChooser::chooseConfig()): Cant find EGLConfig, returning null config
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:322 (bool QOpenGLShaderPrivate::compile(QOpenGLShader*)): QOpenGLShader::compile(Vertex): failed
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:322 (bool QOpenGLShaderPrivate::compile(QOpenGLShader*)): QOpenGLShader::compile(Fragment): failed
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( qt_ModelViewProjectionMatrix ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1105 (int QOpenGLShaderProgram::attributeLocation(const char*) const): QOpenGLShaderProgram::attributeLocation( qt_Vertex ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
E/libEGL  ( 1347): called unimplemented OpenGL ES API
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
W/Qt      ( 1347): opengl/qopenglshaderprogram.cpp:1781 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
Прикладываю шейдеры:
Код
C++ (Qt)
uniform vec4 color;
 
void main(void)
{
   gl_FragColor = color;
}
 
Код
C++ (Qt)
in vec4 qt_Vertex;
uniform mat4 qt_ModelViewProjectionMatrix;
 
void main(void)
{
   gl_Position = qt_ModelViewProjectionMatrix * qt_Vertex;
}