To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Mon, 06-Sep-2010 01:49:26 GMT
         internet.com

Go Back   JustLinux Forums > Community Help: Check the Help Files, then come here to ask! > Technical

Technical Other Linux related questions that do not quite fit into the other forums.

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-16-2002, 05:53 PM
tarrou tarrou is offline
Registered User
 
Join Date: Sep 2002
Posts: 15
mesa/opengl/i'm not too smart

you guys helped me so much yesterday, i hoped i could impose with another question. i'm trying to start programming on linux with opengl but, i'm painfully new at linux and don't know much about what files neeed to be where, and having a voodoo banshee card probably doesn't help. suse 8 comes with mesa so i've got that on there and glut.h is where it should be but i don't have gl or glu anywhere. lots of people have been talking about gl files being somewhere around /usr/X11R6/include but i don't have any gl header files in there, at least not as .h could someone dumb down normal instructions enough to get me going?
Reply With Quote
  #2  
Old 09-16-2002, 05:59 PM
tarrou tarrou is offline
Registered User
 
Join Date: Sep 2002
Posts: 15
one more thing, i figured the mesa that came with suse didn't have the libraries so i downloaded the tar for them from mesa3d and i know how to extract the files but setting up things i'm not so good at. so maybe that's my problem?
Reply With Quote
  #3  
Old 09-16-2002, 06:44 PM
rage2001 rage2001 is offline
Registered User
 
Join Date: Sep 2002
Posts: 14
Well this is a makefile which we use at school for programming grpahics in opengl and c ..... so it has some dirs there where files should be.. i have yet to set up open gl or glut or gl on this machine yet.... I will be doing so in the next few days....

#
# a simple Makefile to compile a single file program using the Mesa library
# this file uses the defaults for make, where possible
#

GL_INCDIR = /usr/include/GL
GL_LIBDIR = /usr/lib

# the location of the X11 libraries
XLIBS=-L/usr/X11R6/lib -lXmu -lXext -lX11 -lXi -lSM -lICE -lXt
# the location of the Mesa (OpenGL) libraries
GL_LIBS = -L$(GL_LIBDIR) -lglut -lGLU -lGL -lm $(XLIBS)

LIBS=$(GL_LIBS)

PROG=hello

CFILES=$(PROG).c
OFILES=$(PROG).o

CC=gcc

CPPFLAGS=-I$(GL_INCDIR)
CFLAGS=-Wall -O -g
LDFLAGS=$(GL_LIBS)


all: $(PROG)

clean:
-rm -f *.o $(PROG)

#$(PROG): $(OFILES)
# $(CC) $(LDFLAGS) $(OFILES) -o $@ $(LIBS)



rage2001
Reply With Quote
  #4  
Old 09-16-2002, 07:37 PM
tarrou tarrou is offline
Registered User
 
Join Date: Sep 2002
Posts: 15
ok, i got it to use gl.h etc but when i try to compile it gives me compile errors for every function i call
/tmp/ccRuUbq0.o(.text+0xf): undefined reference to `glClear'
/tmp/ccRuUbq0.o(.text+0x29): undefined reference to `glColor3f'
and so forth. what does this mean?
Reply With Quote
  #5  
Old 09-16-2002, 10:28 PM
rage2001 rage2001 is offline
Registered User
 
Join Date: Sep 2002
Posts: 14
I have never seen those errors.. I am not an experienced opengl programmer... tjhis is my first course.... but that make file is what we use to compile out code... it makes the object file...

in there u see the word hello ..... thatst he name of the c program trying to compile... then once it makes the file (if complied withut errors) we type the name: hello

and the file runs

thsoe errors I am not sure about... its late here.. I can take a look in my book tommorrow... see if I can come up with anything


rage2001
Reply With Quote
  #6  
Old 09-17-2002, 05:21 PM
tarrou tarrou is offline
Registered User
 
Join Date: Sep 2002
Posts: 15
that would be great. what video card do you use? would that make any difference? this is so frustrating...!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:49 PM.

Help File Library
Installation
Modems
Webservers
Games
Hardware
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
Free Newsletter
Server Daily


More Free Newsletters




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.