Compiling Kivy: "fatal error: 'gst/gst.h' file not found"

479 views
Skip to first unread message

Ryan Doherty

unread,
Aug 18, 2015, 12:51:09 PM8/18/15
to Kivy users support
Hello! I'm attempting to build Kivy locally, but I get this error: 

kivy setup.py build_ext --inplace
[snip]
kivy/lib/gstplayer/_gstplayer.c:343:10: fatal error: 'gst/gst.h' file not found
#include "gst/gst.h"
         ^
1 error generated.
 error: command 'gcc' failed with exit status


I have checked that I have the SDL2 and GStreamer libraries symlinked from /Library/Frameworks to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks


cd  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/
ls
lrwxr-xr-x    1 root  wheel    39 Aug 18 09:09 GStreamer.framework -> /Library/Frameworks/GStreamer.framework
lrwxr-xr-x    1 root  wheel    34 Aug 18 09:09 SDL2.framework -> /Library/Frameworks/SDL2.framework
lrwxr-xr-x    1 root  wheel    40 Aug 18 09:09 SDL2_image.framework -> /Library/Frameworks/SDL2_image.framework
lrwxr-xr-x    1 root  wheel    40 Aug 18 09:09 SDL2_mixer.framework -> /Library/Frameworks/SDL2_mixer.framework
lrwxr-xr-x    1 root  wheel    38 Aug 18 09:10 SDL2_ttf.framework -> /Library/Frameworks/SDL2_ttf.framework



Any tips on how to fix this or find out why gcc can't find gst/gst.h? I have GStreamer version 1.0 installed. Thanks!








Ryan Doherty

unread,
Aug 22, 2015, 12:26:15 PM8/22/15
to kivy-...@googlegroups.com
Ok, I managed to get Kivy building, I had to install the *dev* versions of the frameworks.

However, now when I package my app for OSX (with the new, approved Kivy instructions) and run it on a clean OSX computer, I get the classic 'Unable to find valuable Window provider at all!' message. (along with unable to find Text provider)

[CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
sdl2 - ImportError: dlopen(/Users/rdoherty/Desktop/RaceCapture.app/Contents/Resources/kivy/kivy/core/window/_window_sdl2.so, 2): Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
  Referenced from: /Users/rdoherty/Desktop/RaceCapture.app/Contents/Resources/kivy/kivy/core/window/_window_sdl2.so
  Reason: image not found
  File "/Users/rdoherty/Documents/projects/RaceCapture_App/install/osx/RaceCapture.app/Contents/Resources/kivy-asl/kivy/core/__init__.py", line 57, in core_select_lib
  File "/Users/rdoherty/Documents/projects/RaceCapture_App/install/osx/RaceCapture.app/Contents/Resources/kivy-asl/kivy/core/window/window_sdl2.py", line 26, in <module>

[CRITICAL] [Text        ] Unable to find any valuable Text provider at all!
sdl2 - ImportError: dlopen(/Users/rdoherty/Desktop/RaceCapture.app/Contents/Resources/kivy/kivy/core/text/_text_sdl2.so, 2): Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
  Referenced from: /Users/rdoherty/Desktop/RaceCapture.app/Contents/Resources/kivy/kivy/core/text/_text_sdl2.so
  Reason: image not found
  File "/Users/rdoherty/Documents/projects/RaceCapture_App/install/osx/RaceCapture.app/Contents/Resources/kivy-asl/kivy/core/__init__.py", line 57, in core_select_lib
  File "/Users/rdoherty/Documents/projects/RaceCapture_App/install/osx/RaceCapture.app/Contents/Resources/kivy-asl/kivy/core/text/text_sdl2.py", line 12, in <module>

pil - ImportError: No module named PIL
  File "/Users/rdoherty/Documents/projects/RaceCapture_App/install/osx/RaceCapture.app/Contents/Resources/kivy-asl/kivy/core/__init__.py", line 57, in core_select_lib
  File "/Users/rdoherty/Documents/projects/RaceCapture_App/install/osx/RaceCapture.app/Contents/Resources/kivy-asl/kivy/core/text/text_pil.py", line 8, in <module>

[CRITICAL] [App         ] Unable to get a Text provider, abort.

Any advice on how to debug this? Seems like some paths are not correct?


--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/QqhA6u27pSc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Brent Picasso

unread,
Aug 25, 2015, 2:59:32 PM8/25/15
to Kivy users support
Is anyone able to get a dev version running with OSX? When I ran across this issue on Ubuntu I had to re-install all of the kivy dependencies - specifically virtualenv and pygame to get the dev version working.

Our dev version is 1.9.0 with very specific patches applied that we needed: https://github.com/autosportlabs/kivy/tree/asl_1.9.0_patched  - nothing crazy.

-Brent
Reply all
Reply to author
Forward
0 new messages