Skip to main content

History: Setting Up An Application - QtCreator

Preview of version: 9

QtCreator Logo
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.

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.
1 - Setting Up an Application - QtCreator
Give it a name and a place:
2 - Setting Up an Application - QtCreator
Add files:
3 - Setting Up an Application - QtCreator
Files added:
4 - Setting Up an Application - QtCreator
Options:
5 - Setting Up an Application - QtCreator
Qt4 Settings:
6 - Setting Up an Application - QtCreator
Edit project file:
7 - Setting Up an Application - QtCreator

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:
8 - Setting Up an Application - QtCreator
Build Configuration:
9 - Setting Up an Application - QtCreator

Custom Process Step settings:
10 - Setting Up an Application - QtCreator
Run Settings:
11 - Setting Up an Application - QtCreator
New Run Configuration:
12 - Setting Up an Application - QtCreator

Tutorial Framework

Tutorial Framework:
vc10step3.png
Download the Ogre Wiki Tutorial Framework here:
No such attachment on this page

Project Configuration


History

Information Version
Sun 22 of Sep, 2013 12:54 GMT-0000 Flateno Added arguments to the Release qmake build step. Also did some cleanup of the layout. 32
Sun 22 of Sep, 2013 12:21 GMT-0000 Flateno Added OgreOverlay.lib to the pro-file, as needed in Ogre 1.9 31
Sun 22 of Sep, 2013 12:16 GMT-0000 Flateno A minor addition to the Run Configuration 30
Sun 22 of Sep, 2013 12:11 GMT-0000 Flateno Minor addition to Custom Process Step 29
Sun 22 of Sep, 2013 11:38 GMT-0000 Flateno A small addition to the .pro file for Ogre 1.9 users 28
Sun 22 of Sep, 2013 11:27 GMT-0000 Flateno Minor tip for settings in Qt 5 27
Sun 22 of Sep, 2013 11:19 GMT-0000 Flateno Added tip when adding files to project 26
Sat 21 of Sep, 2013 21:35 GMT-0000 Flateno Changed url from qt nokia to http://qt-project.org/. 25
Sun 27 of May, 2012 23:50 GMT-0000 jacmoe [rollback version 9] 24
Tue 31 of Jul, 2012 00:22 GMT-0000 Erio 23
Tue 31 of Jul, 2012 00:19 GMT-0000 Erio 22
Tue 31 of Jul, 2012 00:18 GMT-0000 Erio 21
Mon 23 of Jul, 2012 10:31 GMT-0000 Erio 20
Mon 23 of Jul, 2012 10:30 GMT-0000 Erio Improved the previous description of the .pro file 19
Fri 20 of Jul, 2012 09:54 GMT-0000 Erio 18
Fri 20 of Jul, 2012 06:23 GMT-0000 Erio 17
Fri 20 of Jul, 2012 06:22 GMT-0000 Erio 16
Thu 19 of Jul, 2012 16:03 GMT-0000 Erio 15
Thu 19 of Jul, 2012 16:02 GMT-0000 Erio 14
Thu 19 of Jul, 2012 15:59 GMT-0000 Erio Update of the .pro code 13
Thu 19 of Jul, 2012 03:33 GMT-0000 Erio 12
Thu 19 of Jul, 2012 03:30 GMT-0000 Erio Finished to paste the code for version 4.8.1 Qt and QtCreator and OGRE 1.8.0 PS: if there are any change to be done, tell me, i hope that i'm doing right, but i may be wrong ... 11
Thu 19 of Jul, 2012 03:02 GMT-0000 Erio Added a first part about setting up an OGRE project with Qt 4.8.1, QtCreator 2.4.1 and OGRE3D 1.8.0 PS: I didn't wanted to delete anything was made before, so i just made a new part :) and I'm sorry i 10
Sun 27 of May, 2012 23:50 GMT-0000 jacmoe 9
Sun 27 of May, 2012 23:41 GMT-0000 jacmoe 8
  • «
  • 1 (current)
  • 2