From: Wim Vander Schelden Date: 2006-12-29T07:39:45+09:00 Subject: Re: Ruby extension issue Eric Hodel wrote: > On Dec 28, 2006, at 13:45, Wim Vander Schelden wrote: > >> I was able to fix the problem by changing my extconf.rb to: >> >> require 'mkmf' >> >> dir_config('gamer') >> have_library("SDL", "SDL_Init") >> have_header("SDL/SDL.h") >> pkg_config("sdl") >> create_makefile('gamer') >> >> However, I don't know *WHY* it works. The pkg_config seems to be the >> crucial line. >> I just went through other people's extconf.rb files and guessed the >> "sdl" value. >> Any help would be appreciated, since there seems to be no >> documentation about >> pkg_config... > > $ ruby extconf.rb > checking for SDL_Init() in -lSDL... no > checking for SDL/SDL.h... no > creating Makefile > $ > > You should never call create_makefile makefile when required libraries > and headers can't be found. > > --Eric Hodel - drbrain@segment7.net - http://blog.segment7.net > > I LIT YOUR GEM ON FIRE! > > > Ok thanks :) Could you also explain what these methods do exactly? Wim -- Wim Vander Schelden Bachelor Computer Science, University Ghent http://nanoblog.ath.cx My weblog, powered by Ruby and BSD licensed.