How and Where to start to build a game using Qt
-
wrote on 19 May 2011, 12:49 last edited by
Thanks Chuck.Gao and ZapB...
I tried to run the 5 in a row game given by Qt and I'm getting this error
bq. Cannot open include file :'QGLWidget' No such file or directory
does the QtOpenGL module libraries come with the Qt SDK or we have to include like a plugin...
I'm using Nokia's Qt Creator 2.0.1 - Based on Qt 4.7.0 (32 bit)
-
wrote on 19 May 2011, 12:52 last edited by
You need to add:
@
QT += opengl
@to your .pro file and re-run qmake if you wish to use OpenGL. This tells qmake to append the necessary include and library search paths to the generated Makefiles.
I've not looked at the example to see if this does so or even needs OpenGL.
-
wrote on 19 May 2011, 13:02 last edited by
Thanks ZapB... It worked.....
but it now shows multiple errors in 'gl.h'...one that is
bq. syntax error: 'void' should be preceeded by ';'
when I checked this error... it points to this line in gl.h
bq. WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
-
wrote on 19 May 2011, 13:20 last edited by
Can you post the code (or point me to it) that is causing this error please? I am not familiar with the example you are talking about.
-
wrote on 19 May 2011, 13:30 last edited by
I got this project from this link:
"5 in a row":http://quitcoding.com/?page=work#5inarowget the source code tar.gz file of the title 5 in a row
-
wrote on 8 Jun 2011, 10:21 last edited by
is it easy to create a game using QT quick?
-
wrote on 25 Jun 2011, 05:03 last edited by
It depends on the complexity of the game.
For your game, I would recommend QML. Do you need to learn Qt/C++ for your class though?Here is a QML game that uses 'levels' so you can see how transitions work:
http://qt-apps.org/content/show.php?content=134799 -
wrote on 25 Jun 2011, 05:26 last edited by
ah. so it will all depend on the "transitions"?
I might need to learn Qt/c++ I assume
-
wrote on 25 Jun 2011, 06:02 last edited by
By transitions I just mean how they change from one level to the other. Basically, generating each level.
That game I linked to is written in QML/Javascript rather than Qt/C++.P.S. Did you get the email?
-
wrote on 26 Jun 2011, 23:10 last edited by
Yeah I did. Thanks :D It really helped me a lot :)