Skip to main content

History: Setting Up An Application - QtCreator

Source of version: 9

Copy to clipboard
            {DIV(class="Layout_box6")}{SPLIT(colsize=15%|85%)}{img fileId="1919"}---
{DIV(class="bigBold")}Setting Up An Application With QtCreator{DIV}{SPLIT}
{DIV}
%clear%
!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)).

{maketoc}

!Prerequisites
Get QtCreator from Qt.Nokia.
Get the [http://qt.nokia.com/downloads|stable version] or [ftp://ftp.trolltech.com/qtcreator/snapshots/latest|the latest snapshot].

!New Project
Click New Project in the start screen, and choose Other Project - Empty project.
{img fileId="1909"}
Give it a name and a place:
{img fileId="1910"}
Add files:
{img fileId="1911"}
Files added:
{img fileId="1907"}
Options:
{img fileId="1908"}
Qt4 Settings:
{img fileId="1912"}
Edit project file:
{img fileId="1913"}
{CODE(wrap="1", colors="qmake")}
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
{CODE}

Build All:
{img fileId="1914"}
Build Configuration:
{img fileId="1918"}

Custom Process Step settings:
{img fileId="1915"}
Run Settings:
{img fileId="1917"}
New Run Configuration:
{img fileId="1916"} 

!Tutorial Framework
Tutorial Framework:
{img fileId="1657" width="400" thumb="y" alt="" rel="box"}
Download the ((Ogre Wiki Tutorial Framework)) here:
{ATTACH(id="61", page="Ogre Wiki Tutorial Framework",icon="1")}{ATTACH}
!Project Configuration

{TRANSCLUDE(page="seebox")}
[http://blog.codeimproved.net/2009/12/qtcreator-tips-and-tricks/|QtCreator Tips and Tricks]
{TRANSCLUDE}


        

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