[CM] compiling on OS X?
David Lowenfels
david.lowenfels at gmail.com
Fri May 23 17:39:09 PDT 2014
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 <bil at ccrma.Stanford.EDU> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://ccrma-mail.stanford.edu/mailman/private/cmdist/attachments/20140523/c852c805/attachment.bin
More information about the Cmdist
mailing list