HP Workstation c3650 HP OpenGL Release Notes of PA-RISC Based Systems - Page 4

Sample 64-bit compile and link

Page 4 highlights

64-bit applications are supported with OpenGL for this release. Applications using 64-bit computing are supported on SPUs with 64-bit capabilities only; they are not supported on 32-bit SPUs. For information on porting your application to take advantage of 64-bit capabilities, see the http://devresource.hp.com web site. See the links to "64-bit Computing" and "Porting." Note that 64-bit OpenGL allows "large data space" because the pointers are now 64-bit. But, the OpenGL data types themselves are the same as the 32-bit library. For example, GLint is a 32-bit integer, not a 64-bit long. All 64-bit OpenGL libraries are located in: /opt/graphics/OpenGL/lib/pa20_64. The following sample compile and link lines may help you to build your application once it has been ported to take advantage of 64-bit capabilities. * Sample 32-bit compile and link: cc -Ae -z -I/opt/graphics/OpenGL/include -I/usr/include/X -o cube.32 \ cube.c -L/opt/graphics/OpenGL/lib -L/usr/lib/X11R6 -lGLU -lGL -lXhp11 \ -lXext -lX11 -lm -ldld * Sample 64-bit compile and link: cc -Ae +DA2.0W -z -I/opt/graphics/OpenGL/include \ -I/usr/include/X11R6 -Wl,+compat -o cube.64 cube.c \ -L/opt/graphics/OpenGL/lib/pa20_64 \ -L/usr/lib/X11R6/pa20_64 -L/usr/lib/pa20_64 \ -L/usr/lib /usr/lib/pa20_64/libdld.sl \ -lGLU -lGL -lXhp11 -lXext -lX11 -lm

  • 1
  • 2
  • 3
  • 4

======================
64-bit applications are supported with OpenGL for this release. Applications
using 64-bit computing are supported on SPUs with 64-bit capabilities only;
they are not supported on 32-bit SPUs.
For information on porting your application to take advantage of 64-bit
capabilities, see the http://devresource.hp.com web site. See the links to
"64-bit Computing" and "Porting."
Note that 64-bit OpenGL allows "large data space" because the pointers are
now 64-bit. But, the OpenGL data types themselves are the same as the 32-bit
library. For example, GLint is a 32-bit integer, not a 64-bit long.
All 64-bit OpenGL libraries are located in:
/opt/graphics/OpenGL/lib/pa20_64.
The following sample compile and link lines may help you to build your
application once it has been ported to take advantage of 64-bit capabilities.
* Sample 32-bit compile and link:
cc -Ae -z -I/opt/graphics/OpenGL/include -I/usr/include/X -o cube.32 \
cube.c -L/opt/graphics/OpenGL/lib -L/usr/lib/X11R6 -lGLU -lGL -lXhp11 \
-lXext -lX11 -lm -ldld
* Sample 64-bit compile and link:
cc -Ae +DA2.0W -z -I/opt/graphics/OpenGL/include \
-I/usr/include/X11R6 -Wl,+compat -o cube.64 cube.c \
-L/opt/graphics/OpenGL/lib/pa20_64 \
-L/usr/lib/X11R6/pa20_64 -L/usr/lib/pa20_64 \
-L/usr/lib /usr/lib/pa20_64/libdld.sl \
-lGLU -lGL -lXhp11 -lXext -lX11 -lm