From: Luis Lavena Date: 2009-01-21T09:18:43+09:00 Subject: Re: 1.8.6 OCI binary extension question On Jan 20, 9:42 pm, "rmag...@gmail.com" wrote: > On Jan 17, 4:10 pm, Luis Lavena wrote: > (snip) > > > Shameless plug: you can take a look torake-compiler[1] for cross- > > compilation, so you can generate the extension and the gem from Linux/ > > OSX. > > Luis, > > Is there a way to configure rake-compiler to specify a name for the > binary executable that is different from the extension name? The > RMagick binary is RMagick2.so, but rake-compiler assumes it is simply > RMagick. Given the Rakefile: > Is RMagick2 the name of the extension folder? rake-compiler is more *convention-over-configuration* while still letting you do some changes. http://github.com/luislavena/rake-compiler/tree/master (see customization section) > require 'rake/extensiontask' > > Rake::ExtensionTask.new('RMagick') > Just giving that line, rake-compiler is expecting: ext/RMagick/extconf.rb Which will generate RMagick.so (or .bundle, depending on the host and or target). > tim@linux:~/RMagick/projects/RMagick$ rake -T > (in /home/tim/RMagick/projects/RMagick) > rake clean            # Remove any temporary products. > rake clobber          # Remove any generated file. > rake compile          # Compile all the extensions > rake compile:RMagick  # Compile RMagick > tim@linux:~/RMagick/projects/RMagick$ rake compile > (in /home/tim/RMagick/projects/RMagick) > cd tmp/i686-linux/RMagick > make: Nothing to be done for `all'. > cd - > cp tmp/i686-linux/RMagick/RMagick.so lib/RMagick.so > rake aborted! > No such file or directory - tmp/i686-linux/RMagick/RMagick.so If it's saying nothing to be done is because it already build the makefile and it already build? what is the output of "rake clean; rake compile" Can you point me to the extconf.rb file of RMagick? There is room definitely there is room to add more customization, but I based rake-compiler structure in the PickAxe. Please let me know if you make progress on this. Regards, -- Luis Lavena