""
All times are GMT +2. The time now is 05:19 AM.  

Go Back   PSX/PS2/PS3 Scene Newz > PlayStation2 Forums > PS2 Homebrew/Dev & Emu Scene > Official SMS Forums

Official SMS Forums Forum for discussing SMS: Simple Media System player for the ps2.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2005, 05:17 PM
EEUG EEUG is offline
Moderator
 
Join Date: Jul 2005
Posts: 1,323
CD

Programming


...Let's structure our forum a bit . Please, use this thread ONLY for questions/issues due to programming. Thank you...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-27-2005, 10:51 AM
paulodeleo's Avatar
paulodeleo paulodeleo is offline
Registered User
 
Join Date: Dec 2004
Location: Brazil
Posts: 161
Well, nobody else? So, here we go...

I don't like to just ask for new features and bug corrections all the time, and would like to try contribute in the development in some way.

I work as a web developer and have a little (very little) experience with C, but I can't setup the ps2dev enviroment correctly to even compile the hello world... Have tried about 3 different ways (from the ps2dev forums) to install the ps2sdk in my XP box and aways give up after hours trying.

What is the simpler way to setup the ps2sdk enviroment? Any real fully automated install package? What other programs do you use (compilers, text editors) to program?

So, any hints to start?

Thank you...
__________________
PS2 50001 V9 + Matrix Infinity + Maxtor 80Gb HDD = FUN!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-27-2005, 11:52 AM
EEUG EEUG is offline
Moderator
 
Join Date: Jul 2005
Posts: 1,323
...OK, sorry, I've uploaded it HERE.
Just get the archive and extract it somewhere (just note that path used for extraction does not contain spaces). There's ps2dev.bat file in the root of extracted directory. Change lines #2 and #3 in accordance to the extracted path. Save the file. Launch it from the explorer. Command window will open. Type 'make'<enter> in it. If following line will appear:

make: *** No targets specified and no makefile found. Stop.

then changes were correct and ps2dev environment is ready for use. Go to the SMS root folder. Type 'make clean'<enter>. Then 'make'<enter>. After some time and a lot of cryptic things 'bin' directory will contain 'SMS.elf' . It will be 'starting point'...

P.S. Thanks to 'emcepl' for convicing me to use 'rapidshare'

Last edited by EEUG; 12-24-2005 at 06:23 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-27-2005, 01:56 PM
emcepl emcepl is offline
Registered User
 
Join Date: Jun 2005
Posts: 66
Why don't you upp it to rapidshare.de? 50MB file limit, high-speed downloads, FREE!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-27-2005, 07:38 PM
paulodeleo's Avatar
paulodeleo paulodeleo is offline
Registered User
 
Join Date: Dec 2004
Location: Brazil
Posts: 161
Thank's for the file and guidelines EEUG! Gonna try it!
__________________
PS2 50001 V9 + Matrix Infinity + Maxtor 80Gb HDD = FUN!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-27-2005, 11:04 PM
sstorch629 sstorch629 is offline
Registered User
 
Join Date: Dec 2004
Location: OH IO
Posts: 15
Quote:
Originally Posted by EEUG
then changes were correct and ps2dev environment is ready for use. Go to the SMS root folder. Type 'make clean'<enter>. Then 'make'<enter>. After some time and a lot of cryptic things 'bin' directory will contain 'SMS.elf' . It will be 'starting point'...

Im having trouble finding the SMS root folder your talking about, Ive got everything before that to work fine, Im just having trouble finding this folder.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-28-2005, 01:23 AM
paulodeleo's Avatar
paulodeleo paulodeleo is offline
Registered User
 
Join Date: Dec 2004
Location: Brazil
Posts: 161
With the help of EEUG and Mr. Worm, I finally compiled my first elf!
Why no one made a simple guide like this to setup the ps2dev enviroment??? I really lost a lot of time trying other complicated methods recommended at the ps2dev forums.

@sstorch629:
The SMS source is not included in the file from EEUG. You have to donwload tortoisesvn from http://tortoisesvn.tigris.org/ and install. Create or choose a empty folder to store the SMS sources. Right click the folder, go to the TortoiseSVN submenu and choose Export. Paste svn://svn.ps2dev.org/ps2ware/trunk/SMS and the source will be downloaded. And follow the rest of the instrictions from EEUG.
__________________
PS2 50001 V9 + Matrix Infinity + Maxtor 80Gb HDD = FUN!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-28-2005, 02:09 AM
sstorch629 sstorch629 is offline
Registered User
 
Join Date: Dec 2004
Location: OH IO
Posts: 15
Thanks for the help, Im new to programming for ps2 (and in general) so this was a huge help. Thanks


Edit: I have everything setup, but what Im stuck at now is how to compile the make file into an elf. If someone would help it would be great. Thanks

Last edited by sstorch629; 08-28-2005 at 03:18 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-28-2005, 03:16 AM
mastaalien mastaalien is offline
v4 softmodder
 
Join Date: Nov 2004
Posts: 105
http://rapidshare.de/files/4443351/error.JPG.html
edit: mirror

sadly i get this error if i trying to compile sms

any advice?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-28-2005, 03:30 AM
Mr. Worm~~ Mr. Worm~~ is offline
Banned
 
Join Date: Oct 2004
Location: Argentina
Posts: 511
Quote:
Originally Posted by mastaalien
http://rapidshare.de/files/4443351/error.JPG.html
edit: mirror

sadly i get this error if i trying to compile sms

any advice?
Move cygwin1.dll from Windows/system32 directory, I had this error once and solve it in that way, then if you need an app that requieres it put it again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11  
Old 08-28-2005, 04:06 AM
jackielo jackielo is offline
Registered User
 
Join Date: Mar 2005
Posts: 82
OH!!!

I make my first ELF! Thanks a lot!

But why I can't compile LaunchELF?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 08-28-2005, 04:33 AM
mastaalien mastaalien is offline
v4 softmodder
 
Join Date: Nov 2004
Posts: 105
Quote:
Originally Posted by Mr. Worm~~
Move cygwin1.dll from Windows/system32 directory, I had this error once and solve it in that way, then if you need an app that requieres it put it again
oh how stupid from me, thanks mate, just compiled sms sucessfully
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 08-28-2005, 05:46 PM
sstorch629 sstorch629 is offline
Registered User
 
Join Date: Dec 2004
Location: OH IO
Posts: 15
Im still getting this error after moving cygwin1.dll out of the windows/system32 folder.
Picture

Edit: Also I got it to work once with compiling sms, so I deleted the elf and tried again and it didnt work... When I got it to work I put cygwin1.dll into the windows/system32 folder.

Last edited by sstorch629; 08-28-2005 at 05:52 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 08-29-2005, 09:05 PM
Npl Npl is offline
Registered User
 
Join Date: Dec 2004
Posts: 23
The README states that you actually debug code using MSVC, do you have a framework for running SMS in some form on Win32 ? (Or is this for stepping though algorithms)
Also, a thread of WIP would be nice, not only to keep peple informed, but to avoid having 2 people work on the same feature. (Im actually planning to get AVI-Playback more robust, currently just stops at unknown chunks)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 08-30-2005, 07:10 AM
los93sol
Guest
 
Posts: n/a
If I may make a suggestion, it would be a great idea to put together a tutorial for compiling this and setting up a project on SourceForge.net Also, if anyone has any web space, a site for the project would certainly go a LONG way. I'm still new to the PS2 homebrew scene, but have been around the Xbox scene for ages and there is a definite difference in the structure of the two scenes. I've been following/helping out with XBMC whenever I can even though I am not a programmer there are lots of things non-programmers can do to help a project. Anyway, my point it I am very excited to see this coming together and would love to see this fly and pick up the kind of dev support XBMC has, they now have over 50 developers, it would be great if all dev's were as motivated to get a project kicked off as those working on SMS. You guys have come a long way in a short amount of time. Keep it up, if there is anything I can do to help out as far as project management, please let me know. I have pretty much assumed the PM role for the Linksboks integration to XBMC for those of you who know about the Xbox homebrew scene. I am well qualified to handle this kind of support.

Another suggestion I would have is to setup an IRC channel for the project so users can start hanging out together and getting to know eachother a bit better and sharing their knowledge/helping new users who are just getting to know it. This helps get the community following the project involved a bit, the key is to keep the channel moderated. I'm sure you all know all of that already, just thought I would put it out on the table.

Regards,
Los93soL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 08-30-2005, 09:40 AM
EEUG EEUG is offline
Moderator
 
Join Date: Jul 2005
Posts: 1,323
@Npl: yes, I'm using MSVC6.0 for "stepping though algorithms". Video part of SMS is fully functional on Win32 (you'll need one extra application (DDrawSrv.exe) do display SMS's output. I wrote this application myself, so if anyone wants to use it I can share it somewhere). OK, I'll make WIP thread here .

@Los93soL: my personal opinion is that programming for the Station is rather different from XBox's one (which, I think, is almost the same as PC's programming), that's why I was so curious about it. The possible tutorial would require writing a lot about PS2 programming methods themselves first (which is quite a work). I've got my knowledge mainly from PS2 Linux Kit documentation and ps2dev's forums. About sourceforge etc.: I'll be really glad if someone will take care about it, since I don't have that much time to hang at IRCs. If there're questions - use e-mail, I'll try to give everybody an answer. Thank you for unserstanding ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 08-30-2005, 11:44 AM
Riddik's Avatar
Riddik Riddik is offline
Registered
 
Join Date: Oct 2004
Location: ITALY
Posts: 26
I'm a graphician and web designer... Can I help you? Just contact me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18  
Old 08-30-2005, 11:57 AM
EEUG EEUG is offline
Moderator
 
Join Date: Jul 2005
Posts: 1,323
@Riddik: help with what?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 08-30-2005, 11:59 AM
Riddik's Avatar
Riddik Riddik is offline
Registered
 
Join Date: Oct 2004
Location: ITALY
Posts: 26
Designing graphical interfaces for your SMS and web-designing for a possible Official SMS website...
Regards!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 08-30-2005, 12:19 PM
EEUG EEUG is offline
Moderator
 
Join Date: Jul 2005
Posts: 1,323
...for me personally ps2-scene and ps2dev is more than enough, really. About graphical interfaces: well, it would be really nice. Just take into account the fact that Station has only 32MB of RAM (badly needed for video/audio processing algorithms), so presence of nice pictures, sounds and other "gadgets" in the interface should be avoided at all costs (for example, one 48x48 icon (that used in the "Available media" menu) takes 9KB, and 32x32 icon takes 4KB). That SMS animation and gradient backgroud uses 1 32x32 icon, 1 rectange (4 vertices and 2 colors ~100 bytes) and one text string (font is taken from PS2's ROM, so its free of charge ). It sucks, I know, but main goal of SMS is play movies, not advertisement of Toyota cars . Thank you for having interest in it...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #21  
Old 08-30-2005, 12:22 PM
Riddik's Avatar
Riddik Riddik is offline
Registered
 
Join Date: Oct 2004
Location: ITALY
Posts: 26
No problema!!!
Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote