Posts

Showing posts from May, 2009

3D DevIL in a 2D QT World.

Image
I will now attempt to create my first Qt Application: :) We will use the "QApplication" object as our starting point, which is only used once regardless of how many windows or widgets are used, It must be called before any other objects related to the GUI, if we wish to instead make a console application we would instead use the "QCoreApplication" object. Design Goals: Create a simple windowed application that has a basic GUI, and allows images to be loaded from DevIL or FreeImage libraries into a 3D OGL window for display. I first use QMainApplication to subclass my own "MainWindow" this window is the parent window which handles memory handling and all associated window parameters. I then add a MenuBar which has "File" with a SubMenu "Open" this opens a FileDialog QString and parses the selected filename. I then add an OpenGL window as our central widget, by making our own "GLMain" sub-class which will handle all GL drawing ...

Qt and the Beast...

Before compiling DevIL libraries, I downloaded the Qt 4.5 GPL/LGPL Windows SDK and compiled static Windows Qt x64 Libs under MSVC 2008. http://www.qtsoftware.com/ Qt will allow me to keep my design goals of CrossPlatform (Linux x64/Windows 7 x64) development with LGPL license. I will start off by commending "Trolltech" owned by "Nokia" for having a very elegant application development framework, which I have decided to support due to it's GPL/LGPL, CrossPlatform development prowess and well thought out design along with great levels of documentation and attention to detail. Initial compilation was quite easy to setup, a path environment variable was needed in Vista. I also loaded the Qt MSVC 2008 plugin which made integration with MSVC quite good. The only real caveats compiling the libs under MSVC can be described here: http://blog.shadowgears.com/2008/10/making-qt4-dance-with-msvc-2008.html With thanks to the author for providing the most important command l...

Microsoft and the DevIL

Steps to compiling DevIL under Vista x64. http://openil.sourceforge.net/ After downloading and unzipping DevIL 1.78 Windows SDK, load the project into MSVC, and hit compile. 1) fatal error C1083: Cannot open include file: 'IL/config.h': No such file or directory. (9 Errors /0 Warnings) It would seem that DevIL uses some "configure.bat" to configure the appropriate options for "config.h.in" and should output "config.h" otherwise we get the above error. As I'm new to 3rd party library compiling under MSVC, it would be nice to have a readme that explains in depth what is meant to happen at this stage. Configure.bat returns a "file not found" error in either a DOS box, or MSVC console. Over the last few days i have compiled Qt and Freeimage, Freeglut, etc without any such manually hacking or guess work. Regardless i manually change "config.h.in" to be "config.h" and rebuild. As I'm not aware if the makefiles are ev...