I am a developer for a python extension module project. We are trying
to support OSX using fink, due to its support for gtkglarea. We are
using a slightly modified version of the autoconf macro 'AM_PATH_GTKGL'
(its contents are appended to this message). The test fails with these
linker errors:
"_glPointParameterf referenced from libGL expected to be defined in
OpenGL
_glPointParameterfv referenced from libGL expected to be defined in
OpenGL"
Our test system is configured with:
OS 10.2,
Fink stable
Apple X11 0.3 with SDK
Apple's Python distro
Developer tools dated June 2002.
The following fink packages (with automatic dependancies):
automake
autoconf
gtkglarea
We attempted to build gtkglarea from its source package and recieved the
same errors during a related check.
Thanks for your assistance,
Jonathan Brandmeyer
The content of the test macro follows. I have added comments in all
caps, prefixed with ##.
---------------------------------------------------------------------
# configure paths for GtkGLArea
# Janne Lof 1999-17-2
# AM_PATH_GTKGL([ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]])
AC_DEFUN(AM_PATH_GTKGL,
[
AC_PROVIDE([AM_PATH_GTKGL])
AC_ARG_WITH(gl-prefix, [ --with-gl-prefix=PFX Prefix where OpenGL
or Mesa is installed],
gl_prefix="$withval",
gl_prefix="")
AC_ARG_WITH(gtkgl-prefix, [ --with-gtkgl-prefix=PFX Prefix where
GtkGLArea is installed],
gtkgl_prefix="$withval",
gtkgl_prefix="")
# tests for OpenGL
if test x$gl_prefix != x ; then
GL_CFLAGS="-I$gl_prefix/include"
GL_LDOPTS="-L$gl_prefix/lib"
else
GL_CFLAGS=""
GL_LDOPTS=""
fi
saved_LIBS="$LIBS"
saved_CFLAGS="$CFLAGS"
# test for plain OpenGL
## THIS TEST PASSES, SEVERAL ALTERNATES FOLLOW WHICH ARE NOT SEEN
AC_MSG_CHECKING([GL])
LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGLU -lGL"
AC_TRY_LINK( ,[ char glBegin(); glBegin(); ], have_GL=yes, have_GL=no)
AC_MSG_RESULT($have_GL)
if test x$have_GL = xyes; then
GL_LIBS="-lGLU -lGL"
else
# test for GL with Pthreads.
## THIS TEST IS NOT SEEN (NOT NEEDED)
AC_MSG_CHECKING([GL with threads])
LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGLU -lGL -lpthread"
AC_TRY_LINK( ,[char glBegin(); glBegin(); ], have_GL=yes, have_GL=no)
AC_MSG_RESULT($have_GL)
if test x$have_GL = xyes; then
GL_LIBS="-lGLU -lGL -lpthread"
else
# test for Mesa
## THIS TEST IS NOT SEEN (NOT NEEDED)
AC_MSG_CHECKING([Mesa])
LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL"
AC_TRY_LINK( ,[ char glBegin(); glBegin(); ], have_Mesa=yes,
have_Mesa=no)
AC_MSG_RESULT($have_Mesa)
if test x$have_Mesa = xyes; then
GL_LIBS="-lMesaGLU -lMesaGL"
else
# test for Mesa with threads
## THIS TEST IS NOT SEEN (NOT NEEDED)
AC_MSG_CHECKING([Mesa with pthreads])
LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
AC_TRY_LINK( ,[ char glBegin(); glBegin(); ], have_Mesa_pthread=yes,
have_Mesa_pthread=no)
AC_MSG_RESULT($have_Mesa_pthread)
if test x$have_Mesa_pthread = xyes; then
GL_LIBS="-lMesaGLU -lMesaGL -lpthread"
else
#all failed
LIBS="$saved_LIBS"
CFLAGS="$saved_CFLAGS"
GTKGL_LIBS=""
GTKGL_CFLAGS=""
ifelse([$2], , :, [$2])
fi
fi
fi
fi
# tests for GtkGLArea
## THIS TEST FAILS WITH LINKER ERRORS.
if test x$gtkgl_prefix != x; then
GTKGL_CFLAGS="-I$gtkgl_prefix/include"
GTKGL_LDOPTS="-L$gtkgl_prefix/lib"
else
GTKGL_CFLAGS=""
GTKGL_LDOPTS=""
fi
AC_MSG_CHECKING([GtkGLArea])
LIBS="$save_LIBS -lgtkgl $GTK_LIBS $GL_LDOPTS $GL_LIBS $GTKGL_LDOPTS"
AC_TRY_LINK( ,[ char gtk_gl_area_new(); gtk_gl_area_new(); ],
have_gtkgl=yes, have_gtkgl=no)
AC_MSG_RESULT($have_gtkgl)
if test x$have_gtkgl = xyes; then
LIBS="$saved_LIBS"
CFLAGS="$saved_CFLAGS"
GTKGL_CFLAGS="$GTKGL_CFLAGS $GL_CFLAGS"
GTKGL_LIBS="$GTKGL_LDOPTS -lgtkgl $GL_LDOPTS $GL_LIBS"
ifelse([$1], , :, [$1])
else
LIBS="$saved_LIBS"
CFLAGS="$saved_CFLAGS"
GTKGL_LIBS=""
GTKGL_CFLAGS=""
ifelse([$2], , :, [$2])
fi
AC_SUBST(GTKGL_CFLAGS)
AC_SUBST(GTKGL_LIBS)
])
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users