Print

Image

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(external link) or the latest snapshot(external link).

New Project

Click New Project in the start screen, and choose Other Project - Empty project.
Image
Give it a name and a place:
Image
Add files:
Image
Files added:
Image
Options:
Image
Qt4 Settings:
Image
Edit project file:
Image

TEMPLATE = app
TARGET = OgreQtProject
 
unix {
    # You may need to change this include directory
    INCLUDEPATH += /usr/include/OGRE
    CONFIG += link_pkgconfig
    PKGCONFIG += OGRE
}
win32 {
    # You may need to change this include directory
    OGREHOME = D:\\OgreSDK\\OgreSDK_vc10_v1-7-1
    LIBS += -L$$OGREHOME\\boost_1_42\\lib
    Release:LIBS += -L$$OGREHOME\\lib\\release
    Debug:LIBS += -L$$OGREHOME\\lib\\debug
    INCLUDEPATH += $$OGREHOME\\include
    INCLUDEPATH += $$OGREHOME\\include\\OIS
    INCLUDEPATH += $$OGREHOME\\include\\OGRE
    INCLUDEPATH += $$OGREHOME\\boost_1_42
}
CONFIG(debug, debug|release) {
    TARGET = $$join(TARGET,,,d)
    LIBS *= -lOgreMain_d -lOIS_d
}
CONFIG(release, debug|release):LIBS *= -lOgreMain -lOIS
 
HEADERS += \
    TutorialApplication.h \
    BaseApplication.h
 
SOURCES += \
    TutorialApplication.cpp \
    BaseApplication.cpp

 
Build All:
Image
Build Configuration:
Image

Custom Process Step settings:
Image
Run Settings:
Image
New Run Configuration:
Image

Tutorial Framework

Tutorial Framework:
Image
Download the Ogre Wiki Tutorial Framework here:
 TutorialFramework.zip

Project Configuration

 

 


Contributors to this page: jacmoe111451 points  .
Page last modified on Monday 02 of August, 2010 01:23:31 GMT by jacmoe111451 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.