Thursday 23 June 2011

Set up Eclipse for Ogre

Create new C++ project in eclipse.

Right click the project and select Properties:
* C/C++ Build
  * Settings
  * Tool Settings
  * GCC C++ Compiler
  * Includes
    + Include paths (-l)
      - /usr/local/include/OGRE
      - /usr/include/OIS
  * GCC C++ Linker
  * Libraries
    + Libraries (-l)
      - OgreMain
- OgreTerrain
- OgrePaging
- OgreRTShaderSystem
      - OIS
      //- BulletCollision
      //- BulletDynamics
      //- LinearMath
    + Libraries (-L)
      - /usr/local/lib
      - /usr/lib
      (/usr/local/lib/ must be before /usr/lib because in Ubuntu
      in /usr/lib is the deb libogre-dev v.1.6.4 and
      in /usr/local/lib is the manual installation and
      we want the second one to take precedence)

No comments:

Post a Comment