Beginning in Qt with OpenGL
-
wrote on 23 May 2011, 06:38 last edited by
Sure,... Thank you Chuck.Gao
-
wrote on 23 May 2011, 06:54 last edited by
[quote author="Dinesh Balu" date="1306132718"]Sure,... Thank you Chuck.Gao[/quote]
The code have some wrong syntax. right one is modified
- GamePlay::InitializeGL() --> GamePlay::initializeGL() in both header and source file
- glViewPort --> glViewport
- draw() --> GamePlay::draw()
I can build it on both Desktop(also simulator) and Symbian device, but it'll crash some where.
-
wrote on 23 May 2011, 06:59 last edited by
k, I have change it as you said... but still the same errors are there...
did you get the output?
-
wrote on 23 May 2011, 07:05 last edited by
no, it's OK for me. Maybe there have some problem with your environment or SDK, i'm not sure. You can paste the log on this thread, i think someone can resolve your problem
-
wrote on 23 May 2011, 07:09 last edited by
how to get the log? I couldn't copy the error, it's disabled...!
There is no log file in the debug directory..Is it would work if I re-install the SDK
-
wrote on 23 May 2011, 09:15 last edited by
Have you added #include <gl.h> yourself? If so there is no need, QGLWidget takes care of all that for you. I seem to think there can be issues if OpenGL headers and Windows headers are #include'd in the wrong order.
-
wrote on 23 May 2011, 09:19 last edited by
No, I didn't add them... now I'm re-installing the Qt SDK...
-
wrote on 23 May 2011, 09:25 last edited by
[quote author="Dinesh Balu" date="1306142398"]No, I didn't add them... now I'm re-installing the Qt SDK...[/quote]
Good luck :-)
-
wrote on 23 May 2011, 09:27 last edited by
Um.... Let's see... what if it's still not working :(
-
wrote on 24 May 2011, 06:58 last edited by
I have re-installed the SDK... Now the errors are gone ,.. and application is running successfully.. except I'm not getting the exact output....
@Chuck.Gao : what was the output you got with the project?
The Project type is Qt Mobile Application , doesn't it support OpenGL and should I go for OpenGL ES...
-
wrote on 24 May 2011, 07:07 last edited by
The mobile use OpenGL ES, but not OpenGL.
Output for what ? Sorry, i can't see anything until the application crash. -
wrote on 24 May 2011, 07:11 last edited by
[quote author="Chuck.Gao" date="1306134308"]no, it's OK for me. Maybe there have some problem with your environment or SDK, i'm not sure. You can paste the log on this thread, i think someone can resolve your problem[/quote]
You said that you got my app running on your sdk... right?
did you get any output in that?I have drawn a triangle in that app...
how to use OpenGL ES with QT
-
wrote on 24 May 2011, 07:15 last edited by
I can build it on both Desktop(also simulator) and Symbian device, but it’ll crash some where.
Qt will use OpenGL ES automatically if you build Symbian based application. -
wrote on 24 May 2011, 07:21 last edited by
[quote author="Chuck.Gao" date="1306221357"]I can build it on both Desktop(also simulator) and Symbian device, but it’ll crash some where.
[/quote]You mean the application that I sent you will crash somewhere,...
[quote author="Chuck.Gao" date="1306221357"]Qt will use OpenGL ES automatically if you build Symbian based application.
[/quote]Then why is it not working.... I got the simulator window opened but the triangle is not drawn on the screen...
-
wrote on 24 May 2011, 07:27 last edited by
That's for you to debug. It's your app. Run it in the debugger and see why it crashes.
-
wrote on 24 May 2011, 07:37 last edited by
When I started debugging...
A Warning is shown..
It says..bq. The preferred debugger engine for debugging binaries of type 'x86-windows-msvc2008-pe-32bit' is not available.
The debugger engine 'Gdb engine' will be used as a fallback.
Details:There is no CDB binary available for binaries in format 'x86-windows-msvc2008-pe-32bit'What does that mean?
-
wrote on 24 May 2011, 07:40 last edited by
Which build are you trying to debug? Desktop/simulator/symbian? I would try getting it working on the desktop first.
-
wrote on 24 May 2011, 07:46 last edited by
[quote author="ZapB" date="1306222858"]Which build are you trying to debug? Desktop/simulator/symbian? I would try getting it working on the desktop first.[/quote]
That was Qt Simulator -> N900 simulator
I tried that with desktop simulator,... It says Debugging starts..
It does nothing...No window appears... no output...
This is a Qt Mobile application...
-
wrote on 24 May 2011, 07:56 last edited by
Can you try building your app for the desktop target (not the desktop mobile simulator) and debugging that. You should have all the tools needed to debug that.
-
wrote on 24 May 2011, 08:07 last edited by
That was the desktop target...
This is the report when I interrupt debugging...
bq. Debugging starts
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x0 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x0 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)
(Internal error: pc 0x4 in read in psymtab, but not in symtab.)if you don't mind of testing my app yourself, I can mail you the project.... do you?
14/27