forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ruby on PSP

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
raimundox



Joined: 25 Jan 2007
Posts: 2

PostPosted: Thu Jan 25, 2007 8:07 pm    Post subject: Ruby on PSP Reply with quote

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
View user's profile Send private message
stelzbock



Joined: 20 Jan 2007
Posts: 4

PostPosted: Fri Jan 26, 2007 7:24 am    Post subject: keep it up Reply with quote

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
View user's profile Send private message
raimundox



Joined: 25 Jan 2007
Posts: 2

PostPosted: Fri Jan 26, 2007 11:44 am    Post subject: Reply with quote

sorry, I updated the wrong version yesterday. now you could find the correct one here
https://rubyforge.org/tracker/index.php?func=detail&aid=8134&group_id=426&atid=1700
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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