Building SDL-1.2.5 source tarball so I can use new gcc 3.2 compiler from
cygwin (I got some conflicts with the binary distro so I’m compiling the
lib myself).
configure, make, make install “works”, but…
When I build the tests, the testgl.exe outputs that OpenGL is not
supported on this system, I have opengl, what do I do?
Searching google, I found a libsdl.org page that has some info:
I downloaded the directx-devel.tar.gz and opengl-devel.tar.gz and
installed them into /usr per the instructions there.
./configure, make, make install appears to work
great, no errors (although I never see any OpenGL test on the configure
output, so I don’t know if this passed or not - it did find directx ok
though, and there was one line that just had a ‘:’ on it.)
looking at the configure.in, it is testing a program that includes glx.h,
but I don’t have glx.h on my system.
Is this documented? Anyone getting SDL-1.2.5 compiling with latest
cygwin (gcc compiler), and OpenGL support? Point me to docs, faq, or
something! (a readme in the source dir would be nice… you have all
the weird OSs, what about cygwin/win32?)
thanks
More info…
Here is what the compile line looks like when I build SDL:
gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE=“SDL”
-DVERSION=“1.2.6” -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I.
-I…/…/…/…/src/video/dummy -g -O2 -Wall -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -I…/…/…/…/src/video/wincommon -DENABLE_WINDIB
-DUSE_ASMBLIT -I…/hermes -I…/…/…/…/src/hermes -I/usr/include/mingw
-DWIN32 -Uunix -mno-cygwin -I…/…/…/…/include -I…/…/…/…/include/SDL
-I…/…/…/…/src -I…/…/…/…/src/win32 -I…/…/…/…/src/main
-I…/…/…/…/src/audio -I…/…/…/…/src/video
-I…/…/…/…/src/video/XFree86/extensions -I…/…/…/…/src/events
-I…/…/…/…/src/joystick -I…/…/…/…/src/cdrom
-I…/…/…/…/src/thread -I…/…/…/…/src/timer -I…/…/…/…/src/endian
-I…/…/…/…/src/file -MT SDL_nullmouse.lo -MD -MP -MF
.deps/SDL_nullmouse.Tpo -c …/…/…/…/src/video/dummy/SDL_nullmouse.c
-DPIC -o .libs/SDL_nullmouse.lo
Is it the DUMMY_VIDEO param? Don’t I want video support if I’m using
opengl grahpics? maybe it means something else…
Anyway, hopefully that helps. Here is a little more info:
autoconf 2.57
gcc version 3.2 20020927 (prerelease)
make 3.79.1
WinXP SP 1 (plus all online updates).
DirectX 9
OpenGL (nvidia drivers, cygwin libs/headers, also installed libsdl
opengl headers)On Fri, 7 Feb 2003, Kevin Meinert wrote:
Building SDL-1.2.5 source tarball so I can use new gcc 3.2 compiler from
cygwin (I got some conflicts with the binary distro so I’m compiling the
lib myself).
configure, make, make install “works”, but…
When I build the tests, the testgl.exe outputs that OpenGL is not
supported on this system, I have opengl, what do I do?
Searching google, I found a libsdl.org page that has some info:
I downloaded the directx-devel.tar.gz and opengl-devel.tar.gz and
installed them into /usr per the instructions there.
./configure, make, make install appears to work
great, no errors (although I never see any OpenGL test on the configure
output, so I don’t know if this passed or not - it did find directx ok
though, and there was one line that just had a ‘:’ on it.)
looking at the configure.in, it is testing a program that includes glx.h,
but I don’t have glx.h on my system.
Is this documented? Anyone getting SDL-1.2.5 compiling with latest
cygwin (gcc compiler), and OpenGL support? Point me to docs, faq, or
something! (a readme in the source dir would be nice… you have all
the weird OSs, what about cygwin/win32?)
thanks
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Hi,
WORKAROUND:
At the top of testgl.c, there is a
#ifdef HAVE_OPENGL statement. Before that, #define HAVE_OPENGL
and recompile. Hopefully it’ll work.
On the other hand, it may spit out a handful of errors about
conflicts in gl.h and SDL_OpenGL.h. Comment out the offending
lines in SDL_OpenGL.h and try compiling again.
hth,
PallavOn Fri, 7 Feb 2003, Kevin Meinert wrote:
Building SDL-1.2.5 source tarball so I can use new gcc 3.2 compiler from
cygwin (I got some conflicts with the binary distro so I’m compiling the
lib myself).
configure, make, make install “works”, but…
When I build the tests, the testgl.exe outputs that OpenGL is not
supported on this system, I have opengl, what do I do?
regards,
Pallav.
You plan things that you do not even attempt because of your extreme caution.
| |
|Pallav Nawani |
|Sasken Communication Technologies Ltd. |
|Domlur, Bangalore. |
|_______________________________________________________________|
looks like the reason that the test/configure is failing on opengl is this
(from config.log) PFNGLCOLORSUBTABLEEXTPROC symbol:
configure:4598: checking for OpenGL support
configure:4621: gcc -c -g -O2 -I/usr/local/include/SDL -Dmain=SDL_main
-I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin conftest.c >&5
cc1: warning: changing search order for system directory
"/usr/include/mingw"
cc1: warning: as it has already been specified as a non-system directory
In file included from configure:4612:
/usr/local/include/SDL/SDL_opengl.h:2154: redefinition of
PFNGLCOLORSUBTABLEEXTPROC' /usr/include/mingw/GL/gl.h:1535:
PFNGLCOLORSUBTABLEEXTPROC’ previously
declared here
configure:4624: $? = 1
configure: failed program was:
| #line 4601 “configure”
| /* confdefs.h. /
|?
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE “SDL_tests”
| #define VERSION “1.2.3”
| / end confdefs.h. */
|?
| #include “SDL_opengl.h”
|?
| int
| main ()
| {
|?
|?
| ;
| return 0;
| }
I also get this when I force a #define HAVE_OPENGL in testgl.c
thanks for the info,
KevinOn Fri, 7 Feb 2003, Pallav Nawani wrote:
Hi,
WORKAROUND:
At the top of testgl.c, there is a
#ifdef HAVE_OPENGL statement. Before that, #define HAVE_OPENGL
and recompile. Hopefully it’ll work.
On the other hand, it may spit out a handful of errors about
conflicts in gl.h and SDL_OpenGL.h. Comment out the offending
lines in SDL_OpenGL.h and try compiling again.
hth,
Pallav
On Fri, 7 Feb 2003, Kevin Meinert wrote:
Building SDL-1.2.5 source tarball so I can use new gcc 3.2 compiler from
cygwin (I got some conflicts with the binary distro so I’m compiling the
lib myself).
configure, make, make install “works”, but…
When I build the tests, the testgl.exe outputs that OpenGL is not
supported on this system, I have opengl, what do I do?
regards,
Pallav.
You plan things that you do not even attempt because of your extreme caution.
| |
|Pallav Nawani |
|Sasken Communication Technologies Ltd. |
|Domlur, Bangalore. |
|_______________________________________________________________|
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
After commenting out PFNGLCOLORSUBTABLEEXTPROC in SDL_opengl.h, I get lots
of link errors (i’m using the cvs version checked out last night):
gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE=“SDL_tests”
-DVERSION=“1.2.3” -I. -I. -g -O2 -I/usr/local/include/SDL
-Dmain=SDL_main -I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin -c test -f 'testgl.c' || echo './'
testgl.c
cc1: warning: changing search order for system directory
"/usr/include/mingw"
cc1: warning: as it has already been specified as a non-system directory
gcc -g -O2 -I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw
-DWIN32 -Uunix -mno-cygwin -o testgl.exe testgl.o -L/usr/local/lib
-lmingw32 -lSDLmain -lSDL -mwindows -mno-cygwin
testgl.o(.text+0x386): In function SDL_GL_Enter2DMode': /cygdrive/c/home/kevin//src/SDL12/test/testgl.c:121: undefined reference to
glPushAttrib at 4’
testgl.o(.text+0x395):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:122:
undefined reference to glDisable at 4' testgl.o(.text+0x3a4):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:123: undefined reference to
glDisable at 4’
testgl.o(.text+0x3b3):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:124:
undefined reference to glEnable at 4' testgl.o(.text+0x3c2):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:127: undefined reference to
glEnable at 4’
testgl.o(.text+0x3d9):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:128:
undefined reference to glBlendFunc at 8' testgl.o(.text+0x3fe):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:130: undefined reference to
glViewport at 16’
testgl.o(.text+0x40d):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:132:
undefined reference to glMatrixMode at 4' testgl.o(.text+0x415):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:133: undefined reference to
glPushMatrix at 0’
testgl.o(.text+0x41a):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:134:
undefined reference to glLoadIdentity at 0' testgl.o(.text+0x46c):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:136: undefined reference to
glOrtho at 48’
testgl.o(.text+0x47b):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:138:
undined reference to glMatrixMode at 4' testgl.o(.text+0x483):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:139: undefined reference to
glPushMatrix at 0’
testgl.o(.text+0x488):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:140:
undefined reference to glLoadIdentity at 0' testgl.o(.text+0x4a4):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:142: undefined reference to
glTexEnvf at 12’
testgl.o(.text+0x4be): In function SDL_GL_Leave2DMode': /cygdrive/c/home/kevin//src/SDL12/test/testgl.c:147: undefined reference to
glMatrixMode at 4’
testgl.o(.text+0x4c6):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:148:
undefined reference to glPopMatrix at 0' testgl.o(.text+0x4d2):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:150: undefined reference to
glMatrixMode at 4’
testgl.o(.text+0x4da):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:151:
undefined reference to glPopMatrix at 0' testgl.o(.text+0x61d): In function
SDL_GL_LoadTexture’:
/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:224: undefined reference
to glGenTextures at 8' testgl.o(.text+0x633):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:225: undefined reference to
glBindTexture at 8’
testgl.o(.text+0x652):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:226:
undefined reference to glTexParameteri at 12' testgl.o(.text+0x671):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:227: undefined reference to
glTexParameteri at 12’
testgl.o(.text+0x6bd):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:228:
undefined reference to glTexImage2D at 36' testgl.o(.text+0x7d4): In function
DrawLogoTexture’:
/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:307: undefined reference
to glBindTexture at 8' testgl.o(.text+0x7e3):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:308: undefined reference to
glBegin at 4’
testgl.o(.text+0x7fc):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:309:
undefined reference to glTexCoord2f at 8' testgl.o(.text+0x815):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:309: undefined reference to
glVertex2i at 8’
testgl.o(.text+0x82e):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:310:
undefined reference to glTexCoord2f at 8' testgl.o(.text+0x84f):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:310: undefined reference to
glVertex2i at 8’
testgl.o(.text+0x868):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:311:
undefined reference to glTexCoord2f at 8' testgl.o(.text+0x889):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:311: undefined reference to
glVertex2i at 8’
testgl.o(.text+0x8a2):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:312:
undefined reference to glTexCoord2f at 8' testgl.o(.text+0x8cb):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:312: undefined reference to
glVertex2i at 8’
testgl.o(.text+0x8d3):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:313:
undefined reference to glEnd at 0' testgl.o(.text+0x1053): In function
RunGLTest’:
/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:487: undefined reference
to glGetString at 4' testgl.o(.text+0x1072):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:488: undefined reference to
glGetString at 4’
testgl.o(.text+0x1091):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:489:
undefined reference to glGetString at 4' testgl.o(.text+0x10b0):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:490: undefined reference to
glGetString at 4’
testgl.o(.text+0x11f7):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:512:
undefined reference to glViewport at 16' testgl.o(.text+0x1206):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:513: undefined reference to
glMatrixMode at 4’
testgl.o(.text+0x120e):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:514:
undefined reference to glLoadIdentity at 0' testgl.o(.text+0x1272):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:516: undefined reference to
glOrtho at 48’
testgl.o(.text+0x1281):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:518:
undefined reference to glMatrixMode at 4' testgl.o(.text+0x1289):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:519: undefined reference to
glLoadIdentity at 0’
testgl.o(.text+0x1295):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:521:
undefined reference to glEnable at 4' testgl.o(.text+0x12a4):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:523: undefined reference to
glDepthFunc at 4’
testgl.o(.text+0x12b3):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:525:
undefined reference to glShadeModel at 4' testgl.o(.text+0x130d):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:536: undefined reference to
glClearColor at 16’
testgl.o(.text+0x131c):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:537:
undefined reference to glClear at 4' testgl.o(.text+0x132b):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:539: undefined reference to
glBegin at 4’
testgl.o(.text+0x133c):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:542:
undefined reference to glColor3fv at 4' testgl.o(.text+0x134d):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:543: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x135b):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:544:
undefined reference to glColor3fv at 4' testgl.o(.text+0x136c):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:545: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x137a):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:546:
undefined reference to glColor3fv at 4' testgl.o(.text+0x138b):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:547: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1399):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:548:
undefined reference to glColor3fv at 4' testgl.o(.text+0x13aa):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:549: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x13b8):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:551:
undefined reference to glColor3fv at 4' testgl.o(.text+0x13c9):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:552: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x13d7):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:553:
undefined reference to glColor3fv at 4' testgl.o(.text+0x13e8):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:554: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x13f6):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:555:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1407):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:556: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1415):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:557:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1426):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:558: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1437):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:560:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1448):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:561: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1456):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:562:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1461):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:563: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x146f):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:564:
undefined reference to glColor3fv at 4' testgl.o(.text+0x147a):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:565: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1488):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:566:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1499):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:567: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x14a7):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:569:
undefined reference to glColor3fv at 4' testgl.o(.text+0x14b2):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:570: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x14c0):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:571:
undefined reference to glColor3fv at 4' testgl.o(.text+0x14d1):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:572: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x14df):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:573:
undefined reference to glColor3fv at 4' testgl.o(.text+0x14f0):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:574: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x14fe):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:575:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1509):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:576: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1517):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:578:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1522):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:579: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1533):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:580:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1544):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:581: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1552):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:582:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1563):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:583: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1571):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:584:
undefined reference to glColor3fv at 4' testgl.o(.text+0x1582):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:585: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1590):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:587:
undefined reference to glColor3fv at 4' testgl.o(.text+0x159b):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:588: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x15a9):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:589:
undefined reference to glColor3fv at 4' testgl.o(.text+0x15ba):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:590: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x15c8):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:591:
undefined reference to glColor3fv at 4' testgl.o(.text+0x15d9):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:592: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x15e7):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:593:
undefined reference to glColor3fv at 4' testgl.o(.text+0x15f8):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:594: undefined reference to
glVertex3fv at 4’
testgl.o(.text+0x1600):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:633:
undefined reference to glEnd at 0' testgl.o(.text+0x160c):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:635: undefined reference to
glMatrixMode at 4’
testgl.o(.text+0x1633):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:636:
undefined reference to glRotatef at 16' testgl.o(.text+0x1659):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:650: undefined reference to
glGetError at 0’
testgl.o(.text+0x1731):/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:687:
undefined reference to glDeleteTextures at 8' testgl.o(.text+0x4e2): In function
SDL_GL_Leave2DMode’:
/cygdrive/c/home/kevin//src/SDL12/test/testgl.c:153: undefined reference
to `glPopAttrib at 0’
make: *** [testgl.exe] Error 1On Fri, 7 Feb 2003, Pallav Nawani wrote:
Hi,
WORKAROUND:
At the top of testgl.c, there is a
#ifdef HAVE_OPENGL statement. Before that, #define HAVE_OPENGL
and recompile. Hopefully it’ll work.
On the other hand, it may spit out a handful of errors about
conflicts in gl.h and SDL_OpenGL.h. Comment out the offending
lines in SDL_OpenGL.h and try compiling again.
hth,
Pallav
On Fri, 7 Feb 2003, Kevin Meinert wrote:
Building SDL-1.2.5 source tarball so I can use new gcc 3.2 compiler from
cygwin (I got some conflicts with the binary distro so I’m compiling the
lib myself).
configure, make, make install “works”, but…
When I build the tests, the testgl.exe outputs that OpenGL is not
supported on this system, I have opengl, what do I do?
regards,
Pallav.
You plan things that you do not even attempt because of your extreme caution.
| |
|Pallav Nawani |
|Sasken Communication Technologies Ltd. |
|Domlur, Bangalore. |
|_______________________________________________________________|
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
cool, that worked. I had link errors, but that was because I forgot to
rerun configure. after doing that, it added the appropriate libs to the
link line…
The fix to get it to autodetect opengl on my system was to comment out the
following line:
typedef void (APIENTRY * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target,
GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid
*data);
… since it was already defined in cygwin’s GL header.
NOTE: the sdl gl headers I installed appear not to be read, since they’re
installed in /usr/include/w32api/GL… once I copied those over to
/usr/include/GL, this also fixes the problem…
KevinOn Fri, 7 Feb 2003, Kevin Meinert wrote:
looks like the reason that the test/configure is failing on opengl is this
(from config.log) PFNGLCOLORSUBTABLEEXTPROC symbol:
configure:4598: checking for OpenGL support
configure:4621: gcc -c -g -O2 -I/usr/local/include/SDL -Dmain=SDL_main
-I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin conftest.c >&5
cc1: warning: changing search order for system directory
"/usr/include/mingw"
cc1: warning: as it has already been specified as a non-system directory
In file included from configure:4612:
/usr/local/include/SDL/SDL_opengl.h:2154: redefinition of
PFNGLCOLORSUBTABLEEXTPROC' /usr/include/mingw/GL/gl.h:1535:
PFNGLCOLORSUBTABLEEXTPROC’ previously
declared here
configure:4624: $? = 1
configure: failed program was:
| #line 4601 “configure”
| /* confdefs.h. /
|?
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE “SDL_tests”
| #define VERSION “1.2.3”
| / end confdefs.h. */
|?
| #include “SDL_opengl.h”
|?
| int
| main ()
| {
|?
|?
| ;
| return 0;
| }
I also get this when I force a #define HAVE_OPENGL in testgl.c
thanks for the info,
Kevin
On Fri, 7 Feb 2003, Pallav Nawani wrote:
Hi,
WORKAROUND:
At the top of testgl.c, there is a
#ifdef HAVE_OPENGL statement. Before that, #define HAVE_OPENGL
and recompile. Hopefully it’ll work.
On the other hand, it may spit out a handful of errors about
conflicts in gl.h and SDL_OpenGL.h. Comment out the offending
lines in SDL_OpenGL.h and try compiling again.
hth,
Pallav
On Fri, 7 Feb 2003, Kevin Meinert wrote:
Building SDL-1.2.5 source tarball so I can use new gcc 3.2 compiler from
cygwin (I got some conflicts with the binary distro so I’m compiling the
lib myself).
configure, make, make install “works”, but…
When I build the tests, the testgl.exe outputs that OpenGL is not
supported on this system, I have opengl, what do I do?
regards,
Pallav.
You plan things that you do not even attempt because of your extreme caution.
| |
|Pallav Nawani |
|Sasken Communication Technologies Ltd. |
|Domlur, Bangalore. |
|_______________________________________________________________|
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl