HP Visualize J5000 HP Workstations - Graphics Administration Guide For Red Hat - Page 11
Compiling your applications, Compiling OpenGL applications
View all HP Visualize J5000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 11 highlights
Chapter 2 Compiling your applications This chapter provides information for compiling applications with for the following Application Programming Interfaces (APIs): OpenGL®. Compiling OpenGL applications HP's implementation of OpenGL is supported on Linux workstations with HP VISUALIZE-FX graphics. HP implements version 1.1 of OpenGL with additional HP extensions. This may not be compatible with applications that use some of the 1.2 features of other libraries such as Mesa. Additionally, if both HP and Mesa packages are installed on a system, it is recommended that the HP header and library search paths are specified first to achieve maximum acceleration and availability of HP extensions. To compile a program that does not use the OpenGL utilities, use a makefile that looks like this: INCDIR= -I/usr/GL/hp/include LIBDIR=-L/usr/GL/hp/lib LIBS=-lGL -lXext -lX11 -lm 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/usr/GL/hp/include LIBDIR=-L/usr/GL/hp/lib LIBS=-lGLU -lGL -lXext -lX11 -lm meow : meow.c cc $(INCDIR) $(LIBDIR) -o meow meow.c $(LIBS) Note: All standard X11 libraries with the exception of the HP extension library /usr/X11R6/hp/lib/libXhp11.so.2 use the XFree86 standard distribution for Red Hat Linux. Graphics Administration Guide For Red Hat Linux 6.2