Archived

This topic is now archived and is closed to further replies.

laura_steph1

I need Help getting started

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
* 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).

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites