Tutorial: Set up a new OGRE project on Code :: Blocks

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
20,798
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 13, 2009

This is how you set up an OGRE project in Code :: Blocks (Windows). If you made a nice installation (following the OGRE setup guide in http://www.ogre3d.org/wiki/index.php/Installing_An_SDK), this should come up without problems.

NOTE: This tutorial only works with Code::Blocks; NOT Microsoft Visual C++. There are other tutorials around for VC++. I don't use VC++ so stop asking.

I am running a Windows XP Service pack 3. I didn't install DirectX9; instead I just included d3dx9_30.dll in OgreSDK\bin\release. I plan to install it later tough, but what I did here is just ok for total beginners like me.

These are the parameters I used:

*** Compiler settings Tab ***

Other options Sub-Tab

-mthreads
-fmessage-length=0
-fexceptions
-fident

#defines Sub-Tab

NDEBUG
_STLP_NO_CUSTOM_IO
_STLP_USE_DYNAMIC_LIB

*** Linker settings Tab ***

Link libraries List

OgreMain
OIS

Other linker options List

-Wl,--enable-auto-image-base
-Wl,--add-stdcall-alias

*** Search directories Tab ***

Compiler Sub-Tab

$(OGRE_HOME)\stlport\stlport
$(OGRE_HOME)\include
$(OGRE_HOME)\include\OIS

Linker Sub-Tab

$(OGRE_HOME)\bin\$(TARGET_NAME)

enjoy.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • @MrMatt027 1.copy all files from C:\ogresdk1.7.1mingw\include\O­GRE and paste in C:\ogresdk1.7.1mingw\include\

    2.similarly copy all files from C:\ogresdk1.7.1mingw\include\O­IS and paste inC:\ogresdk1.7.1mingw\include­\

    3.there is a boost folder in boost1_42 ,copy that too and paste it in same C:\ogresdk1.7.1mingw\include\

    It worked for me ,hopefully should work for you too.

  • Thx

see all

All Comments (31)

Sign In or Sign Up now to post a comment!
  • Does this use for G++ (gcc) on linux?

  • mingw32-g++.exe: Files\SDK\OgreSDK\bin\Release\­My3Dproj.exe: No such file or directory

    Process terminated with status 1 (0 minutes, 0 seconds)

    0 errors, 0 warnings

  • Errors with codeblocks 10.05 and ogre sdk

    g:\codeblocks\mingw\bin\..\lib­\gcc\mingw32\4.4.1\include\c++­\backward\backward_warning.h|2­8|warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.| ...

  • @nikhilnxvverma1 You are my hero! Thanks

  • @BicycleCollector lol did you download the mingw?

  • mines say that it isnt a valid location

  • didnt help, game isnt running -.-

  • @MAniAcMC1 yea me too.

  • @nikhilnxvverma1

    Thanks

  • @nikhilnxvverma1 thanks for that

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more