Page 1 of 1

question concerning Ruby and USB

Posted: Tue Feb 28, 2012 5:11 am
by fixstuff555
Hi all,

I have a question concerning the Ruby interpreter inside Flowstone. Yes, I realize it's the full-blown Ruby. What I want to do is this. I would like to use the Ruby USB library, such as this http://www.a-k-r.org/ruby-usb/. How would I go about doing so in Flowstone? My goal is to use an Mbed LPC1768 with it's USBHid capabilities, and roll my own USBHid interface. FIrst of all, is it possible to install this Ruby library? If so, how would you go about doing so? Any help or advice is appreciated.

Thanks

Re: question concerning Ruby and USB

Posted: Wed Feb 29, 2012 12:01 pm
by Embedded
It's ok using a library but it may not work if it isn't compiled for MS Visual Studio.

Following the link to the USB library , it says to build and install with:

% ruby extconf.rb
% make
% make install

Those commands are compiling the code from source and not using Visual Studio. It's unlikely that it will work like that with Flowstone. The first step would be to build it with Visual Studio, if that works it's very likely it will work with Flowstone. After having a Visual Studio built version of the library it's just a question of dropping it in the load path.