pombreda / pgreloaded

Automatically exported from code.google.com/p/pgreloaded
Other
0 stars 0 forks source link

Can't build sdl mixer module #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
zack@debian:~/pgreloaded$ export WITH_SDL_MIXER=yes
zack@debian:~/pgreloaded$ python setup.py build

The following information will be used to build Pygame:
     System:   unix
     Python:   2.6.6
     Compiler: unix
     SDL:      1.2.14
Configuring library 'freetype':
Attempting to configure with Pkgconfig...         Success!

    CFlags : []
    LFlags : []
    IncDirs: ['/usr/include/freetype2']
    LibDirs: []
    Libs   : ['freetype']

Configuring library 'jpeg':
Attempting to configure with Pkgconfig...         Failure.
Attempting to configure with Libconfig...         Failure.
Attempting to configure with Guess...             Success!

    CFlags : []
    LFlags : []
    IncDirs: ['/usr/include']
    LibDirs: ['/usr/lib']
    Libs   : ['jpeg']

Configuring library 'openal':
Attempting to configure with Pkgconfig...         Success!

    CFlags : []
    LFlags : []
    IncDirs: []
    LibDirs: []
    Libs   : ['openal']

Configuring library 'SDL':
Attempting to configure with Pkgconfig...         Success!

    CFlags : ['-D_GNU_SOURCE=1', '-D_REENTRANT']
    LFlags : []
    IncDirs: ['/usr/include/SDL', 'src/sdl']
    LibDirs: []
    Libs   : ['SDL']

Configuring library 'png':
Attempting to configure with Pkgconfig...         Success!

    CFlags : []
    LFlags : []
    IncDirs: ['/usr/include/libpng12']
    LibDirs: []
    Libs   : ['png12', 'png']

Configuring library 'SDL_ttf':
Attempting to configure with Pkgconfig...         Success!

    CFlags : ['-D_GNU_SOURCE=1', '-D_REENTRANT']
    LFlags : []
    IncDirs: ['/usr/include/SDL', 'src/sdl']
    LibDirs: []
    Libs   : ['SDL', 'SDL_ttf']

Configuring library 'SDL_image':
Attempting to configure with Pkgconfig...         Success!

    CFlags : ['-D_GNU_SOURCE=1', '-D_REENTRANT']
    LFlags : []
    IncDirs: ['/usr/include/SDL', 'src/sdl']
    LibDirs: []
    Libs   : ['SDL', 'SDL_image']

Configuring library 'SDL_mixer':
Attempting to configure with Pkgconfig...         Failure.
Attempting to configure with Libconfig...         Success!

    CFlags : ['-D_GNU_SOURCE=1', '-D_REENTRANT']
    LFlags : []
    IncDirs: ['/usr/include/SDL', 'src/sdl']
    LibDirs: ['/usr/lib']
    Libs   : ['SDL_mixer', 'SDL']

Configuring library 'X11':
Attempting to configure with Pkgconfig...         Success!

    CFlags : []
    LFlags : []
    IncDirs: []
    LibDirs: []
    Libs   : ['X11']

Configuring library 'SDL_gfx':
Attempting to configure with Pkgconfig...         Success!

    CFlags : ['-D_GNU_SOURCE=1', '-D_REENTRANT']
    LFlags : []
    IncDirs: ['/usr/include/SDL', 'src/sdl']
    LibDirs: []
    Libs   : ['SDL', 'SDL_gfx']

Configuring library 'portmidi':
Attempting to configure with Pkgconfig...         Failure.
Attempting to configure with Libconfig...         Failure.
Attempting to configure with Guess...             Success!

    CFlags : []
    LFlags : []
    IncDirs: ['/usr/include']
    LibDirs: ['/usr/lib']
    Libs   : ['portmidi']

Adding compiler flags 'openmp':

    CFlags : ['-fopenmp']
    LFlags : ['-fopenmp']

Skipping module 'openal.constants'
Skipping module 'openal.base'
The following modules will be built:
    pygame2.base
    pygame2.mask
    pygame2.sdl.base
    pygame2.sdl.audio
    pygame2.sdl.cdrom
    pygame2.sdl.constants
    pygame2.sdl.event
    pygame2.sdl.gl
    pygame2.sdl.image
    pygame2.sdl.joystick
    pygame2.sdl.keyboard
    pygame2.sdl.mouse
    pygame2.sdl.rwops
    pygame2.sdl.time
    pygame2.sdl.video
    pygame2.sdl.wm
    pygame2.sdlext.base
    pygame2.sdlext.constants
    pygame2.sdlext.draw
    pygame2.sdlext.fastevent
    pygame2.sdlext.scrap
    pygame2.sdlext.transform
    pygame2.sdlmixer.base
    pygame2.sdlmixer.constants
    pygame2.sdlmixer.channel
    pygame2.sdlmixer.music
    pygame2.sdlttf.base
    pygame2.sdlttf.constants
    pygame2.sdlimage.base
    pygame2.sdlimage.constants
    pygame2.sdlgfx.base
    pygame2.sdlgfx.constants
    pygame2.sdlgfx.primitives
    pygame2.sdlgfx.rotozoom
    pygame2.freetype.base
    pygame2.freetype.constants
    pygame2.midi.pypm
    pygame2.math.base
    pygame2.sdlmixer.numericsndarray
    pygame2.sdlext.numericsurfarray
running build
running build_py
running build_ext
building 'pygame2.sdlmixer.constants' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -W -Wall -Wimplicit-int -Wimplicit-function-declaration 
-Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wtrigraphs -Wformat 
-Wchar-subscripts -Wuninitialized -Wparentheses -Wpointer-arith -Wcast-qual 
-Winline -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -Wshadow -Wredundant-decls -g -pg -fPIC 
-DPYGAME_INTERNAL -DHAVE_PYGAME_BASE -DHAVE_OPENMP -DHAVE_PYGAME_MASK 
-DHAVE_SDL -DHAVE_PYGAME_SDL_BASE -DHAVE_PYGAME_SDL_AUDIO 
-DHAVE_PYGAME_SDL_CDROM -DHAVE_PYGAME_SDL_CONSTANTS -DHAVE_PYGAME_SDL_EVENT 
-DHAVE_PYGAME_SDL_GL -DHAVE_PYGAME_SDL_IMAGE -DHAVE_PYGAME_SDL_JOYSTICK 
-DHAVE_PYGAME_SDL_KEYBOARD -DHAVE_PYGAME_SDL_MOUSE -DHAVE_PYGAME_SDL_RWOPS 
-DHAVE_PYGAME_SDL_TIME -DHAVE_PYGAME_SDL_VIDEO -DHAVE_JPEG -DHAVE_PNG 
-DHAVE_PYGAME_SDL_WM -DHAVE_PYGAME_SDLEXT_BASE -DHAVE_PYGAME_SDLEXT_CONSTANTS 
-DHAVE_PYGAME_SDLEXT_DRAW -DHAVE_PYGAME_SDLEXT_FASTEVENT 
-DHAVE_PYGAME_SDLEXT_SCRAP -DHAVE_X11 -DHAVE_PYGAME_SDLEXT_TRANSFORM 
-DHAVE_PYGAME_SDLMIXER_BASE -DHAVE_SDL_MIXER -DHAVE_PYGAME_SDLMIXER_CONSTANTS 
-DHAVE_PYGAME_SDLMIXER_CHANNEL -DHAVE_PYGAME_SDLMIXER_MUSIC 
-DHAVE_PYGAME_SDLTTF_BASE -DHAVE_SDL_TTF -DHAVE_PYGAME_SDLTTF_CONSTANTS 
-DHAVE_PYGAME_SDLIMAGE_BASE -DHAVE_SDL_IMAGE -DHAVE_PYGAME_SDLIMAGE_CONSTANTS 
-DHAVE_PYGAME_SDLGFX_BASE -DHAVE_SDL_GFX -DHAVE_PYGAME_SDLGFX_CONSTANTS 
-DHAVE_PYGAME_SDLGFX_PRIMITIVES -DHAVE_PYGAME_SDLGFX_ROTOZOOM 
-DHAVE_PYGAME_FREETYPE_BASE -DHAVE_FREETYPE -DHAVE_PYGAME_FREETYPE_CONSTANTS 
-DHAVE_PYGAME_MIDI_PYPM -DHAVE_PORTMIDI -DHAVE_PYGAME_MATH_BASE 
-DHAVE_PYGAME_SDLMIXER_NUMERICSNDARRAY -DHAVE_PYGAME_SDLEXT_NUMERICSURFARRAY 
-DIS_UNIX -I/usr/include/SDL -Isrc/sdl -I/usr/include/SDL -Isrc/sdl -Isrc/base 
-Isrc -Isrc/doc -I/usr/include/python2.6 -c src/sdlmixer/constantsmod.c -o 
build/temp.linux-x86_64-2.6/src/sdlmixer/constantsmod.o -D_GNU_SOURCE=1 
-D_REENTRANT -D_GNU_SOURCE=1 -D_REENTRANT -fopenmp
In file included from /usr/include/python2.6/Python.h:8,
                 from src/pgcompat.h:6,
                 from src/base/pgbase.h:23,
                 from src/sdlmixer/pgmixer.h:26,
                 from src/sdlmixer/constantsmod.c:23:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/SDL/SDL_stdinc.h:34,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:30,
                 from src/sdlmixer/pgmixer.h:23,
                 from src/sdlmixer/constantsmod.c:23:
/usr/include/features.h:158:1: warning: this is the location of the previous 
definition
In file included from /usr/include/python2.6/Python.h:8,
                 from src/pgcompat.h:6,
                 from src/base/pgbase.h:23,
                 from src/sdlmixer/pgmixer.h:26,
                 from src/sdlmixer/constantsmod.c:23:
/usr/include/python2.6/pyconfig.h:1040:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/include/SDL/SDL_stdinc.h:34,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:30,
                 from src/sdlmixer/pgmixer.h:23,
                 from src/sdlmixer/constantsmod.c:23:
/usr/include/features.h:160:1: warning: this is the location of the previous 
definition
In file included from /usr/include/python2.6/Python.h:125,
                 from src/pgcompat.h:6,
                 from src/base/pgbase.h:23,
                 from src/sdlmixer/pgmixer.h:26,
                 from src/sdlmixer/constantsmod.c:23:
/usr/include/python2.6/modsupport.h:32: warning: redundant redeclaration of 
‘_Py_BuildValue_SizeT’
/usr/include/python2.6/modsupport.h:31: note: previous declaration of 
‘_Py_BuildValue_SizeT’ was here
In file included from /usr/include/python2.6/Python.h:132,
                 from src/pgcompat.h:6,
                 from src/base/pgbase.h:23,
                 from src/sdlmixer/pgmixer.h:26,
                 from src/sdlmixer/constantsmod.c:23:
/usr/include/python2.6/abstract.h:352: warning: redundant redeclaration of 
‘_PyObject_CallFunction_SizeT’
/usr/include/python2.6/abstract.h:326: note: previous declaration of 
‘_PyObject_CallFunction_SizeT’ was here
/usr/include/python2.6/abstract.h:354: warning: redundant redeclaration of 
‘_PyObject_CallMethod_SizeT’
/usr/include/python2.6/abstract.h:340: note: previous declaration of 
‘_PyObject_CallMethod_SizeT’ was here
src/sdlmixer/constantsmod.c:36: warning: no previous prototype for 
‘initconstants’
src/sdlmixer/constantsmod.c: In function ‘initconstants’:
src/sdlmixer/constantsmod.c:72: error: ‘MIX_INIT_FLAC’ undeclared (first 
use in this function)
src/sdlmixer/constantsmod.c:72: error: (Each undeclared identifier is reported 
only once
src/sdlmixer/constantsmod.c:72: error: for each function it appears in.)
src/sdlmixer/constantsmod.c:73: error: ‘MIX_INIT_MOD’ undeclared (first use 
in this function)
src/sdlmixer/constantsmod.c:74: error: ‘MIX_INIT_MP3’ undeclared (first use 
in this function)
src/sdlmixer/constantsmod.c:75: error: ‘MIX_INIT_OGG’ undeclared (first use 
in this function)
error: command 'gcc' failed with exit status 1

zack@debian:~/pgreloaded$ aptitude show libsdl-mixer1.2-dev
Package: libsdl-mixer1.2-dev             
State: installed
Automatically installed: no
Version: 1.2.8-6.3
Priority: optional
Section: libdevel
Maintainer: Debian SDL packages maintainers 
<pkg-sdl-maintainers@lists.alioth.debian.org>
Uncompressed Size: 471 k
Depends: libsdl-mixer1.2 (= 1.2.8-6.3), libc6-dev, libsdl1.2-dev (>= 1.2.4), 
libogg-dev, libvorbis-dev, libsmpeg-dev
         (>= 0.4.4-7), libmikmod-dev
Conflicts: libsdl-mixer-dev, libsdl-mixer1.0-dev, libsdl-mixer1.1-dev

Original issue reported on code.google.com by zbuh...@gmail.com on 17 May 2011 at 7:30

GoogleCodeExporter commented 9 years ago
That problem exists on both the mercurial and alpha5 release versions.

zack@debian:~/pgreloaded$ cat /etc/issue
Debian GNU/Linux 6.0 \n \l

Original comment by zbuh...@gmail.com on 17 May 2011 at 7:32

GoogleCodeExporter commented 9 years ago
pgreloaded requires at least SDL_mixer 1.2.11. Hence you can't add SDL_mixer 
support with 1.2.8.

Original comment by marcusvonappen@googlemail.com on 17 May 2011 at 7:44

GoogleCodeExporter commented 9 years ago
Quite correct; pygame2 builds perfectly after upgrading to 1.2.11.  I should 
have paid more attention to the version numbers in the readme.

I appreciate your clarification.

Original comment by zbuh...@gmail.com on 17 May 2011 at 8:03