Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on May 2011
#1
Hi
All examples from qt opengl crash(Segmentation fault) in my scratchbox
Other examples from qt like animation, editor works fine.

Anybody know how to make Qt opengl examples to work(in scrachbox)?
All opengl examples build in scratchbox work fine on N900 device.

I was able to run working gles2 example (all works fine in scratchbox)
http://wiki.maemo.org/User:Javispedro/SDL-GLES


my platform:
installation with maemo-sdk-install-wizard_5.0.py
Qt examples from leatest Qt SDK 1.1.1
OS Ubuntu 10.10 32bit

Last edited by miskol; 2011-05-31 at 16:30.
 
Posts: 468 | Thanked: 610 times | Joined on Jun 2006
#2
I am surprised that it works at all.

I thought that Xepher used in Ubunti 10.10 doesn't include support for OpenGL.

I also don't think the x86 scratchbox build includes a OpenGL ES wrapper. If not, you will be using the default OpenGL library from your host system. That code might not run on a real N900, because it supports OpenGL ES only and there are differences.

The QOpenGL widget automatically uses the correct library. If compiling for n900, it will compile against OpenGL ES 2.0 and on your ubuntu system it will compile against the systems OpenGL implementation.

I develop a game in Qt that uses OpenGL shaders to draw stuff on the screen. It works perfectly fine on Ubuntu and on the N900 (but maybe that is because I use only simple OpenGL shader stuff ).
I mostly test stuff on the Desktop, and compile results for Maemo to check compatibility.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:41.