HP Visualize J5000 HP Workstations - Graphics Administration Guide For Red Hat - Page 11

Compiling your applications, Compiling OpenGL applications

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73

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
V
ISUALIZE
-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