Hi there!

Trying to compile the CVS version of CrystalSpace (16/03/2006, 11:00) on MacOS X, I encountered a problem with the GLhandleARB check in configure. The test fails with a parse error in the line

 CS_GL_INCLUDE(CS_OPENGL_PATH,GL,gl.h)

where there is no such macro in the test code (detailed log excerpt below). Consequently, there is no define for CS_HAVE_GLHANDLEARB_T in csconfig.h. However, MacOS X does have such a definition in its OpenGL framework, and the code fails to compile due to a type definition conflict.

Trying to track down the problem I found that an earlier CS snapshot had in configure.ac a definition of this macro ( AC_DEFUN([CS_GL_INCLUDE], ...), while this is missing in the CVS version of configure.ac. Also, the OpenGL test seems to have changed quite a lot between the two versions.

So, is this a leftover from a major configure.ac rewrite?
Does anybody else experience this problem too?

Regards,
Karsten Otto (kao)

---------------
excerpt from config.log:

configure:23366: checking for GLhandleARB
configure:23458: gcc -o conftest -DCS_OPENGL_PATH=OpenGL conftest.c -framework OpenGL -lm -lmx >&5
conftest.c:29: error: parse error before '.' token
conftest.c: In function 'CS_GL_INCLUDE':
conftest.c:32: error: parse error before '{' token
conftest.c:32: error: declaration for parameter 'main' but no such parameter
configure:23464: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "0.99"
| #define PACKAGE_STRING "crystalspace 0.99"
| #define PACKAGE_BUGREPORT "[email protected]"
| #ifdef __cplusplus
| extern "C" void std::exit (int); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_MATH_H 1
| #define HAVE_LIBMX 1
| #define __CARBONSOUND__
| #define CS_PLATFORM_MACOSX
| #define CS_PLATFORM_UNIX
| #define X_DISPLAY_MISSING 1
| /* end confdefs.h.  */
| CS_GL_INCLUDE(CS_OPENGL_PATH,GL,gl.h)
| int
| main ()
| {
| GLhandleARB x; (void)x;
|   ;
|   return 0;
| }
configure:23517: result: no



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to