Problem compiling 1.3 on OSX 10.6 - build/SDL_x11opengl.lo

Hello,

I downloaded the latest source from hg, and during the make process
I’m running into the following error:

/bin/sh ./libtool --mode=compile gcc -g -O3 -I./include -mmmx -m3dnow
-msse -msse2 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX
-fvisibility=hidden -I/usr/X11R6/include -D_THREAD_SAFE
-falign-loops=16 -force_cpusubtype_ALL -fpascal-strings -MMD -MT
build/SDL_x11opengl.lo -c src/video/x11/SDL_x11opengl.c -o
build/SDL_x11opengl.lo
libtool: compile: gcc -g -O3 -I./include -mmmx -m3dnow -msse -msse2
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -D_THREAD_SAFE -falign-loops=16
-force_cpusubtype_ALL -fpascal-strings -MMD -MT build/SDL_x11opengl.lo
-c src/video/x11/SDL_x11opengl.c -fno-common -DPIC -o
build/.libs/SDL_x11opengl.o
src/video/x11/SDL_x11opengl.c:90: error: redefinition of typedef
?PFNGLXCREATECONTEXTATTRIBSARBPROC?
/usr/X11R6/include/GL/glxext.h:548: error: previous declaration of
?PFNGLXCREATECONTEXTATTRIBSARBPROC? was here
make: *** [build/SDL_x11opengl.lo] Error 1

I can’t find anything to figure out whats throwing the error here.
Does anyone have any ideas?

Thank you,
Kenneth

I think I fixed this a couple weeks ago.

Try this: hg pull; hg update; sh autogen.sh; ./configure; makeOn Mon, Dec 20, 2010 at 10:30 AM, Kenneth Lorthioir wrote:

Hello,

I downloaded the latest source from hg, and during the make process
I’m running into the following error:

/bin/sh ./libtool --mode=compile gcc -g -O3 -I./include ?-mmmx -m3dnow
-msse -msse2 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX
-fvisibility=hidden ?-I/usr/X11R6/include -D_THREAD_SAFE
-falign-loops=16 -force_cpusubtype_ALL -fpascal-strings -MMD -MT
build/SDL_x11opengl.lo -c src/video/x11/SDL_x11opengl.c -o
build/SDL_x11opengl.lo
libtool: compile: ?gcc -g -O3 -I./include -mmmx -m3dnow -msse -msse2
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -D_THREAD_SAFE -falign-loops=16
-force_cpusubtype_ALL -fpascal-strings -MMD -MT build/SDL_x11opengl.lo
-c src/video/x11/SDL_x11opengl.c ?-fno-common -DPIC -o
build/.libs/SDL_x11opengl.o
src/video/x11/SDL_x11opengl.c:90: error: redefinition of typedef
?PFNGLXCREATECONTEXTATTRIBSARBPROC?
/usr/X11R6/include/GL/glxext.h:548: error: previous declaration of
?PFNGLXCREATECONTEXTATTRIBSARBPROC? was here
make: *** [build/SDL_x11opengl.lo] Error 1

I can’t find anything to figure out whats throwing the error here.
Does anyone have any ideas?

Thank you,
Kenneth


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC

I am having the same exact issue too. I tried the

hg pull; hg update; sh autogen.sh; ./configure; make

route, but the that seems to create even more errors.

The way I got the the same exact error is just by getting a brand new clone, opening up

SDL/Xcode/SDL/SDL.xcodeproj

and compile in XCode.

I experimented a similar problem few days ago using the xcode project. Here are the steps I ran into (with * when I encountered a problem)
-1*- I had to run ./autogen.sh from the commend line even if it’s not said in the README.MacOSX (still at version 1.2)
-2- I ran ./configure.sh from the command line
-3*- I decided to build from xcode in spite of using “make” but got a “redefinition of PFNGLXCREATECONTEXTATTRIBSARBPROC” (SDL_x11opengl.c and glext.h)
If I remove the typedef from the .c building the deployment/development_native_only targets work but not the other targets I get a “PFNGLXCREATECONTEXTATTRIBSARBPROC undeclared”

Anyway, with the working ‘development_native_only’ framework I could test the framework with my project.
-4*- I had first to add 2 of the new headers as public otherwise they are not copied in the framework (and are missing when I include other headers from my project). The headers are SDL_blendmode.h and SDL_scalemode.h. I drag&dropped them from SDL/include to the ‘Public Headers’ xcode folder. added them to the framework target and then after selecting them I changed their Role from ‘project’ to ‘public’

-5- I could run my project again even if I had to change a couple of function call (like SDL_PeepEvents with a poor documentation of the new argument … so I googled this function name and found http://stackoverflow.com/questions/4178655/migrating-sdl-peepevents-from-sdl-1-2-14-to-sdl-1-3 with a WRONG answer !@!#@#$$#%)

-6- Now things are getting better. I have the right mouse button working on mac os x (thank you SAM !) but I experiment few difficulties with the mac touchpad.
Everything works fine with a real mouse but when I’m away from my desk and try to test my code with the touchpad
-6a- very few SDL_MOUSEMOTION events occur (there are some but most of them are now SDL_FINGERMOTION). It is strange because the mouse cursor moves so I expected mouse event as well as touch events => I could fix it by also listening SDL_FINGERMOTION
-6b- SDL_MOUSEBUTTONUP and SDL_MOUSEBUTTONDOWN are also meesed up. I receive both mouse and corresponding gesture event but with a BIG delay (around 1 second). The worst thing is if I move the touchpad after the button click the delayed mousePress event occurs where the cursors moved after the click !

FRED

This is fixed in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!On Mon, Dec 20, 2010 at 10:30 AM, Kenneth Lorthioir wrote:

Hello,

I downloaded the latest source from hg, and during the make process
I’m running into the following error:

/bin/sh ./libtool --mode=compile gcc -g -O3 -I./include -mmmx -m3dnow
-msse -msse2 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX
-fvisibility=hidden -I/usr/X11R6/include -D_THREAD_SAFE
-falign-loops=16 -force_cpusubtype_ALL -fpascal-strings -MMD -MT
build/SDL_x11opengl.lo -c src/video/x11/SDL_x11opengl.c -o
build/SDL_x11opengl.lo
libtool: compile: gcc -g -O3 -I./include -mmmx -m3dnow -msse -msse2
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-I/usr/X11R6/include -D_THREAD_SAFE -falign-loops=16
-force_cpusubtype_ALL -fpascal-strings -MMD -MT build/SDL_x11opengl.lo
-c src/video/x11/SDL_x11opengl.c -fno-common -DPIC -o
build/.libs/SDL_x11opengl.o
src/video/x11/SDL_x11opengl.c:90: error: redefinition of typedef
?PFNGLXCREATECONTEXTATTRIBSARBPROC?
/usr/X11R6/include/GL/glxext.h:548: error: previous declaration of
?PFNGLXCREATECONTEXTATTRIBSARBPROC? was here
make: *** [build/SDL_x11opengl.lo] Error 1

I can’t find anything to figure out whats throwing the error here.
Does anyone have any ideas?

Thank you,
Kenneth


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC