Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Roger Pack
RE: mingw [ reply ]  
2008-08-08 22:38
Thanks!

By: Tim Hunter
RE: mingw [ reply ]  
2008-08-08 22:09
I opened Support Request 21495 and attached the file to it. Good luck!

By: Roger Pack
RE: mingw [ reply ]  
2008-08-07 13:28
Sure shoot me the extconf.rb or post it here or what not.
Thanks!
-R

By: Tim Hunter
RE: mingw [ reply ]  
2008-05-11 00:04
No, I didn't use the MSVC++ compiler. I used the gcc that comes with Luis' oci package.

By: Tim Hunter
RE: mingw [ reply ]  
2008-05-10 21:07
Hmmm...don't quite know what you mean by "a mingw," but back in April I was able to get RMagick to build with the mingw one-click installer that Luis Lavena has been working on, if that's what you mean.

I used the standard RMagick 2.3.0 source distribution, the MS Visual C++ 2005 Express Edition compiler, and the same ImageMagick Win32 binary installer that the rmagick-win32 gem relies on. (This last is good because it means you don't have to mess around with compiling and building ImageMagick and all its dependent libraries.)

The only change I made was to modify RMagick's extconf.rb file to deal with the fact that the ImageMagick binary installer doesn't install Magick-config. On *nix-installs, Magick-config is a little shell script that the ImageMagick ./configure script creates when you configure ImageMagick for your particular machine. It's similar to Ruby's rbconfig.rb file. RMagick's extconf.rb runs Magick-config to find out things like the directory where ImageMagick's libraries are installed.

Without Magick-config, I had to hack RMagick's extconf.rb to find the ImageMagick libraries, check the ImageMagick version number, etc., on its own. I just poked around in the ImageMagick installation directory until I got it to work on my machine. In a "production" release I'd probably ask the IM developers for a better way to discover that information, but my goal was to determine if I could build RMagick with the mingw oci, not write a "production-quality" installer.

However, I suspect that anybody who is messing with the mingw oci is prepared to hack around a bit, so with that in mind, if you want to give it a try yourself I'll be glad to upload the extconf.rb file I used. Let me know.

By: Roger Pack
mingw [ reply ]  
2008-05-09 13:55
were there instructions somewhere on how to build a mingw?