Ruby PDA implementation?

G

gregarican

I asked this question a couple of months ago, and now am throwing it
out there again in case anything has changed. Has anyone out there
successfully ported Ruby over to the Windows Mobile platform yet?
Following the instructions in the wince folder of the Ruby source I
still cannot get it cross compiled using Microsoft Embedded MSVC Tools.
I have tried to no avail using various Ruby 1.8.x sources and the Ruby
1.6.8 source. Just curious if someone else is having better luck than
I...
 
G

gregarican

Just blogged an article describing what I did to get Ruby running on my
iPAQ:
http://jason.stell.us/2006/01/ruby-on-ipaq-pocket-pc.html

I did this as well. The problem is that I receive Wince::Strerror error
messages when doing various things --- from executing a Ruby script
from the command line (like using 'ruby myScript.rb') to parsing xmlrpc
calls. It seems as if these binaries aren't compatible with my Dell
Axim x50 handheld. It has an ARM processor and it uses Windows Mobile
5.0. But for some reason the handling of strings isn't being done
correctly.

What OS is running on your iPaq? Can you successfully run Ruby scripts
from the command line? I can do things like ruby -e "print 'hello,
world!'" but that's about it without the Wince::Strerror messages. And
trying to cross-compile Ruby for Wince using Embedded MSVC fails due to
one compilation error or another using the sources for Ruby 1.8.1 all
the way through Ruby 1.8.4 :-(
 
G

gregarican

gregarican said:
I did this as well. The problem is that I receive Wince::Strerror error
messages when doing various things --- from executing a Ruby script
from the command line (like using 'ruby myScript.rb') to parsing xmlrpc
calls. It seems as if these binaries aren't compatible with my Dell
Axim x50 handheld.

Here are a couple of links to my troubles I have had so far:

http://groups.google.com/group/comp...ecb?q=wince::strerror&rnum=1#7a7bcfd1fd2f0ecb

http://groups.google.com/group/comp...7ad?q=wince::strerror&rnum=2#cfb29f994cf837ad
 
B

Bas Wilbers

Hello

I am going to reply to this even do it is an old thread.

I don't know how to explain this correclty but I know the solution to
the Wince::Strerror error.

It is because the filesystem of windows mobile is different then you
think.
from pocketconsole I did this.

cd storage card\ruby\bin
ruby.exe hello.rb

hello.rb ruby is a file in the map "storage card\ruby\bin"
this gives me the error, what I thought at first is that there is an
error in the hello.rb file, however it means the file cannot be found.
because of the strange filesytem (it doesn't support relative paths)
you have to do this.

cd storage card\ruby\bin
ruby.exe "storage card\ruby\bin\hello.rb"

Now it will run correctly.
For me at least.

What also worked for me is this

cd storage card\ruby\bin
ruby.exe -e "require 'hello.rb'"

what strange is that in this require relative paths do work.
however if I put File.open "lalala.txt" stuff in hello.rb, then the file
is not as expected created in storage card\ruby\bin but in the root of
the ipaq.



Well I hope this is the solution of the problem for you, cause ruby on
the pda rocks (I can know because I have ruby on the pda since yesterday
:p)

btw I'm using an ipaq 1940 with windows mobile 2003 (maby SE but not
sure)

It is windows CE 4.20 according to Asset viewer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,283
Messages
2,571,409
Members
48,103
Latest member
MadieDeitz

Latest Threads

Top