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

[pygame] Pygame bug on (Intel) MacBook Pro



I'm unable to install PyGame on a new (Intel) MacBook Pro:

lipo: can't figure out the architecture type of: /var/tmp//cchiESvJ.out

Under Python 2.5, I'm trying to install from both SVN and the latest release: pygame-1.7.1release

Thanks.




shanegeiger@h460d94e0:~/pygame/trunk\ 00:23:15$ sudo python setup.py install Using Darwin configuration...

running install
running build
running build_py
creating build
creating build/lib.macosx-10.3-fat-2.5
creating build/lib.macosx-10.3-fat-2.5/pygame
copying lib/__init__.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/color.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/colordict.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/cursors.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/locals.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/mac_scrap.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/macosx.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/pkgdata.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/sprite.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/sysfont.py -> build/lib.macosx-10.3-fat-2.5/pygame
copying lib/version.py -> build/lib.macosx-10.3-fat-2.5/pygame
creating build/lib.macosx-10.3-fat-2.5/pygame/gp2x
copying lib/gp2x/__init__.py -> build/lib.macosx-10.3-fat-2.5/pygame/gp2x
copying lib/gp2x/constants.py -> build/lib.macosx-10.3-fat-2.5/pygame/gp2x
copying lib/gp2x/locals.py -> build/lib.macosx-10.3-fat-2.5/pygame/gp2x
running build_ext
building 'pygame.imageext' extension
creating build/temp.macosx-10.3-fat-2.5
creating build/temp.macosx-10.3-fat-2.5/src
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -D_REENTRANT -I/usr/include/SDL -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/imageext.c -o build/temp.macosx-10.3-fat-2.5/src/imageext.o
src/imageext.c:29:17: error: png.h: No such file or directory
src/imageext.c:30:21: error: jpeglib.h: No such file or directory
src/imageext.c:29:17: error: png.h: No such file or directory
src/imageext.c:30:21: error: jpeglib.h: No such file or directory
In file included from src/imageext.c:31:
src/pygame.h:63:17: error: SDL.h: No such file or directory
In file included from src/imageext.c:31:
src/pygame.h:226: error: parse error before 'SDL_VideoInfo'
src/pygame.h:226: warning: no semicolon at end of struct or union
src/pygame.h:227: warning: data definition has no type or storage class
src/pygame.h:252: error: parse error before 'SDL_Surface'
src/pygame.h:252: warning: no semicolon at end of struct or union
src/pygame.h:256: error: parse error before '}' token
src/pygame.h:256: warning: data definition has no type or storage class
src/imageext.c:33:23: error: SDL_image.h: No such file or directory
src/imageext.c:35: error: parse error before '*' token
src/imageext.c:35: warning: data definition has no type or storage class
In file included from src/imageext.c:31:
src/pygame.h:63:17: error: SDL.h: No such file or directory
In file included from src/imageext.c:31:
src/pygame.h:226: error: parse error before 'SDL_VideoInfo'
src/pygame.h:226: warning: no semicolon at end of struct or union
src/pygame.h:227: warning: data definition has no type or storage class
src/pygame.h:252: error: parse error before 'SDL_Surface'
src/pygame.h:252: warning: no semicolon at end of struct or union
src/pygame.h:256: error: parse error before '}' token
src/pygame.h:256: warning: data definition has no type or storage class
src/imageext.c:33:23: error: SDL_image.h: No such file or directory
src/imageext.c:35: error: parse error before '*' token
src/imageext.c:35: warning: data definition has no type or storage class
src/imageext.c: In function 'image_load_ext':
src/imageext.c:59: error: 'SDL_Surface' undeclared (first use in this function)
src/imageext.c:59: error: (Each undeclared identifier is reported only once
src/imageext.c:59: error: for each function it appears in.)
src/imageext.c:59: error: 'surf' undeclared (first use in this function)
src/imageext.c:60: error: 'SDL_RWops' undeclared (first use in this function)
src/imageext.c:60: error: 'rw' undeclared (first use in this function)
src/imageext.c:76: error: parse error before ')' token
src/imageext.c:76: error: parse error before ')' token
src/imageext.c:78: error: parse error before 'SDL_RWops'
src/imageext.c:91: warning: passing argument 2 of 'PyErr_SetString' makes pointer from integer without a cast
src/imageext.c:93: error: parse error before 'SDL_Surface'
src/imageext.c: At top level:
src/imageext.c:378: error: parse error before '*' token
src/imageext.c: In function 'opengltosdl':
src/imageext.c:384: error: 'SDL_Surface' undeclared (first use in this function)
src/imageext.c:384: error: 'surf' undeclared (first use in this function)
src/imageext.c:385: error: 'Uint32' undeclared (first use in this function)
src/imageext.c:385: error: parse error before 'rmask'
src/imageext.c:425: error: 'SDL_BYTEORDER' undeclared (first use in this function)
src/imageext.c:425: error: 'SDL_LIL_ENDIAN' undeclared (first use in this function)
src/imageext.c:427: error: 'rmask' undeclared (first use in this function)
src/imageext.c:427: error: 'gmask' undeclared (first use in this function)
src/imageext.c:427: error: 'bmask' undeclared (first use in this function)
src/imageext.c:433: error: 'SDL_SWSURFACE' undeclared (first use in this function)
src/imageext.c:438: warning: passing argument 2 of 'PyErr_SetString' makes pointer from integer without a cast
src/imageext.c: In function 'image_save_ext':
src/imageext.c:455: error: 'SDL_Surface' undeclared (first use in this function)
src/imageext.c:455: error: 'surf' undeclared (first use in this function)
src/imageext.c:456: error: 'temp' undeclared (first use in this function)
src/imageext.c:461: error: parse error before ')' token
src/imageext.c:463: error: 'SDL_OPENGL' undeclared (first use in this function)
src/imageext.c:470: error: parse error before ')' token
src/imageext.c:523: error: parse error before ')' token
src/imageext.c:526: warning: passing argument 2 of 'PyErr_SetString' makes pointer from integer without a cast
src/imageext.c: In function 'image_load_ext':
src/imageext.c:59: error: 'SDL_Surface' undeclared (first use in this function)
src/imageext.c:59: error: (Each undeclared identifier is reported only once
src/imageext.c:59: error: for each function it appears in.)
src/imageext.c:59: error: 'surf' undeclared (first use in this function)
src/imageext.c:60: error: 'SDL_RWops' undeclared (first use in this function)
src/imageext.c:60: error: 'rw' undeclared (first use in this function)
src/imageext.c:76: error: parse error before ')' token
src/imageext.c:76: error: parse error before ')' token
src/imageext.c:78: error: parse error before 'SDL_RWops'
src/imageext.c:91: warning: passing argument 2 of 'PyErr_SetString' makes pointer from integer without a cast
src/imageext.c:93: error: parse error before 'SDL_Surface'
src/imageext.c: At top level:
src/imageext.c:378: error: parse error before '*' token
src/imageext.c: In function 'opengltosdl':
src/imageext.c:384: error: 'SDL_Surface' undeclared (first use in this function)
src/imageext.c:384: error: 'surf' undeclared (first use in this function)
src/imageext.c:385: error: 'Uint32' undeclared (first use in this function)
src/imageext.c:385: error: parse error before 'rmask'
src/imageext.c:425: error: 'SDL_BYTEORDER' undeclared (first use in this function)
src/imageext.c:425: error: 'SDL_LIL_ENDIAN' undeclared (first use in this function)
src/imageext.c:427: error: 'rmask' undeclared (first use in this function)
src/imageext.c:427: error: 'gmask' undeclared (first use in this function)
src/imageext.c:427: error: 'bmask' undeclared (first use in this function)
src/imageext.c:433: error: 'SDL_SWSURFACE' undeclared (first use in this function)
src/imageext.c:438: warning: passing argument 2 of 'PyErr_SetString' makes pointer from integer without a cast
src/imageext.c: In function 'image_save_ext':
src/imageext.c:455: error: 'SDL_Surface' undeclared (first use in this function)
src/imageext.c:455: error: 'surf' undeclared (first use in this function)
src/imageext.c:456: error: 'temp' undeclared (first use in this function)
src/imageext.c:461: error: parse error before ')' token
src/imageext.c:463: error: 'SDL_OPENGL' undeclared (first use in this function)
src/imageext.c:470: error: parse error before ')' token
src/imageext.c:523: error: parse error before ')' token
src/imageext.c:526: warning: passing argument 2 of 'PyErr_SetString' makes pointer from integer without a cast
lipo: can't figure out the architecture type of: /var/tmp//cchiESvJ.out
error: command 'gcc' failed with exit status 1
shanegeiger@h460d94e0:~/pygame/trunk\ 00:23:18$


--
Shane Geiger
IT Director
National Council on Economic Education
sgeiger@xxxxxxxx  |  402-438-8958  |  http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy

begin:vcard
fn:Shane Geiger
n:Geiger;Shane
org:National Council on Economic Education (NCEE)
adr:Suite 215;;201 N. 8th Street;Lincoln;NE;68508;United States
email;internet:sgeiger@xxxxxxxx
title:IT Director
tel;work:402-438-8958
x-mozilla-html:FALSE
url:http://www.ncee.net
version:2.1
end:vcard