Tim Hunter
1/20/2009 11:43:00 PM
On Jan 17, 4:10 pm, Luis Lavena <luislav...@gmail.com> 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:
require 'rake/extensiontask'
Rake::ExtensionTask.new('RMagick')
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