[Solved]Blackberry Qt5 with ANGLE for OpenGL ES2?
-
I setup "ANGLE":http://code.google.com/p/angleproject/ per the "documentation":http://code.google.com/p/angleproject/wiki/DevSetup with "DirectX SDK":http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CCAQFjAA&url=http://www.microsoft.com/en-us/download/details.aspx?id=6812&ei=KfNGUIfGGcWEjAK99ICoDA&usg=AFQjCNGlfkpARxrIP0j9oZzSR_DsVAtnKw&sig2=rgGvDjtNpnQQiWIwW_ofdQ . This is being done with Windows 7 operating system.
No errors, files seem to be there. I then copied the release files to their own directory (ie: C:/SDKs/Qt/tools/opengles2).
I setup my cmd shell for build like so:
@set QTDIR=C:/SDKs/qt/qt5/qtbase
c:/bbndk/bbndk-env.bat
set PATH=C:/SDKs/qt/qt5/qtbase/bin
set PATH=%PATH%;C:/Perl64/bin
set PATH=%PATH%;C:/Python27
set PATH=%PATH%;C:/MinGW/bin
set PATH=%PATH%;C:/SDKs/Qt/tools/opengles2
set PATH=%PATH%;%SystemRoot%/System32
set QMAKESPEC=win32-g++@Then I run config (Gitorious D/L as of 9-4-12 no longer requires 'unsupported' under -xplatform):
@configure -prefix C:/dev/qt5install -xplatform blackberry-armv7le-qcc -opengl es2 -angle C:/SDKs/tools/Angle -nomake docs -nomake examples -nomake demos -nomake tests -opensource -confirm-license -release -no-neon@
It completes
configure
but still errors at GLES2 with this:@In file included from ../../include/QtGui/qopengl.h:1:0,
from ../../include/QtGui/5.0.0/QtGui/qpa/../../../../../src/gui/kernel/qplatformopenglcontext.h:59,
from ../../include/QtGui/5.0.0/QtGui/qpa/qplatformopenglcontext.h:1,
from ../../include/QtGui/5.0.0/QtGui/qpa/../../../../../src/gui
/kernel/qplatformwindow.h:59,
from ../../include/QtGui/5.0.0/QtGui/qpa/qplatformwindow.h:1,
from kernel/qwindowsysteminterface.cpp:42:
../../include/QtGui/../../src/gui/opengl/qopengl.h:55:25: fatal error: GLES2/gl2.h: No such file or directorycompilation terminated.
mingw32-make[3]: *** [tmp/obj/release_shared/qwindowsysteminterface.o] Error 1
mingw32-make[3]: Leaving directoryc:/SDKs/Qt/qt5/qtbase/src/gui' mingw32-make[2]: *** [release] Error 2 mingw32-make[2]: Leaving directory
c:/SDKs/Qt/qt5/qtbase/src/gui'
mingw32-make[1]: *** [sub-gui-make_first] Error 2
mingw32-make[1]: Leaving directory `c:/SDKs/Qt/qt5/qtbase/src'
mingw32-make: *** [sub-src-make_first] Error 2@Any ideas?
-
I don't think Blackberry supports directX, does it? So why do you try to use Angle for this?
-
I didn't know it makes the whole library rely on DirectX. I thought it was a work-around to compile for OpenGL ES2 library but would still allow OpenGL ES2 programming. This is super depressing if its a complete replacement of it.
I am about ready to give up on Windows 7.
-
Angle is a library that translates OpenGL calls into DirectX calls.
On windows, you probably have both installed (both AMD and nVidia provide OpenGL and DirectX drivers). I have no experience on Blackberry, but I think their OS is UNIX-like, so it probably does support OpenGL natively. Qt5's QUICK2 uses OpenGL.
-
-
Wow, it worked. Unfortunatly a new OpenGL error but much closer.
What I did was use the headers for OpenGL from qnx includes GLES & GLES2. I stopped using ANGLE also.
The new error:
@:(.text$_ZN19QOpenGLGlyphTexture12freeResourceEP14QOpenGLContext[QOpenGLGlyphTex
ture::freeResource(QOpenGLContext*)]+0x39): undefined reference to_imp__glDele teTextures@8' collect2: ld returned 1 exit status mingw32-make[3]: *** [../../lib/QtGui5.dll] Error 1 mingw32-make[3]: Leaving directory
c:/SDKs/Qt/qt5/qtbase/src/gui'
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directoryc:/SDKs/Qt/qt5/qtbase/src/gui' mingw32-make[1]: *** [sub-gui-make_first] Error 2 mingw32-make[1]: Leaving directory
c:/SDKs/Qt/qt5/qtbase/src'
mingw32-make: *** [sub-src-make_first] Error 2@ -
Linker error. A build object is missing. I can't help more, though, I've never had such an issue + my OpenGL knowledge can hardly be named "knowledge" ;)
-
Solution result. I had to forget ANGLE because I miss understood it's use. Angle as @sierdzio mentions is a replacement for OpenGL ES2 for those who don't have it at all, not if the development files aren't present or compiled. It will make your program use Direct X instead of OpenGL ES.
Could be useful knowledge at a later date...
-
I don't know if this can help anyone, but configuring Qt5 with this option "-opengl desktop" was very helpful for me, to rely on my real video card opengl capabilities.
Bill