Install from GitHub on OS X not finding SDL2, GStreamer, and other pieces

326 views
Skip to first unread message

Ian Stokes-Rees

unread,
May 6, 2016, 1:33:19 PM5/6/16
to Kivy users support
Hello,

I am exploring Kivy for the first time, and am working on an OS X system.  I would very much prefer to work with Kivy within an Anaconda environment, rather than from the `/Applications/Kivy2.app/Contents/Resources` directory -- that seems like a very strange place for me to do anything.

So I have resorted to using the GitHub checkout and installing from there.  I followed the instructions to use HomeBrew and did:

$ brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer

Warning: sdl2-2.0.4 already installed

Warning: sdl2_image-2.0.1_1 already installed

Warning: sdl2_ttf-2.0.14 already installed

Warning: sdl2_mixer-2.0.1 already installed

Warning: gstreamer-1.8.1 already installed


So you can see they are already installed.


However when I installed Kivy I got messages saying they weren't found:


$python setup.py install

Using distutils


Detected Cython version 0.24

User distribution detected, avoid portable command.

Using this graphics system: OpenGL ES 2

OSX framework used, force to x86_64 only

OSX ARCHFLAGS are: -arch x86_64

Missing GStreamer framework /Library/Frameworks/GStreamer.framework

Missing framework /Library/Frameworks/SDL2.framework

Missing framework /Library/Frameworks/SDL2_ttf.framework

Missing framework /Library/Frameworks/SDL2_image.framework

Missing framework /Library/Frameworks/SDL2_mixer.framework

Deactivate SDL2 compilation due to missing frameworks

Xcode detected at /Applications/Xcode.app/Contents/Developer, and using OS X10.11 sdk

 /Users/ijstokes/anaconda/envs/kivy/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'

   warnings.warn(msg)

 /Users/ijstokes/anaconda/envs/kivy/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dependency_links'

   warnings.warn(msg)

 /Users/ijstokes/anaconda/envs/kivy/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'

   warnings.warn(msg)


Do I need to go and get SDL2 and GStreamer from places such as:


https://www.libsdl.org/download-2.0.php

http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X


Or is there something else I should do to make this work?  I pulled down and installed the SDL frameworks from the libsdl.org site, but even then I end up with Kivy failing to install with this error:


creating build/temp.macosx-10.5-x86_64-2.7/kivy/lib/gstplayer

gcc -fno-strict-aliasing -I/Users/ijstokes/anaconda/envs/kivy/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/Library/Frameworks/GStreamer.framework/Headers -I/Users/ijstokes/anaconda/envs/kivy/include/python2.7 -c kivy/lib/gstplayer/_gstplayer.c -o build/temp.macosx-10.5-x86_64-2.7/kivy/lib/gstplayer/_gstplayer.o -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks

kivy/lib/gstplayer/_gstplayer.c:263:10: fatal error: 'gst/gst.h' file not found

#include "gst/gst.h"

         ^

1 error generated.

 error: command 'gcc' failed with exit status 1


Advice on how to proceed would be appreciated!  I have seen a few recommendations on this mailing list from the past month but have not been able to get any of them to work.


TIA! Ian

Ian Stokes-Rees

unread,
May 6, 2016, 3:51:41 PM5/6/16
to Kivy users support
I got a little further by correcting the version symlink for Current which had pointed at 0.1 to point at 1.0, then things got past the "gst/gst.h" error.

However now I'm stuck with a GStreamer.framework problem (framework not found). I don't understand it, because the framework is most certainly there (/Library/Framework directory and also XCode.app sub-sub-sub... directory)

Suggestions?

gcc -bundle -undefined dynamic_lookup -L/Users/ijstokes/anaconda/envs/kivy/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.5-x86_64-2.7/kivy/lib/gstplayer/_gstplayer.o -L/Users/ijstokes/anaconda/envs/kivy/lib -o build/lib.macosx-10.5-x86_64-2.7/kivy/lib/gstplayer/_gstplayer.so -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks -F/Library/Frameworks -Xlinker -rpath -Xlinker /Library/Frameworks -Xlinker -headerpad -Xlinker 190 -framework GStreamer -lm

ld: framework not found GStreamer

clang: error: linker command failed with exit code 1 (use -v to see invocation)

qua non

unread,
May 6, 2016, 5:20:35 PM5/6/16
to kivy-...@googlegroups.com
can you try with `USE_OSX_FRAMEORKS=0 python setup.py install`

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages