1

I have typed out a rather large file in C code that is defining OpenGL graphics and will draw a triangle on the screen. While I know all of the functions of the X Windowing System, I do not know how to compile the program on an IRIX system...

I want to see the limits of this computer, and I am prepared to program a whole OpenGL application if that is what it takes...

How do I create a "make" file and how do I include any files? Do I just do the standard

#include <GL/gl.h> 
#include <GL/glu.h>
#include <GL/glx.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>

includes, or do I need something else? I have a full install of IRIX ready for use.

have learned the C programming language and have programmed several projects in OpenGL Fixed Function Pipeline and Programmable Pipeline in many different languages.

I installed IRIX version 6.5, which was released in, I believe, 2003, so the OpenGL pipeline is still Fixed Function (the programmable pipeline not actually being available until 2.0, and being mandatory at version 3.0).

The question in a nutshell is: 1) How do I create a make file for an IRIX shell. 2) Where are the files that I have above at in the computer? 3) Do I have to specify anything else such as environment variables, or is that done in the makefile? 4) Is there anything else I am missing from the files?

I have some documentation that I have been reading, but it is not clear about if I should set any variables to include any of these files, or if I have to download any SDKs. While I do have netboot, it is annoying to deal with, and has a very high chance of not working.

Thanks!

-rjhwinner03

  • 1
    The obvious things to try are which cc (or look directly for cc in the PATH dirs), and man cc. Similarly, man make. I'd assume IRIX works the same way as all the other unixes. There should be plenty of tutorials how to write a Makefile online if you can't figure it out from the man-pages. – dirkt Sep 16 '18 at 7:09
  • 2
    IRIX applications actually weren't plain X or OSF/Motif applications. SGI provided convenience/desktop integration libraries named IRIS ViewKit for C++. GL was hidden behind another C++ library, Open Inventor. Classic SGI development is thus C++, not C. Describing how to use these toolkits is way too broad, however. – tofro Sep 16 '18 at 7:39
  • My Question is How do I use the MIPSPro compiler. Is it even on the Indy's? How do I make a makefile for mipspro and where do I put it? – rjhwinner03 Sep 27 '18 at 2:03
  • Also the GL on Irix was an SGI product. OpenGL was later based on it but the two are not exactly the same. – Ethan Oct 3 '18 at 22:07
  • @rjhwinner03 : the IRIX MIPSPro compiler requires a license key. Let me know if you got one – mfro Jan 26 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.