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 

Graphics samples work, but not text, like hello.

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



Joined: 05 Jul 2005
Posts: 19

PostPosted: Tue Jul 05, 2005 9:46 am    Post subject: Graphics samples work, but not text, like hello. Reply with quote

I am able to compile and run teapot and cube, but something like hello or pad_example will compile, but it hangs on my ps2 when I try to run the elf.

Running on linux. ee-gcc ver shows 3.2.2. iop-ee ver shows 2.8.1-ps2dev.

More details if you need them, but I'm hoping I'm doing something fairly common. I am looking for the answer by searching, but any tips will help me out.

Cheers
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jul 05, 2005 9:53 am    Post subject: Reply with quote

First of all, your IOP compiler seems very old. Are you using that version for a specific purpose?

Second, what version of ps2link and client are you using?
Back to top
View user's profile Send private message Visit poster's website
hexperience



Joined: 05 Jul 2005
Posts: 19

PostPosted: Tue Jul 05, 2005 11:38 am    Post subject: Reply with quote

Hi, thanks very much for your reply.

I ran the toolchain-oldiop.sh to make sure that I wasn't posting without trying that first. Of course that seems to have been the wrong thing to do.

I'm not using ps2link at all. Using sneeker net and a usb pen drive.

I don't think I did the setup very well. I also don't know how to update from csv.

It's been awhile since I did any C so I'm a bit rusty. But programming the PS2 has got my excitement level up!

Thanks again.
Hex.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jul 05, 2005 11:48 am    Post subject: Reply with quote

Ahhh, no ps2link eh? Try just using scr_init() and scr_printf().
Back to top
View user's profile Send private message Visit poster's website
hexperience



Joined: 05 Jul 2005
Posts: 19

PostPosted: Tue Jul 05, 2005 3:04 pm    Post subject: Reply with quote

So would this be considered the minimum includes?
Code:
#include <debug.h>
                                                                                                                                               
int main()
{
   init_scr();
   scr_printf("Hello, world!\n"); // hello world in the screen
   return 0;
}


I get this error;

/usr/local/ps2dev/ps2sdk/ee/include/debug.h:23: parse error before "u32"

I guess I should start fresh again with a fresh install of Linux and reinstall the toolchains. Can you point me at a page for the use of the CSV update?

Thanks very much,
Hex.
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Tue Jul 05, 2005 4:08 pm    Post subject: Reply with quote

before debug
#include "tamtypes.h"
Back to top
View user's profile Send private message Visit poster's website
hexperience



Joined: 05 Jul 2005
Posts: 19

PostPosted: Tue Jul 05, 2005 8:55 pm    Post subject: Reply with quote

Thanks! That, plus adding -ldebug to the EELIBS in the Makefile did the trick.

Cheers
Hex.
Back to top
View user's profile Send private message
hexperience



Joined: 05 Jul 2005
Posts: 19

PostPosted: Tue Jul 05, 2005 10:13 pm    Post subject: Reply with quote

ooPo wrote:
First of all, your IOP compiler seems very old. Are you using that version for a specific purpose?


Does the IOP now use 3.2.2 as well? I read in the doc's on your site that IOP uses a different version? I see that the doc file is marked Jan. 2004.

If I re-run the normal toolchain.sh will ip update and overwrite the old IOP version?

Thanks again!
Hex.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jul 05, 2005 11:50 pm    Post subject: Reply with quote

The latest version of iop-gcc is based upon gcc-3.2.2, same as ee-gcc. There are still some quirks and other strangeness that happen sometimes so the older iop-gcc is still offered in case the user wants to use that instead.

If you rerun toolchain.sh, it should overwrite the older version, yes.
Back to top
View user's profile Send private message Visit poster's website
hexperience



Joined: 05 Jul 2005
Posts: 19

PostPosted: Mon Jul 11, 2005 11:41 am    Post subject: Reply with quote

Thanks very much ooPo.

I am now able to run the samples in the PS2SDK from ps2link. I even impressed my 5 year old son by "making a paper airplane". Which was two triangles slightly bent.

I wanted to ask about the other lib's that are around. Where can I find, for example, the SBV lib, if there is one. I try to compile some other sample code and it tells me it's missing.

Did I miss a step?

Is PS2SDK kind of an add on to the main lib's of PS2DEV? If so, I guess I need to correctly get that installed.

Do I need to run a seperate toolchain for that?

Again, thanks very much for your patience.

Cheers
Hex.
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 -> PS2 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