The above video goes away if you are a member and logged in, so log in now!

 Would you like to get all the newest Gaming News fromQJ.NET in your email each day? Want to learn more about the team who brings you the QJ news?

## Uhm.... Documentation of sce*() functions and such?

This is a discussion on Uhm.... Documentation of sce*() functions and such? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hiya! I finally made the step into starting to (try :o) coding for the PSP :) The SDK is installed ...

 Tweet
1. ## Uhm.... Documentation of sce*() functions and such?

Hiya!

I finally made the step into starting to (try :o) coding for the PSP :)
The SDK is installed and works fine (it seems).

I also read all the stickies ;) and searched here and on PS2DEV, but I couldn't find the folowing:

- description/documentation/line up of the sce....() functions current known to homebrew dev
(are those already fully available with the SDK, or do I have to grab some additional header files?)

- memory layout; what mem space (user, kernel, vram, e.t.c.) starts where.

- can we (=homebrew devs) access the special graphics functions (3D stuff, maybe?) of the PSP hardware?

A brief push into the right direction would be most appreciated :)

Thanx :)

2. The 3D stuff I do know:
*cough*

Hmph, it seems like the PSPGU tutorial's by skistovel redirects to the source code page. :| (and I was reading them too. )

-sce functions, uhm what do you mean? look around in the pspsdk for some samples on it.
-go into the folder C:\cygwin\usr\local\pspde v\psp\sdk\include and there you'll have all the #includes that you #include. It's sometimes good to check them for functions. (like pspctrl.h is in there, etc)

3. For a list of functions check out the SDK at http://psp.jim.sh/pspsdk-doc/

For some sce* functions, there is a big list if you look under File List -> src/user/pspthreadman.h on that site.

Good luck.

4. Hey cool, thanks :)

In the meantime I also found the SDKs includes folder *lol*

Now checking out that links :)

[EDIT]
Whoa! Good stuff at those links, thanks again :)

5. Originally Posted by Hellcat
Hey cool, thanks :)

In the meantime I also found the SDKs includes folder *lol*

Now checking out that links :)

[EDIT]
Whoa! Good stuff at those links, thanks again :)

6. There's also the documentation available at (cygwin installation directory)/usr/local/pspdev/psp/sdk/doc/html/, check the index.html there :)

7. Cool :)

Next problem:

8. pspgu is in the SDK. All the psp* libraries are in the SDK.
If you need other libraries, like libpng, libjpeg, libmad etc., check out the ps2dev.org SVN

9. Hmm, the aditional librarys are not in my version of the SDK

I got that windows installer version, linked to in one of the stickies here.

[EDIT]
Well, I looked through the SVN at ps2dev.org, but they seem to have emptied their servers.
Not much usefull there, the PSPSDK only in source format.

I really don't want to compile the whole SDK only to do some coding for the PSP....
Do I really have to?

There's no hint to compiled versions of anthing there

Not to think about Win32 executabled, even tho they mention it in the SDK's README....

10. Setup cygin/linux/whatever and install the SDK.

Those pre-compiled environments are useless.

11. OK, I'll give it a shot :)

Maybe I'll even install a Linux into a VM for it

12. Originally Posted by Hellcat
Hmm, the aditional librarys are not in my version of the SDK

I got that windows installer version, linked to in one of the stickies here.

[EDIT]
Well, I looked through the SVN at ps2dev.org, but they seem to have emptied their servers.
Not much usefull there, the PSPSDK only in source format.
You obviously looked at the wrong place or don't know how to browse through SVN repositories.

go here:
http://svn.pspdev.org/listing.php?re...%2F&rev=0&sc=0

I really don't want to compile the whole SDK only to do some coding for the PSP....
Do I really have to?

There's no hint to compiled versions of anthing there

Not to think about Win32 executabled, even tho they mention it in the SDK's README....
If you have the preinstalled environment, you shouldn't need to compile anything. All the libs should be in your /psp/libs folder. You should have everything set up already and be able to start coding.
If not, then you did something wrong.

And seriously, don't just install LINUX to get a compiler running. Even more so if you don't know LINUX from the bottom already. That's as if you're driving to the next country to buy your breakfast.

13. I flew up to Japan for breakfast once, it was pretty good. They sure do know how to have a good breakfast there.

Nah, I know Linux already ;) The idea came due to the thought that the SDK maybe likes its "native" environment more than "just" a cygwin one.... and it's a good excuse to d/l a recent Linux dist

I've also already been at he place/location you linked above, no hint for the libs that souhld be there (pspgu again) - at least not precompiled.

Anyway, I finally solved some other issues I had with compiling stuff as C++ rather than ANSI-C *yay* at least my little own "Hello me" compiles now fine as C++ "project" :)

I think, I'll do a manually re-install of the SDK from the sources in a cygwin environment like shown in the other guide I found here.
Should be worth it, the libs are all there (in the source folder)....

Let's see how that's going to work :)

15. well i know that there is a windows installer for extra libs like libpng, SDL, and etc... just goto qj.net psp section files development .... i have used it myself with the windows precompiled dev environment.

16. Originally Posted by Hellcat
I've also already been at he place/location you linked above, no hint for the libs that souhld be there (pspgu again) - at least not precompiled.
As I said, those psp* libraries are all in the SDK and not distributed singledly. If you can already compile stuff, you also have those libs. And if for some weird reason some libs are missing, just reinstall the SDK.

17. OK, this is no fun, this is really NO fun....

But there is NO way of getting this BS compiled.
It's spitting out error after error....

The toolchain craps out with some "invalid feature name: install-libbfd", the PSPSDK compilation crashes with "Fatal error: Internal Error" or "Unknown opcode" while compiling....

This is why I hate compiling stuff others made, 'cause it never works.
This is why I hat Linux - it's incompatible with ITSELF!

Is there any way of getting this compiled? Any?

I am currently trying under cygwin, fresh, virgin install....

18. When you got cygwin installed correctly, you normally just need to run the toolchain script. Therefore, download from here: http://ps2dev.org/psp/Tools/Toolchai...chain-20060120
Unzip to a folder in your cygwin home directory and then do a svn update before running the toolchain.sh.
If you get errors there, then you didn't install cygwin properly. Do again, following the steps in one of the several tutorials.

19. Running full install (incl. cygwin) for the 4th time right now....

Well, at least it got further as it ever has been so far.... hope it keeps it up....

20. This is the long way but I feel the best way, compiled SDK do the job, but this gives you the newest and is setup as close to *nix as you can get.

Install Cygwin http://www.cygwin.com/ and add the extras in the list below.

Code:
autoconf2.1
automake1.9
gcc
gcc-g++
make
patchutils
subversion
wget
nano

Now run Cygwin (witch should be installed in c:\cygwin\ if not you will know where, and from now on x:\ is c:\ or what ever you used)

Edit .bash_profile:

Code:
nano .bash_profile

Code:
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk" export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="$PATH:$PSPPATH"
ctrl+x > y > return

or edit with WordPad in x:\cygwin\home\username (for later use, typing 'cd ~/' will take you there)

Code:
mkdir /usr/local/pspdev
Code:
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
Code:
cd psptoolchain
Code:
./toolchain.sh
Test:

Code:
cd /usr/local/pspdev/psp/sdk/samples/gu/cube
Code:
make
or
Code:
make kxploit
Any libs needed can be added by:
Code:
cd ~/
If you like:

Code:
mkdir ~/LIBS
Code:
cd ~/LIBS
Code:
svn co svn://svn.ps2dev.org/psp/trunk/jpeg/
or zlib libpnd ect.
Code:
make
Code:
make install
some say SDL needs "WANT_AUTOMAKE=1.9" but I never had any problems:

Code:
cd ~/
Code:
svn co svn://svn.pspdev.org/psp/trunk/SDL
Code:
WANT_AUTOMAKE=1.9 ./autogen.sh LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" Code: ./configure --host psp --prefix=$(psp-config --psp-prefix)
Code:
make
Code:
make install

FYI:

Code:
./toolchain.sh -p
Will do just do a SDK update

Edit:

If you don't know, a Tip (right click)

21. *YAY*

I think I finally managed to get everything installed, compiled and set up :)
At least it looks like all libs are present (200+ MB size of the SDK folder support that assumption :)) and my sources compile fine.

I even managed to MC compiled in my cygwin environment.
Now I browse my Windooze PC with the best filemanager of all times

OK, now ahead to the libgu stuff, making some cubes floating on screen :)

Thanx for all the help from everyone :)

BTW: Yep, I know the little "Mark" trick on console windows :)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

All times are GMT -8. The time now is 07:32 AM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY