 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
raimundox
Joined: 25 Jan 2007 Posts: 2
|
Posted: Thu Jan 25, 2007 8:07 pm Post subject: Ruby on PSP |
|
|
Hi guys, I finished a quick hack to ruby 1.8.5-p12 yesterday, and made the following script run on my PSP:
#some basic ruby
puts '------ some basic ruby -------'
puts
def say_goodnight(name)
"Good night, #{name}"
end
puts say_goodnight("PSP")
#array and hashes
puts
puts '------ array and hashes ------'
puts
a = %w{ ant bee cat dog elk}
a.each {|x| print x + ' '}
puts
inst_section = {
'cello' => 'string',
'clarinet' => 'woodwind',
'drum' => 'percussion',
'oboe' => 'woodwind',
'trumpet' => 'brass',
'violin' => 'string'
}
puts "inst_section['cello'] = #{inst_section['cello']}"
puts "inst_section['oboe'] = #{inst_section['oboe']}"
puts "inst_section['bassoon'] = #{inst_section['bassoon']}"
you could find the patch which I submitted here :
https://rubyforge.org/tracker/index.php?func=detail&aid=8134&group_id=426&atid=1700 |
|
| Back to top |
|
 |
stelzbock
Joined: 20 Jan 2007 Posts: 4
|
Posted: Fri Jan 26, 2007 7:24 am Post subject: keep it up |
|
|
Great work, I'd like to see ruby on psp, keep it up.
I tried to compile your patch, but got followin errors:
psp-gcc -I../.. -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_
-c -o main.o main.c
psp-gcc -I../.. -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_ -
L../.. -L. -L/usr/local/pspdev/psp/sdk/lib main.o -lruby -lm -lpspdebug -lpspd
isplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lps
pnet_resolver -lpsputility -lpspuser -lpspkernel -o rubytest.elf
../../libruby.a(file.o): In function `chown_internal':
file.c:(.text+0x14b8): undefined reference to `chown'
../../libruby.a(file.o): In function `rb_file_truncate':
file.c:(.text+0x2190): undefined reference to `ftruncate'
Maybe they are missing in psp.c ? |
|
| Back to top |
|
 |
raimundox
Joined: 25 Jan 2007 Posts: 2
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|