Solved

How do I compile OpenGL in IRIX?

Posted on 2002-05-09
7
364 Views
Last Modified: 2010-04-21
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
Comment
Question by:megmeg
  • 3
  • 3
7 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6999493
are interested in the compile and link commands, or the implementaion of your source code?
0
 

Author Comment

by:megmeg
ID: 7005522
i would say that.. im interested in the compile and link commands...what should i write ..

Thanks..
0
 
LVL 5

Accepted Solution

by:
garboua earned 50 total points
ID: 7006687
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 5

Expert Comment

by:garboua
ID: 7006691
sorry, I C an error, U know IRIX, you might not have a gcc, so subtitute that with the compiler cc.
0
 

Author Comment

by:megmeg
ID: 7007902
thanks garboua..

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

0
 
LVL 5

Expert Comment

by:garboua
ID: 7040442
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
 

Author Comment

by:megmeg
ID: 7041349
Thanks for your reply. Help me alot. And the links are useful... Thanks buddy
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how does yum update work 2 56
What is the timeframe of this cron job? 2 137
Linux : how to point the OS to use the new DNS server 11 102
linux 13 53
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question