History: Setting Up An Application - QtCreator
Preview of version: 24
|
|
Setting Up An Application With QtCreator |
Introduction
This set of instructions will walk you through setting up a QtCreator C++ project from scratch.
When you have finished this tutorial you will be able to compile a working Ogre Application and you will be ready to start the Basic Tutorials.
Table of contents
Prerequisites
Get QtCreator from Qt.Nokia.
Get the stable version or the latest snapshot.
New Project
Click New Project in the start screen, and choose Other Project - Empty project.
Give it a name and a place:
Add files:
Files added:
Options:
Qt4 Settings:
Edit project file:
Copy to clipboard
TEMPLATE = app TARGET = OgreQtProject DEFINES -= UNICODE CONFIG -= qt unix { # You may need to change this include directory INCLUDEPATH += /usr/include/OGRE CONFIG += link_pkgconfig PKGCONFIG += OGRE } win32 { LIBS *= user32.lib LIBS += -L$(OGRE_HOME)\\boost\\lib release:LIBS += -L$(OGRE_HOME)\\lib\\release debug:LIBS += -L$(OGRE_HOME)\\lib\\debug INCLUDEPATH += $(OGRE_HOME)\\include INCLUDEPATH += $(OGRE_HOME)\\include\\OIS INCLUDEPATH += $(OGRE_HOME)\\include\\OGRE INCLUDEPATH += $(OGRE_HOME)\\boost } debug { TARGET = $$join(TARGET,,,d) LIBS *= -lOgreMain_d -lOIS_d } release:LIBS *= -lOgreMain -lOIS HEADERS += \ TutorialApplication.h \ BaseApplication.h SOURCES += \ TutorialApplication.cpp \ BaseApplication.cpp
Build All:
Build Configuration:
Custom Process Step settings:
Run Settings:
New Run Configuration:
Tutorial Framework
Tutorial Framework:
Download the Ogre Wiki Tutorial Framework here:
No such attachment on this page
Project Configuration
See Also