I am tantilizingly close to patching the build scripts for an HP-UX 11.11 port of the JOGL 1.0.0-beta3 release, but have gotten stuck managing some extensions that aren’t available on this system.
Specifically I’m getting an error for the binding to glXAllocateMemoryNV
, which confusingly is declared as “ignored” in glx-x11.cfg
:
[cc] aCC -Ae +W942 -c +z -D__RISC2_0__ -I/opt/Mesa/include -I/homes/sfitch/hp/jogl/jogl/make/stub_includes/opengl -I/opt/java1.4/include -I/opt/java1.4/include/hp-ux /homes/sfitch/hp/jogl/jogl/build/gensrc/native/jogl/GLXExtImpl_JNI.c /homes/sfitch/hp/jogl/jogl/src/native/jogl/InternalBufferUtils.c /homes/sfitch/hp/jogl/jogl/build/gensrc/native/jogl/GLX_JNI.c /homes/sfitch/hp/jogl/jogl/build/gensrc/native/jogl/GLImpl_JNI.c /homes/sfitch/hp/jogl/jogl/build/gensrc/native/jogl/GLU_JNI.c
[cc] /homes/sfitch/hp/jogl/jogl/build/gensrc/native/jogl/GLXExtImpl_JNI.c:
[cc] Error 419: "/homes/sfitch/hp/jogl/jogl/build/gensrc/native/jogl/GLXExtImpl_JNI.c", line 31 # 'PFNGLXALLOCATEMEMORYNVPROC' is used as a type, but has not been defined as a type.
[cc] /homes/sfitch/hp/jogl/jogl/src/native/jogl/InternalBufferUtils.c:
[cc] PFNGLXALLOCATEMEMORYNVPROC ptr_glXAllocateMemoryNV;
[cc] ^^^^^^^^^^^^^^^^^^^^^^^^^^
[cc] Error 419: "/homes/sfitch/hp/jogl/jogl/build/gensrc/native/jogl/GLXExtImpl_JNI.c", line 33 # 'PFNGLXALLOCATEMEMORYNVPROC' is used as a type, but has not been defined as a type.
[cc] ptr_glXAllocateMemoryNV = (PFNGLXALLOCATEMEMORYNVPROC) (intptr_t) procAddress;
[cc] ^^^^^^^^^^^^^^^^^^^^^^^^^^
Shouldn’t line 59 in glx-x11.cfg
(Ignore glXAllocateMemoryNV
) keep gluegen from emitting this function? Is there some other gluegen configuration that is triggering a dependency?
Is there a way get gluegen to log its evaluation of the configuration rules?
Any tips on this and the finer points of gluegen would be really appreciated, as well as anyone who has successfully ported JOGL to HP-UX and/or SGI/IRIX.
Simeon
PS:
What’s the best way for introducing gluegen statements for HP-UX only? Would I create and bind a a “gl-x11-hpux.cfg” file which then inlcudes “gl-x11.cfg”?