Computer Graphics

Moderators: Sephiroth
Number of threads: 1263
Number of posts: 2665

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
OpenGL not working.. why? Posted by the_architect on 3 Jul 2003 at 7:47 PM
for some reason my compiler will not find the OGL header files that it needs to run a prog. I have the headers in question and have tried putting the headers with the others in my include directory and added them to my project.. still nothing. i've tried two different compilers and it can't find gl.h, glaux.h, or glu.h.... am i doing something wrong?
i can include any other header but these three....
thanks for any help
Report
Re: OpenGL not working.. why? Posted by Sephiroth on 3 Jul 2003 at 9:28 PM
: for some reason my compiler will not find the OGL header files that it needs to run a prog. I have the headers in question and have tried putting the headers with the others in my include directory and added them to my project.. still nothing. i've tried two different compilers and it can't find gl.h, glaux.h, or glu.h.... am i doing something wrong?
: i can include any other header but these three....
: thanks for any help
:
The headers should be in your "include/gl" directory (folder). You include them with a line that reads "#inlclude <gl\gl.h>", NOT "<gl.h>". The gl header is the only one you NEED, and glu is just a bunch of utilities, such as the one I use the most, gluLookAt(). The other file, "glaux", is obsolete as far as I have seen. It used to contain functions for loading images and such, but in the current release I have not been able to make anything in there work, nor have I seen any application use anything from within that header successfully. It may be there for script-kiddies who can't code and use Visual <language> and the compiler uses it. All you need to make OpenGL work is "gl.h", and if you don't know much math for dealing with matrices and other camera or position-oriented changes, include "glu.h".

-Sephiroth

Report
Re: OpenGL not working.. why? Posted by the_architect on 3 Jul 2003 at 11:43 PM

: The headers should be in your "include/gl" directory (folder). You include them with a line that reads "#inlclude <gl\gl.h>", NOT "<gl.h>".


ok i tried this and tried the whole path c:\...\..
and still no luck... i dont understand why its not working
if it helps i am using dev-cpp 4, maybe i dont have something right
thanks for the info on the other headers tho
Report
Re: OpenGL not working.. why? Posted by Sephiroth on 4 Jul 2003 at 2:16 PM
:
: : The headers should be in your "include/gl" directory (folder). You include them with a line that reads "#inlclude <gl\gl.h>", NOT "<gl.h>".
:
:
: ok i tried this and tried the whole path c:\...\..
: and still no luck... i dont understand why its not working
: if it helps i am using dev-cpp 4, maybe i dont have something right
: thanks for the info on the other headers tho
:
OK, so your OpenGL headers ARE in your "include/gl" directory? If so, don't use the whole path and try like I showed you. If that fails put them in quotations and use the entire path, but do NOT use long filenames, use the 8.3 format, so for long folder names you need to type the first six letters (excluding spaces) then do a tilde and one.

ie: C:\Program Files is actually C:\Progra~1

-Sephiroth

Report
still not working Posted by the_architect on 4 Jul 2003 at 5:18 PM
ok i am starting to feel like an idiot... no matter what i do it wont find the file...
<> or "" still doesnt work... full path or not...
its got to be something simple right?
sorry i'm such a hard case :)
Report
Re: still not working Posted by CroW on 5 Jul 2003 at 1:06 PM
have you tried to copy the gl**.h files directly to c:\ an include them from there?sure,thats not the smart way,but youll see if theres something wrong with your compiler/includefiles...
Report
copied them to c: and......... nope Posted by the_architect on 5 Jul 2003 at 6:04 PM
: have you tried to copy the gl**.h files directly to c:\ an include them from there?sure,thats not the smart way,but youll see if theres something wrong with your compiler/includefiles...
:


still no.... doesnt work for VC++ 6.0 either... two compilers not acting right.. what are the chances?
Report
Re: copied them to c: and......... nope Posted by Sephiroth on 6 Jul 2003 at 11:02 AM
: : have you tried to copy the gl**.h files directly to c:\ an include them from there?sure,thats not the smart way,but youll see if theres something wrong with your compiler/includefiles...
: :
:
:
: still no.... doesnt work for VC++ 6.0 either... two compilers not acting right.. what are the chances?
:
Sounds like your compilers are not configured properly. I had that problem with the newest version of Borland, but got around it using 8.3 formats for the include configs.

-Sephiroth

Report
Re: copied them to c: and......... nope Posted by XLoom on 8 Jul 2003 at 1:25 AM
I have only one idea after reading these posts, are you sure that the problem is with header files and not linking? What error do you precisely get, does it specifically say that header files are not found? If not then do you have libraries set properly? Do you have in 'Project Options->Linker options' these two?
-lopengl32 -lglu32

XLoom




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.