OpenGL issues...

This is a discussion on OpenGL issues... within the Game Programming forums, part of the General Programming Boards category; I have been having trouble following tutorials for learning OpenGL. More specifically, RoD's tutorials. They make sense, I can completely ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    OpenGL issues...

    I have been having trouble following tutorials for learning OpenGL. More specifically, RoD's tutorials. They make sense, I can completely comprehend what is being explained. But suddenly, I hit a dead end. In one of the tutorials (The 5th maybe?Something like that:P) it gives a whole bunch of source code and says to compile it and you should see a robot. I go to compile it and I get a bunch of problems. Library missing, undeclared this, undeclared that...I beleive the problem may be in one or more of the following items:

    1. I am running Dev-C++ on Windows XP Home
    2. Maybe I don't have the most recent OpenGL libraries
    3. Maybe Copy & Paste won't work here??

    Help would be greatly appreciated. Thanks in advance

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>Library missing, undeclared this, undeclared that...

    as detailed as that is, maybe a snippit of the actual errors would be more informative. also, try http://nehe.gamedev.net for some opengl tutorials.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    Post yes..very detailed...

    sorry for the lack of details...i thought that maybe there was a file that would give me all (or as most as possible) of the files that are needed to use opengl. i included a list of the errors(only about 1/3 of them, more if requested) from 2 screenshots spliced together. thanks for the help

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    hm...

    the pic didnt show up, here it is again...hopefully it will show
    Attached Images Attached Images   

  5. #5
    ---
    Join Date
    May 2004
    Posts
    1,379
    It looks like you havent included t he correct headers

  6. #6
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    help??

    Quote Originally Posted by sand_man
    It looks like you havent included t he correct headers
    ok...could you possible tell me which one i am missing?

  7. #7
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Considering it can't find GLX's constants I'll assume you haven't done one of two things:

    1) You haven't included GLX's headers (probably glx.h).
    2) You don't have GLX's headers in a spot normally checked by your development tool - you can probably change where it looks in the project options. Simply include the directory GLX is found in.

  8. #8
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    glx....

    OK....sounds like you know what you're talking about, :P. I have searched and searched through all of my folders in the compiler folder and i have not found it. Is there a place I could download it to put into my lib?Thanks

  9. #9
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Okay I did a quick lookup on OpenGL.org. Here is what they say:

    "GLX 1.3 is used on Unix OpenGL implementation to manage interaction with the X Window System and to encode OpenGL onto the X protocol stream for remote rendering."

    As you can see, GLX is for Unix. But you are using Windows. My advice is to do what has been mentioned earlier and just switch to NeHe's tutorials. Especially since those are for Windows and not Unix.

  10. #10
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    thanks...

    thanks for the info...shouldnt the tutorials say they are for unix though? i read them and it doesnt say anything about platforms...


    edit: I went to NeHe's site and started trying to learn it. I got to lesson 1 I downloaded the lesson 1 source code in dev-c++ format(because thats what i use) and opened it. I hit compile, it says "glaux.h - No such file or library."

    So I open the lib folder and it is in there. (libglaux.a) what could be going wrong THIS time??
    Last edited by Razorblade Kiss; 04-18-2005 at 02:34 PM. Reason: still have problems...
    No signature...

  11. #11
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    That is something I definately know about. Glaux is an older library that ceased being used for various reasons. I believe they involved it being full of memory leaks amongst other things.

    NeHe should have a replacement for Glaux listed on the left side of the front page.

  12. #12
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    you are so freakin awesome!

    you are so freakin awesome! Thanks for all the help...I found the glaux replacement, but I also found out that all the lessons so far render fine without the glaux header. I've got it for later though...THanks again!
    No signature...

  13. #13
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    hm...

    As I suspected, glaux is needed in the later lessons...(Well, starting at about lesson 6:P)So I figured I would replace the old glaux lib with the replacement, but I can't get anything to work. Any help would be appreciated, as I can create 3d objects now, and move them around in space, at any color specified, yet I can't give any textures, much less texture blending and other things. Thanks in advance, Razorblade
    No signature...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL Shadow Mapping Issues
    By animeaholic in forum Game Programming
    Replies: 0
    Last Post: 06-05-2007, 09:49 AM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 06:57 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

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