Question about Ogre3D

This is a discussion on Question about Ogre3D within the C++ Programming forums, part of the General Programming Boards category; Hello, I've been trying to figure out how to get this Ogre3D graphics engine to work with Dev-C++. I followed ...

  1. #1
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719

    Question Question about Ogre3D

    Hello,

    I've been trying to figure out how to get this Ogre3D graphics engine to work with Dev-C++. I followed the directions, you simply have to add files into the directories (library, parameters, and C++ include). But when I go to compile a sample program they gave me, I end up getting errors. I am not sure what I am doing wrong here's the site:

    http://www.ogre3d.org/ So if you could please help me, that would be great.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    What are the errors you're getting? They'll give us some idea of where to look.

  3. #3
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719

    Errors

    Here are the errors that I got after I compiled the cube mapping example in Dev:

    Code:
     [Linker error] undefined reference to `Ogre::Root::termHandler()' 
    
      [Linker error] undefined reference to `Ogre::Exception::getFullDescription() const' 
    
      [Linker error] undefined reference to `Ogre::Root::~Root()' 
    
      [Linker error] undefined reference to `Ogre::Root::startRendering()'
    The compile log said it had like 210 errors.
    Thanks for the help.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,793
    What setting are using to compile/link the program? Are you linking in the ogre libraries with your code?
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  5. #5
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719

    Linker & Compiler Settings

    All of my settings say NO. I am not sure if that is correct, but that was the default I believe. I put all the files into their correct directories. I am not sure if I'm linking the libraries with my code, maybe I should change the settings.
    If you have any ideas, for why it isn't working that would be a BIG help.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    [Linker error] undefined reference to `Ogre::Root::termHandler()'

    [Linker error] undefined reference to `Ogre::Exception::getFullDescription() const'

    [Linker error] undefined reference to `Ogre::Root::~Root()'

    [Linker error] undefined reference to `Ogre::Root::startRendering()'
    It can't find those functions. Do they exist?

  7. #7
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    I am not sure. As I am new to graphics engines. I don't no much about graphics or anything like that, so if anyone has any reccomendations on graphic engines, I would be VERY HAPPY.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  8. #8
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Personally, I like SDL. Check out www.libsdl.org.

    It's written in and designed for C, but works in C++, and I know it works with Bloodshed. It covers several areas other than graphics, like sound, events, threading, peripherals, etc...

  9. #9
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    sdl is a graphics library (among other things) OGRE is a complete rendering engine. If your looking for a free (open source) engine, ogre is the way to go. If your just looking for a rendering library, try SDL or Allegro.

  10. #10
    *this
    Join Date
    Mar 2005
    Posts
    498
    did you follow the "complete newbies guide" wiki? I got it working with visual .net but that is easier. make sure you installed the newest directX SDK and linked it in dev. the guide shows you everything, just make sure you read it all.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21