I'm developing a model viewer that'll rely on my own OpenGL-based game engine to do the processing and rendering. I was able to get an OpenGL view working in my QT application just fine, but I'm having issues getting the game engine to hook into it.
My build tree in QT Creator consists of two projects:
The engine is built as a shared object (I'm using Debian), and everything compiles fine. The Model Viewer project references my Engine project going the External Library route because I couldn't get my built library to appear in the Internal Library's drop-down. I included by engine's header, and was able to make a call to my game engine's static Engine::Start() method. It compiles, but my Model Viewer application crashes before the window even draws. It doesn't give me anymore information, so I'm not sure what exactly's going on... Does anyone have any ideas on how to debug this? I'm kind of new to debugging in QT Creator.
EDIT: I figured out the crash: I forgot to initialize GLEW before making gl* calls. My question below still remains, however ;)
On a side now, I am comfortable with CodeBlocks, and a lot of my projects using my engine uses that. Is there a way to build my QT-based UI in its Interface Designer, save it out as a .ui file, then get it to load using the QT SDK in CodeBlocks? The way I understand it is even though QT is a C++ SDK, it uses its own compiler to compile code as it has extra keywords such as "signal", "slot", etc.
Edited by Vincent_M, 02 May 2014 - 12:40 AM.