Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Graphics Administration Guide: HP 9000 Workstations and Servers > Chapter 3 Compiling Your Application

Compiling OpenGL Applications

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

HP's implementation of OpenGL is supported on workstations withHP Visualize-FX graphics.

To compile a program that does not use the OpenGL utilities, use a makefile that looks like this:

INCDIR= -I/opt/graphics/OpenGL/include -I/usr/include/X11R5
LIBDIR=-L/opt/graphics/OpenGL/lib -L/usr/lib/X11R5
LIBS=-lGL -lXext -lX11 -lm -ldld

meow : meow.c
cc $(INCDIR) $(LIBDIR) -o meow meow.c $(LIBS)

To compile a program that does use the OpenGL utilities, use a makefile that looks like this:

INCDIR= -I/opt/graphics/OpenGL/include -I/usr/include/X11R5
LIBDIR=-L/opt/graphics/OpenGL/lib -L/usr/lib/X11R5
LIBS=-lGLU -lGL -lXext -lX11 -lm -ldld

meow : meow.c
cc $(INCDIR) $(LIBDIR) -o meow meow.c $(LIBS)
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.