Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

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

0
megmeg
Asked:
megmeg
  • 3
  • 3
1 Solution
 
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
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now