I'm trying to install GTK+3 on my Mac OSX 10.9 system to run a pyGObject project I've been developing in Ubuntu. It runs perfectly on Ubuntu, so I wanted to test cross-platform compatibility. I'm following the directions on wiki.gnome.org.
I finished the part where I run the sh gtk-osx-build-setup.sh
command. It loads everything perfectly (as far as I can tell). However, if I do a which jhbuild
or try a command, I get an error:
EnvironmentError: MacOSX10.9.sdk not found
jhbuild: could not load config file
Any suggestions on how to fix this and finish installing jhbuild
? It seems like the instructions from their webpage are a little incomplete or perhaps I'm not adding to path correctly?
Questions:
-
Which file do I put the path? Is it
.bashrc
or.bash_profile
(neither have worked so far). Perhaps some other file is my bash profile script? -
What is the path to the jhbuild? In the example, it says
alias jhbuild="PATH=gtk-prefix/bin:$PATH jhbuild"
, but I'm not actually sure what I should substitute in forgtk-prefix
(not sure where the actual path is, sincewhich jhbuild
doesn't work).
Best Answer
Forgive me if this is a silly question but do you have Xcode installed?
The OSX SDK should be installed on your system within the Xcode application bundle. You should be able to find it at
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/
.If Xcode isn't installed you can install it for free from here.