Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Stephan Kämper
RE: Binary files for Win32 - biult with MinGW [ reply ]  
2004-02-06 21:35
So I'm answering myself...

If you do have a MS VC comnpiler on your Windows machine you might be off best using this and following the instructions coming with ruby-serialport.

If you don't you might like to try the following (extracted from the news group thread started on Feb, 3rd, 200 with subject "ruby-serialport on Win32")

For more detailed information on this see comp.langruby or [ruby-talk:91435] and following (especially [ruby-talk:91616]) on either of these sites:
http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml
http://www.ruby-talk.org

The approach using MinGW + the patch given in [ruby-talk:91616] worked for me, but your mileage may vary.

- I installed the whole bunch of MinGW stuff: MinGW, MSYS, and the developer kit.
- Then I made a MinGW version if Ruby unsing the MinGW/MSYS environment.
- After that I applied the abovementioned patch to the ruby-serialport package
- ... and built that, too. Note that the MinGW version of Ruby seems
to be necessary to get the result of "ruby extconf.rb" right.
I didn't try it another way though.
- Then I copied the brand new serialport.so into the library path of the
One-Click-Windows-Installer.
- That was it. Now the ruby installation can talk to serial devices.

Happy rubying!

Stephan



By: Stephan Kämper
Binary files for Win32 [ reply ]  
2004-02-02 09:15
Hi all,

are there binary files for Windows systems available somewhere? (I'm running Ruby on a Win32 box without any C/C++ compiler of whatever flavour...)

stek