me: "Does anyone have any good frameworks which eases game development?"
friend1: "sdl"
friend2: "nebula3"
friend3: "qt"
friend2: "ogre3d"
friend1+friend2+friend3: "yeah, qt with ogl is basically what you want. since you want: 1. portability 2. networking 3. input 4. gui 5. sound"
So I decided to give QT a go. QT is developed by Nokia and it's great, because you can use it under LGPL or GPL license.
However, getting started is easier said than done if you use Visual Studio 2010 with 64bits Windows 7 like me. Which basically most people do these days.
After getting spoiled with C# and DX or XNA for the past 3-4 years other development tools just feel crippled.
This is the case with QT aswell. Their latest version 4.7.1 with it's Visual Studio 2010 addin should work right out of the box, right?
Wrong! You have to rebuild QT to fit your environment. Here's how to do it, or simply follow what I did below.
Anyways, to build it you'll have to do this.
1. Install QT with it's source code and everything. Put it preferably in c:\qt\4.7.1 then from your start menu navigate to the Microsoft Visual Studio 2010 folder
and then to the Visual Studio Tools folder and choose to run: "Visual Studio Command Prompt (2010)".
Once the program is launched, type:
cd c:\qt\4.7.1
Then type "configure" (you can remove options, but I decided to rebuild everything (it takes MUCH longer this way, and it's really recommended to remove a bunch of stuff you know you won't be needing))
Here just accept running the Generally available version, the GPL/LGPL version.
Then it'll start reading thru all available files in the QT library, once done, type NMAKE
Now qt will be built for 64bit visual studio compatibility.
Once done, you can shut down.
Now. Before you do anything, make sure the QTDIR environment variable is added in windows environment variables. if not. then add that and point it to c:\qt\4.7.1
or wherever you did install.
Now fire up visual studio 2010. New project and choose QT project. And add whatever you like (I added multimedia, all xml, sql, ogl). Build, and you are good to go.
Here's what your first project should look like once built and started:
- Elrinth