[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Pygame on OS X 10.4 Tiger




Hi there

I'm trying to install Pygame on Tiger.

I've installed SDL and Numeric using Fink, I've installed PyObjC
and now I'm trying to install pygame from source in the Terminal. 

I get some errors that indicate that SDL is not properly installed.

Is SDL not working on Tiger yet? I could install all the SDL libs, apart from 
sdl_ttf which server was down. Also I was getting outdated libs for sdl-image:

flagged    status    name    installed    version    binary    category    summary   
NO    outdated    sdl-image    1.2.3-1    1.2.3-2    1.2.3-1    games    SDL image file loading library
NO    outdated    sdl-image-shlibs    1.2.3-1    1.2.3-2    1.2.3-1    games    SDL image file loading library


Here is the process;


thm-mac-pb:~/Desktop/pygame-1.7.1release thm$ python setup.py bdist_mpkgUsing Darwin configuration...

running bdist_mpkg
installing to build/bdist.darwin-8.2.0-Power_Macintosh/mpkg
running build
running build_py
running build_ext
building 'pygame.base' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/NEED_INC_PATH_FIX -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c src/base.c -o build/temp.darwin-8.2.0-Power_Macintosh-2.3/src/base.o
In file included from src/base.c:24:
src/pygame.h:63:17: error: SDL.h: No such file or directory
In file included from src/base.c:24:
src/pygame.h:228: error: parse error before 'SDL_VideoInfo'
src/pygame.h:228: warning: no semicolon at end of struct or union
src/pygame.h:229: warning: type defaults to 'int' in declaration of 'PyVidInfoObject'
src/pygame.h:229: warning: data definition has no type or storage class
src/pygame.h:254: error: parse error before 'SDL_Surface'
src/pygame.h:254: warning: no semicolon at end of struct or union
src/pygame.h:258: error: parse error before '}' token
src/pygame.h:258: warning: type defaults to 'int' in declaration of 'PySurfaceObject'
src/pygame.h:258: warning: data definition has no type or storage class
src/base.c: In function 'CheckSDLVersions':
src/base.c:62: error: 'SDL_version' undeclared (first use in this function)
src/base.c:62: error: (Each undeclared identifier is reported only once
src/base.c:62: error: for each function it appears in.)
src/base.c:62: error: parse error before 'compiled'
src/base.c:63: error: syntax error before '*' token
src/base.c:64: warning: implicit declaration of function 'SDL_VERSION'
src/base.c:64: error: 'compiled' undeclared (first use in this function)
src/base.c:65: error: 'linked' undeclared (first use in this function)
src/base.c:65: warning: implicit declaration of function 'SDL_Linked_Version'
src/base.c: In function 'init':
src/base.c:168: warning: implicit declaration of function 'SDL_Init'
src/base.c:172: error: 'SDL_INIT_TIMER' undeclared (first use in this function)
src/base.c:173: error: 'SDL_INIT_NOPARACHUTE' undeclared (first use in this function)
src/base.c: In function 'atexit_quit':
src/base.c:243: warning: implicit declaration of function 'SDL_Quit'
src/base.c: In function 'get_sdl_version':
src/base.c:254: error: syntax error before '*' token
src/base.c:258: error: 'v' undeclared (first use in this function)
src/base.c: At top level:
src/base.c:387: error: parse error before 'Uint32'
src/base.c:388: warning: function declaration isn't a prototype
src/base.c: In function 'UintFromObj':
src/base.c:391: error: 'obj' undeclared (first use in this function)
src/base.c:395: error: 'val' undeclared (first use in this function)
src/base.c:395: error: 'Uint32' undeclared (first use in this function)
src/base.c:395: error: parse error before 'PyInt_AsLong'
src/base.c: At top level:
src/base.c:402: error: parse error before 'UintFromObjIndex'
src/base.c:402: error: parse error before 'Uint32'
src/base.c:403: warning: return type defaults to 'int'
src/base.c:403: warning: function declaration isn't a prototype
src/base.c: In function 'UintFromObjIndex':
src/base.c:406: error: 'obj' undeclared (first use in this function)
src/base.c:406: warning: passing argument 2 of 'PySequence_GetItem' makes integer from pointer without a cast
src/base.c:409: error: 'val' undeclared (first use in this function)
src/base.c: At top level:
src/base.c:415: error: parse error before 'Uint8'
src/base.c:416: warning: function declaration isn't a prototype
src/base.c: In function 'RGBAFromObj':
src/base.c:418: error: 'Uint32' undeclared (first use in this function)
src/base.c:418: error: parse error before 'val'
src/base.c:419: error: 'obj' undeclared (first use in this function)
src/base.c:420: error: 'RGBA' undeclared (first use in this function)
src/base.c:429: error: 'val' undeclared (first use in this function)
src/base.c:431: error: 'Uint8' undeclared (first use in this function)
src/base.c:431: error: parse error before 'val'
src/base.c:434: error: parse error before 'val'
src/base.c:437: error: parse error before 'val'
src/base.c:442: error: parse error before 'val'
src/base.c:444: error: parse error before numeric constant
src/base.c: In function 'get_error':
src/base.c:464: warning: implicit declaration of function 'SDL_GetError'
src/base.c:464: warning: passing argument 1 of 'PyString_FromString' makes pointer from integer without a cast
src/base.c: In function 'PyGame_Video_AutoQuit':
src/base.c:475: warning: implicit declaration of function 'SDL_WasInit'
src/base.c:475: error: 'SDL_INIT_VIDEO' undeclared (first use in this function)
src/base.c:476: warning: implicit declaration of function 'SDL_QuitSubSystem'
src/base.c: In function 'PyGame_Video_AutoInit':
src/base.c:481: error: 'SDL_INIT_VIDEO' undeclared (first use in this function)
src/base.c:502: warning: implicit declaration of function 'SDL_InitSubSystem'
src/base.c:505: warning: implicit declaration of function 'SDL_EnableUNICODE'
error: command 'gcc' failed with exit status 1
thm-mac-pb:~/Desktop/pygame-1.7.1release thm21$