Hi, There are some problems with the configure script for MinGW / Msys. As somebody has already mentioned in this forum, OpenGL detection fails because the script tries to find 'libGl' instead of 'libopengl32', and tries to find the headers in the X11R6 directory (which of course does not exist under MinGW). I solved the problem by editing the script to read as as follows:
.... $ECHO_N "checking for OpenGL (http://www.opengl.org)..." $ECHO_N "checking for OpenGL (http://www.opengl.org)..." >> config.log GL_CFLAGS="" GL_LIBS="" .... .... if [ -d "/usr/include/GL" ]; then GL_CFLAGS="-I/usr/local/include" fi; .... .... if [ -d "/usr/local/lib" ]; then GL_LIBS="-L/usr/local/lib" fi; OPENGL_CFLAGS="${GL_CFLAGS}" OPENGL_LIBS="${GL_LIBS} -lopengl32" .... OpenGL detection works now, but there is also a problem with the detection of the Pthreads library. In newer versions of Pthreads (I tried to use the latest release 2.8.0) library names have a suffix. E.g. the lib I compiled under MinGW is called 'libpthreadGC2'. The script looks for 'libpthread.a' and fails. Also when 'conftest.c' is compiled, GCC cannot find the header 'pthread.h' although it is present in '/usr/local/include'. If I omit thread support, the library compiles w/o problems. However, there are more problems when the library is installed. The headers are copied to '/usr/local/include/agar/agar/' which is obviously wrong (see e.g. 'core.h' which starts with the statement '#include <agar/core/core_begin.h>'). So I moved the headers up one level to the correct location. Still, when I try to build some demos, similar problems occur (configure cannot find libraries and headers). Laszlo Menczel Szeged, Hungary _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
