Pygame - smpeg does not find Python headers -
i've been trying install pygame
days now, , dependency missing smpeg
. following output:
brew install --head smpeg ==> installing dependencies smpeg: gobject-introspection, gdk-pixbuf, ==> installing smpeg dependency: gobject-introspection ==> building source; bottle blocked python requirement ==> downloading http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.4 downloaded: /library/caches/homebrew/gobject-introspection-1.40.0.tar.xz ==> ./configure --prefix=/usr/local/cellar/gobject-introspection/1.40.0 checking python script directory... ${prefix}/lib/python2.7/site-packages checking python extension module directory... ${exec_prefix}/lib/python2.7/sitepackages checking headers required compile python extensions... ./configure: line 14647: /library/frameworks/python.framework/versions/2.7/resources/python.app/contents/macos/pytho n-config: no such file or directory not found configure: error: python headers not found
i've tried brew edit smpeg
, adding include.install dir["*.h"]
above 2 end
@ end of code, no avail.
my brew doctor
says:
warning: python installed @ /library/frameworks/python.framework homebrew supports building against system-provided python or brewed python. in particular, pythons installed /library can interfere other software installs.
my brew list
says:
autoconf git libgcrypt mpfr sdl_mixer automake glib libgpg-error pkg-config sdl_ttf cloog gmp libmpc portmidi tree cmake gnu-getopt libpng pwgen webp freetype isl libtiff sdl xz gettext jpeg libtool sdl_gfx gfortran libffi mercurial sdl_image
brew --config
:
==> configuration homebrew_version: 0.9.5 head: 7448fd1532ae1c1709fe2f03ffe0dc188a134b3e cpu: quad-core 64-bit ivybridge os x: 10.9.2-x86_64 xcode: 5.1.1 clt: 5.1.0.0.1.1396320587 x11: 2.7.5 => /opt/x11
brew
updated
, upgraded
i have python 2.7.6
later i've managed install smpeg.h
(and mpegfilter.h
) in python.framework/versions/2.7/include/python
, when run python setup.py install
cd pygame-1.9.1release
, get:
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -g -dndebug -g -fwrapv -o3 -wall -wstrict-prototypes -ddarwin -i/library/frameworks/sdl.framework/versions/current/headers -i/library/frameworks/python.framework/versions/2.7/include/python2.7 -c src/movie.c -o build/temp.macosx-10.3-fat-2.7/src/movie.o in file included src/movie.c:26: in file included src/pygame.h:106: in file included /library/frameworks/sdl.framework/versions/current/headers/sdl.h:30: in file included /library/frameworks/sdl.framework/versions/current/headers/sdl_main.h:26: in file included /library/frameworks/sdl.framework/versions/current/headers/sdl_stdinc.h:30: in file included /library/frameworks/sdl.framework/versions/current/headers/sdl_config.h:34: in file included /library/frameworks/sdl.framework/versions/current/headers/sdl_config_macosx.h:29: /usr/include/availabilitymacros.h:110:14: warning: building intel mac os x deployment target < 10.4 invalid. [-w#warnings] #warning building intel mac os x deployment target ... ^ 1 warning generated. /usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -g build/temp.macosx-10.3-fat-2.7/src/movie.o -ls -lm -lp -le -lg -o build/lib.macosx-10.3-fat-2.7/pygame/movie.so -framework sdl -f/library/frameworks/ ld: library not found -ls clang: error: linker command failed exit code 1 (use -v see invocation) error: command '/usr/bin/clang' failed exit status 1
got it. did this: inside 'pygame-1.9.1release
', 'cd src, emacs scale_mmx64.c
'. there looked occurrences of 'movsxl
' , replaced them (two) with 'movslq
'. 'sudo pip install hg+http://bitbucket.org/pygame/pygame
worked'.
Comments
Post a Comment