From: "Wood, Pete" Date: 2005-11-15T18:40:33+09:00 Subject: Re: Has anyone written an extconf.rb that depends on a Mac OS Fra mework? I use a OS X framework in creating the FireRuby library on the Mac. All I did to support this in the extconf.rb was add a line like the following into this file... $LDFLAGS = $LDFLAGS + " -framework Firebird" I'm not sure if this is the way it's supposed to be done but it works for me. Peter -----Original Message----- From: Duane Johnson [mailto:duane.johnson@gmail.com] Sent: 15 November 2005 06:32 To: ruby-talk@ruby-lang.org Subject: Has anyone written an extconf.rb that depends on a Mac OS Framework? I once built a game with Ruby/SDL [1] called Tadpoles [2]. (SDL is a powerful cross-platform Simple DirectMedia Library that's ideal for making fast graphics as in 2-D games). That was back in my Linux days. When I moved back to Windows (temporarily) I found that Ruby/ SDL was far too difficult to install for me. So I learned about RUDL [3] and found that it was much easier to install for Windows and actually featured some pretty nice Rubyesqueness. With the rest of the geek world, I've since made the switch to Mac OS X (yeah, I know some of you are still holding back). Now, I'd like to be able to write SDL-based apps for the Mac, but neither library seems ideal. So, I'm attempting to make RUDL work on the Mac--but I need some help understanding how to make Ruby's extconf.rb / mkmf stuff work in conjunction with the Mac "Framework" style of distributing libraries. Specifically, I've compiled SDL.framework which resides in /Library/Frameworks and need to the linker to know about that folder. Unfortunately, when I run extconf.rb, it seems that the linker expects to find the libraries in the usual Unix style and in the usual Unix locations, using the "-lsdl" linker flag. So, has anyone built an extconf.rb file that depends on a Mac OS Framework that I might investigate? If not, how can I get extconf.rb to compile files like this, according to the SDL's Mac OS README: "gcc -I/Library/Frameworks/SDL.framework/Headers MyProgram.c SDLmain.m -framework SDL -framework Cocoa" Thanks, Duane Johnson (canadaduane) [1] http://raa.ruby-lang.org/project/ruby-sdl/ [2] http://tadpoles.rubyforge.org/ [3] http://www.rubygarden.org/ruby?RuDL Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail is confidential. It may also be legally privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. We may monitor all e-mail communications through our networks. If you have received this e-mail in error, please inform us immediately on +44 (0) 1749 672081 and delete it and all copies from your system. We accept no responsibility for changes to any e-mail which occur after it has been sent. Attachments to this e-mail may contain software viruses which could damage your system. We therefore recommend you virus-check all attachments before opening. A business of Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No. 868273