History: Setting Up An Application - QtCreator
Preview of version: 27
|
|
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-project.org.
Get the stable version that fits your setup.
New Project
Click New Project in the start screen, and choose Other Project - Empty project.
Give it a name and a place:
Add files: (Tip: Move your cpp and h-files to inside the Qt project folder before you do this!)
Files added:
Options:
Qt4 Settings: (Tip: In Qt 5 this is called "Build & Run". If you have installed Visual Studio before you installed the Visual Studio Qt 5-version, all this should already be correct set up., so you do not have to do anything here.)
Edit project file:
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