Jump to content

  • Log In with Google      Sign In   
  • Create Account


I need Help getting started


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 laura_steph1   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 January 2002 - 04:52 PM

HI, I am trying to learn OpenGL and I an starting to understand the concepts but I do not know how to compile the programs. I just started working on an SGI Onyx3400 and it has a IRIX 6.5 operating system. This may sound really stupid but doesn''t the Silicon Graphics machines work under X windows? I don''t know where to type in the programs, maybe under the Unix shell? HELP ME PLEASE. I AM REALLY NOT THAT STUPID. I JUST NEED A KICK START. Thanks, laura

Sponsor:

#2 Fruny   Moderators   -  Reputation: 1653

Like
Likes
Like

Posted 12 January 2002 - 10:39 AM

Fire up a shell, and check if one of the following programs are available : nedit, pico, emacs, vi. All these are text editors (and more...) which will let you type programs.

vi is probably available, but (like emacs), but you''ll need to learn to use it... it is powerful though.
pico is available if pine (mail client) is installed, which it may, or not, you can still get it on the University of Washington site. It is trivial to use but has very little functionality.

Then use cc (for C) or CC (for C++) to compile (consult the man pages), unless gcc is installed, of course

#3 laura_steph1   Members   -  Reputation: 122

Like
Likes
Like

Posted 14 January 2002 - 04:48 AM

OK,
So if I am writing a c++ program to compile it I would do this:

CC filename

Will that also let you view the picture. Or is there a separate command for that?

Thanks,
Laura

Edited by - laura_steph1 on January 14, 2002 11:49:49 AM

#4 Fruny   Moderators   -  Reputation: 1653

Like
Likes
Like

Posted 14 January 2002 - 05:07 AM

* To compile & link a single file, output is ''a.out''
CC filename

* To compile & link a single file, output is ''output''
CC filename -o output

* To compile (not link) a file, output is ''filename.o''
CC -c filename

* To link together several .o files
CC file1.o file2.o file3.o -o output

(Check the man page for more)

To run your program (and thus see the picture & so on), type the name of the file the compiler has output after the link step (i.e ''a.out'' or the name you specified).


#5 GelfTheElf   Members   -  Reputation: 128

Like
Likes
Like

Posted 14 January 2002 - 07:12 AM

Hey,
Unix is tough to get into graphics programming on

If you''re doing straight C though, it rocks.

Most unix''s come with cc or gcc.

-Gelf

#6 laura_steph1   Members   -  Reputation: 122

Like
Likes
Like

Posted 15 January 2002 - 05:21 AM

Thanks for your help.

I have one more question. I have gotten my program to compile but there seems to be many linking errors. It seems that it cannot identify #include <GL/glut.h>. Do the SGI computers not have this header? Or I thought I read that the Silicon Graphics computers run off X windows. Can you not use GLUT with X windows?

Thanks again for your help.
Laura




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS