8 May 14:58
Configure problems under Mingw / Msys
From: Laszlo Menczel <menczel@...>
Subject: Configure problems under Mingw / Msys
Newsgroups: gmane.comp.lib.agar.general
Date: 2008-05-08 13:01:41 GMT
Subject: Configure problems under Mingw / Msys
Newsgroups: gmane.comp.lib.agar.general
Date: 2008-05-08 13:01:41 GMT
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(Continue reading)
, so if
Agar uses pure OpenGL w/o the SDL library, I don't have to distribute SDL with
my app
(less stuff to maintain and care about).
RSS Feed