[MacPorts] #15123: py-game port should depend on libsdl-framework?
MacPorts
trac at macosforge.org
Thu Apr 24 15:20:46 PDT 2008
#15123: py-game port should depend on libsdl-framework?
--------------------------------------+-------------------------------------
Reporter: cpettitt at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.6.0
Keywords: py-game libsdl-framework |
--------------------------------------+-------------------------------------
When install py-game, I get the following error:
{{{
sudo port install py-game
---> Building py-game with target build
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_python_py-game/work/pygame-1.8.0release" &&
/opt/local/bin/python2.4 setup.py build " returned error 1
Command output: src/_numericsurfarray.c:982: error: parse error before ')'
token
src/_numericsurfarray.c:982: error: parse error before ')' token
src/_numericsurfarray.c:982: error: parse error before ')' token
src/_numericsurfarray.c:985: error: parse error before ')' token
src/_numericsurfarray.c:985: error: parse error before ')' token
src/_numericsurfarray.c:985: error: parse error before ')' token
src/_numericsurfarray.c:985: error: parse error before ')' token
src/_numericsurfarray.c:988: error: parse error before ')' token
src/_numericsurfarray.c:988: error: parse error before ')' token
src/_numericsurfarray.c:988: error: parse error before ')' token
src/_numericsurfarray.c:988: error: parse error before ')' token
src/_numericsurfarray.c:991: error: parse error before ')' token
src/_numericsurfarray.c:991: error: parse error before ')' token
src/_numericsurfarray.c:991: error: parse error before ')' token
src/_numericsurfarray.c:991: error: parse error before ')' token
src/_numericsurfarray.c: In function 'make_surface':
src/_numericsurfarray.c:1016: error: 'SDL_Surface' undeclared (first use
in this function)
src/_numericsurfarray.c:1016: error: 'surf' undeclared (first use in this
function)
src/_numericsurfarray.c:1019: error: 'Uint32' undeclared (first use in
this function)
src/_numericsurfarray.c:1019: error: parse error before 'rmask'
src/_numericsurfarray.c:1033: error: 'rmask' undeclared (first use in this
function)
src/_numericsurfarray.c:1033: error: 'gmask' undeclared (first use in this
function)
src/_numericsurfarray.c:1033: error: 'bmask' undeclared (first use in this
function)
src/_numericsurfarray.c:1045: warning: implicit declaration of function
'SDL_CreateRGBSurface'
src/_numericsurfarray.c:1048: warning: implicit declaration of function
'SDL_GetError'
src/_numericsurfarray.c:1048: warning: passing argument 2 of
'PyErr_SetString' makes pointer from integer without a cast
src/_numericsurfarray.c:1049: error: parse error before 'SDL_Surface'
src/_numericsurfarray.c:1049: warning: function declaration isn't a
prototype
src/_numericsurfarray.c:1052: warning: implicit declaration of function
'SDL_FreeSurface'
error: command '/usr/bin/gcc-4.0' failed with exit status 1
Error: Status 1 encountered during processing.
}}}
I found that the SDL framework was not installed by running the configure
script for py-game:
{{{
$ sudo python config.py
Using Darwin configuration...
Backup existing "Setup" file [Y/n]:
Remove old build directory (force recompile) [Y/n]:
Hunting dependencies...
Framework SDL not found
Framework SDL_ttf not found
Framework SDL_image not found
Framework SDL_mixer not found
Framework smpeg not found
PNG : found
JPEG : found
SCRAP : not found
}}}
Installing the libsdl-framework port fixed the compilation error.
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15123>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list