How do I compile OpenGL in IRIX?

Hi all,

Good day. I have two questions with me here.... Hope that someone out there know how to do this..

I am actually figuring out how do one compile an OpenGL source code for stereoscopic projection on the monitor, which can then be viewed with the 3D glasses. Compiling is on IRIX machine.

What commands are required  to enable stereo executable?
I am aware of these commands which should be used.. like ..glXChooseVisual function, STR_RECT, STR_TOP, STR_BOTTOM and Square-pixel stereo ..
Is it true?

Hope someone can help me. Thanks alot.

Warmest regard,
megmeg

megmegAsked:
Who is Participating?
 
garbouaCommented:
easy
you need  to add -DMOTIF to CFLAGS in your makefile
add x libraries -lXm -lXt -lX11 to your library
add openGl libraries to your libraies stuff -lGL -lGLU -lGLw
now build it.
IF YOU DON'T HAVE A MAKEFILE ALREADY
gcc -DMOTIF apps.c -L/usr/X11R6/lib -lXm -lXt -lX11 -lGL  -lGLU -lGLw -o MyOUputAppStuff

if you have openGL libraries installed, they should be under /usr/lib  and it should already be in your path "ldconfig" will regenerate.
I assumes you are, OH NO YOU DID say IRIX, okay get rid of the X11R6 and it should work.  ususally the X library path is well defined in the SGI's.
everything else should work okay AND FORGET ABOUT ldconfig for now. :-)
good luck
ciao
0
 
ahoffmannCommented:
are interested in the compile and link commands, or the implementaion of your source code?
0
 
megmegAuthor Commented:
i would say that.. im interested in the compile and link commands...what should i write ..

Thanks..
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
garbouaCommented:
sorry, I C an error, U know IRIX, you might not have a gcc, so subtitute that with the compiler cc.
0
 
megmegAuthor Commented:
thanks garboua..

i have the commands ready now..what bout the commands to enable stereo projections? what are they and those glxChooseVisualfunc?

0
 
garbouaCommented:
my stero wor all types of music, what about YOURS?

JUST KIDDING DUDE!!!!!!!!!!

OKAY okay look at this page.  at the end there is a little zip file, a little program that will illustrate the stereo projection
good luck
oh,
http://www.cs.pdx.edu/~idr/graphics/StereoProjection.html
some tech info, I KNOW you don't need it, but OH WELL
http://www.cs.wpi.edu/~matt/courses/cs563/talks/stereohtml/stereo.html
0
 
megmegAuthor Commented:
Thanks for your reply. Help me alot. And the links are useful... Thanks buddy
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.