gtk+ is installed via homebrew (http://brew.sh)

I had to patch make-config-pc.rb to include -L#{CONFIG[“libdir”]}

$ diff tools/make-config-pc.rb tools/make-config-pc.new.rb 
21a22
> rubylibdir = CONFIG["libdir"]
29c30
< Libs: #{dldflags} #{librubyarg} #{libs} 
---
> Libs: -L#{rubylibdir} #{dldflags} #{librubyarg} #{libs} 

then this did the trick:

$ ruby tools/make-config-pc.rb > ruby.pc
$ PKG_CONFIG_PATH=.:/opt/X11/lib/pkgconfig/ ./configure --with-gtk --with-ruby 
--with-portaudio
$ make install

success! :)

next step would be for me to create a homebrew formula to automate installation 
for other people:
https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook

thanks for your help.

-David

On May 23, 2014, at 7:46 AM, Bill Schottstaedt <[email protected]> wrote:

> How did you get gtk?  I haven't had any luck with it in OSX
> for a long time.  The Snd configure script uses pkg-config
> to find ruby and gtk, so 
> 
> pkg-config gtk+-3.0 --cflags
> 
> and something similar with ruby should give some info
> as to what went wrong.  There's an environment variable
> PKG_CONFIG_PATH that sets where pkg-config looks.
> Also, there's a longstanding problem with Ruby (that
> I reported a long time ago but got no response), so if
> ruby.pc is missing, Mike Scholz provided a script to
> create it:
> 
> make-config-pc.rb > ruby.pc
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Cmdist mailing list
[email protected]
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to