Chris L. wrote:
I used the win32serial library here :
http://grub.ath.cx/win32serial/
which worked fine on my system (Windows XP sp3, using cygwin ruby, but I
think it’ll work with the one-click version of Ruby)
Hope this helps,
Chris
Thanks! But I can’t seem install this library. Following the readme I
was trying to build the library; the regular make give the following
error:
Makefile:127: *** target pattern contains no `%’. Stop.
The nmake give the following error:
Microsoft ® Program Maintenance Utility Version 8.00.50727.762
Copyright © Microsoft Corporation. All rights reserved.
c:\Ruby\bin\ruby -e "puts 'EXPORTS', 'Init_Win32Serial'" >
Win32Serial-i386-mswin32.def
cl -nologo -I. -Ic:/Ruby/lib/ruby/1.8/i386-mswin32
-Ic:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c
-Tcrb_serial_wrapper.c
NMAKE : fatal error U1077: ‘“c:\Program Files\Microsoft Visual Studio
8\VC\bin\cl.EXE”’ : return code ‘0xc0000135’
Stop.
nmake /I takes me this far apparently with no error:
Microsoft ® Program Maintenance Utility Version 8.00.50727.762
Copyright © Microsoft Corporation. All rights reserved.
cl -nologo -I. -Ic:/Ruby/lib/ruby/1.8/i386-mswin32
-Ic:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c
-Tcrb_serial_wrapper.c
cl -nologo -I. -Ic:/Ruby/lib/ruby/1.8/i386-mswin32
-Ic:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c
-Tcserial.c
cl -nologo -LD -FeWin32Serial.so rb_serial_wrapper.obj
serial.obj msvcrt-ruby18.lib oldnames.lib user32.lib advapi32.lib
shell32.lib ws2_32.lib -link -incremental:no -debug -opt:ref -opt:icf
-dll -libpath:"." -libpath:“c:/Ruby/lib”
-def:Win32Serial-i386-mswin32.def -implib:Win32Serial-i386-mswin32.lib
-pdb:Win32Serial-i386-mswin32.pdb
But nmake /I install gives me the following errors:
nmake /I install
Microsoft ® Program Maintenance Utility Version 8.00.50727.762
Copyright © Microsoft Corporation. All rights reserved.
cl -nologo -I. -Ic:/Ruby/lib/ruby/1.8/i386-mswin32
-Ic:/Ruby/lib/ruby/1.
8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcrb_serial_wrapper.c
cl -nologo -I. -Ic:/Ruby/lib/ruby/1.8/i386-mswin32
-Ic:/Ruby/lib/ruby/1.
8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcserial.c
cl -nologo -LD -FeWin32Serial.so rb_serial_wrapper.obj
serial.obj msvcrt
-ruby18.lib oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib
-link
-incremental:no -debug -opt:ref -opt:icf -dll -libpath:"."
-libpath:"c:/Ruby/lib
" -def:Win32Serial-i386-mswin32.def -implib:Win32Serial-i386-mswin32.lib
-pdb:Wi
n32Serial-i386-mswin32.pdb
c:/Ruby/lib/ruby/1.8/fileutils.rb:843:in stat': No such file or directory - Win 32Serial.so (Errno::ENOENT) from c:/Ruby/lib/ruby/1.8/fileutils.rb:843:in
install’
from c:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in
fu_each_src_dest' from c:/Ruby/lib/ruby/1.8/fileutils.rb:1409:in
fu_each_src_dest0’
from c:/Ruby/lib/ruby/1.8/fileutils.rb:1393:in
fu_each_src_dest' from c:/Ruby/lib/ruby/1.8/fileutils.rb:840:in
install’
from c:/Ruby/lib/ruby/1.8/un.rb:183:in install' from c:/Ruby/lib/ruby/1.8/un.rb:55:in
setup’
from c:/Ruby/lib/ruby/1.8/un.rb:178:in `install’
from -e:1
install -c -p -m 0755 Win32Serial.so
c:\Ruby\lib\ruby\site_ruby\1.8\i386-msvcrt
Any one else has encounter this issue? For now I have moved away from
Ruby and implemented my stuff using Python, pyserial and wxpython; that
works like a champ.
Thanks