Search found 50 matches

by bulb
Fri Jun 06, 2008 11:00 pm
Forum: PSP Development
Topic: why are u32/uint32_t/SceUInt32 defined as longs?
Replies: 18
Views: 5372

Actually, neither is correct. The size of types in C/C++ are not fixed - the implementation is free to choose whatever size it wants. Hence the use of sizeof. This is what Java and C# "fixed". :) I once worked with a Z80 compiler that had short defined as 1 byte (8 bits) long, and on one e...
by bulb
Thu Dec 27, 2007 7:36 pm
Forum: PSP Development
Topic: Begin with PSP development.
Replies: 7
Views: 3560

pspgl does not include complete OpenGL API, it mainly focuses on OpenGL/ES (with extensions) subset of OpenGL and excludes esoteric stuff of OpenGL API. I recommend reading documentation carefully to find out the differences between each version. The port of SDL is really great, by peeking at the so...
by bulb
Thu Dec 13, 2007 6:15 pm
Forum: PSP Development
Topic: Debugging SDL apps
Replies: 8
Views: 4932

Tyranid, Thanks for explanation of redirection, I've already known that much. However I do not understand why it doesn't work without psplink (launching directly from XMB). Seems I'll be using custom SDLmain from now on. :) If the app overruns the stack and kernel kills the thread, is it possible to...
by bulb
Wed Dec 12, 2007 7:52 pm
Forum: PSP Development
Topic: Debugging SDL apps
Replies: 8
Views: 4932

Tyranid, Actually, I am using kernel mode (default SDLmain). I have read somewhere it is required to redirect output. Now that I think of it, I guess using these CRT routines shouldn't require kernel mode, only installing exception handler might (which psplink installs anyway). I'll switch to the us...
by bulb
Wed Dec 12, 2007 2:03 am
Forum: PSP Development
Topic: Debugging SDL apps
Replies: 8
Views: 4932

Jim, I exit the game either by returning from main or by using exit (home button). You can check that the redirection doesn't work (from XMB) with something as simple as Hello World app: #include <stdio.h> #include <SDL.h> #ifdef __cplusplus extern "C" #endif int main&#40;int argc, cha...
by bulb
Tue Dec 11, 2007 8:13 pm
Forum: PSP Development
Topic: Debugging SDL apps
Replies: 8
Views: 4932

Debugging SDL apps

Hi, I have some issues regarding debugging SDL apps. I know that linking with SDLmain redirects stdout and stderr to two files in the current directory. Now, if I run SDL app via PSP XMB these files are created where the EBOOT.PBP is placed, but they are empty (size 0), eventhough I use fprintf/prin...
by bulb
Sat Oct 06, 2007 10:03 am
Forum: PSP Development
Topic: Hi! Requesting some help...
Replies: 7
Views: 2857

I wonder how hard did you really try... Anyway, in order to get valuable help, you should provide as much information as possible. For instance, what OS do you use? I assume you are on Windows. Well, you can save your trouble by downloading pre-installed/configured toolchain (search for devkitPSP at...
by bulb
Fri Oct 05, 2007 2:17 am
Forum: PSP Development
Topic: numbered psplibraries: by name or by number
Replies: 3
Views: 1549

Actually, it is as simple as checking the shell script you are running. Or even better, check the naming of script inside psplibraries/scripts directory.

So, SDL is no. 17 and CURL is not yet available using psplibraries script.

Cheers.
by bulb
Tue Oct 02, 2007 3:21 pm
Forum: PSP Development
Topic: PSP LINK and Slim
Replies: 18
Views: 5740

Check SVN before you post. :) It's obvious he was bothered enough...
by bulb
Tue Oct 02, 2007 6:50 am
Forum: PSP Development
Topic: latest Toolchain
Replies: 1
Views: 1074

The latest toolchain is in the Subversion. Type:

svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain

The script will download and build everything else...
by bulb
Mon Oct 01, 2007 8:45 pm
Forum: PSP Development
Topic: trying to execute the toolchain
Replies: 8
Views: 3638

Agreed. What FreePlay said is that everything to create PSP software is built, so you can just ignore that error (as if toolchain build completed successfully). Though, if you would like to use psplink, libusb package is necessary to be installed and/or well configured. Anyway, IMO building/installi...
by bulb
Mon Oct 01, 2007 7:54 pm
Forum: PSP Development
Topic: Help to make a alarm
Replies: 1
Views: 1035

You should better define what do you mean by the term alarm. The term is used in both CS and IT for various things, although I believe you are looking for something that does not belong to neither CS nor IT category. Better yet, you should really try to implement the "alarm" on a desktop s...
by bulb
Mon Oct 01, 2007 5:32 pm
Forum: PSP Development
Topic: trying to execute the toolchain
Replies: 8
Views: 3638

jsharrad is right, either you are missing libusb or libusb is installed in the directory, where GNU dev tools don't look to. As for the environment variables, setting them at the command prompt or inside (convenient) profile file is the same. Although I would rather use ~/.bash_profile or ~/.profile...
by bulb
Mon Oct 01, 2007 8:12 am
Forum: PSP Development
Topic: trying to execute the toolchain
Replies: 8
Views: 3638

Are you sure you are using bash shell? Type: echo $SHELL

Also, try to set environment variables at the command prompt.
by bulb
Mon Oct 01, 2007 2:53 am
Forum: PSP Development
Topic: [ solved ] more toolchain problems under OsX
Replies: 6
Views: 2156

It really seems that the improper assembler is being used, although I have no idea why. Check the file: psptoolchain/build/gcc-4.1.0/build-psp/gcc/as The content of this file is: #!/bin/sh exec /usr/local/pspdev/bin/psp-as "$@" Also, the error log will be more informative if you type make ...
by bulb
Mon Oct 01, 2007 2:05 am
Forum: PSP Development
Topic: problem compiling toolchain under Mac Os X
Replies: 10
Views: 4259

You needn't install MacPorts. They are basically the same, I was just not sure which directory DP uses for installation packages. Anyway, build of pspsh works 100% now, you'll just have to apply the changes for the remotejoy (by following instructions on http://forums.ps2dev.org/viewtopic.php?t=8918...
by bulb
Sat Sep 29, 2007 7:58 pm
Forum: PSP Development
Topic: problem compiling toolchain under Mac Os X
Replies: 10
Views: 4259

paraita, Ok, I had exactly the same problem - compiler is using BSD readline headers instead of the GNU ones. I have used MacPorts to download/install required packages. It is essentially the same as DarwinPorts. Here's the solution to your problem: 1. Check if you have GNU readline package installe...
by bulb
Fri Sep 28, 2007 12:11 am
Forum: PSP Development
Topic: problem compiling toolchain under Mac Os X
Replies: 10
Views: 4259

StrmnNrmn didn't have an issue with the 9th step of psptoolchain script, at least he didn't make a comment about it. :)
by bulb
Thu Sep 27, 2007 11:38 pm
Forum: PSP Development
Topic: problem compiling toolchain under Mac Os X
Replies: 10
Views: 4259

I don't remember having to deal with such weird error messages. Go to psptoolchain/build/psplinkusb/pspsh/ directory. Type: make clean Next, type: make See if it compiles, if not, send me the output of that 2nd make command. Also, type: g++ --version This is the output of my C++ compiler version: i6...
by bulb
Wed Sep 26, 2007 6:21 pm
Forum: PSP Development
Topic: problem compiling toolchain under Mac Os X
Replies: 10
Views: 4259

I have only recently built psptoolchain on Mac. See: http://forums.ps2dev.org/viewtopic.php? ... highlight=

BTW, if you have searched the forum, you would've found that...
by bulb
Fri Sep 21, 2007 4:37 am
Forum: PSP Development
Topic: SDL prx giving me 0x8002013C
Replies: 2
Views: 1341

Tyranid, Yes, I know about the age of the code - it was last updated on December 2005! :) Actually I was linking directly SDL_psp_main.c, because I didn't want to rebuild SDL every time I change something in that file. Now, I removed everything (update thread creation, etc.), having very simple main...
by bulb
Fri Sep 21, 2007 1:28 am
Forum: PSP Development
Topic: Where does SDL store the images?
Replies: 1
Views: 1093

I believe it depends whether you set SDL_SWSURFACE or SDL_HWSURFACE in SDL_SetVideoMode().

You can always check the sources to be 100% sure. :)
by bulb
Thu Sep 20, 2007 6:22 pm
Forum: PSP Development
Topic: SDL prx giving me 0x8002013C
Replies: 2
Views: 1341

SDL prx giving me 0x8002013C

Hi, I have 3.30 OE. I want to use SDL in my prx, but it is always giving me SCE_KERNEL_ERROR_LIBRARY_NOTFOUND error. I have built one of the test SDL programs using the build system of tyranid's template prx. When I build the same program as kxploit PBP and put it in GAME150, it works. Also, templat...
by bulb
Mon Sep 10, 2007 8:46 pm
Forum: PSP Development
Topic: psptoolchain under Mac OS X
Replies: 2
Views: 2569

I haven't tried XCode yet, had to solve a problem with usbhostfs_pc first. Will post how XCode fares.
by bulb
Mon Sep 10, 2007 8:45 pm
Forum: PSP Development
Topic: PSPLink won't connect to usbhostfs_pc on Mac OS X
Replies: 7
Views: 3673

Yes, it is. After a chat with Tyranid on IRC I have found out that MacPorts uses buggy libusb. Everything works now and life is beautiful. :)
by bulb
Sun Sep 09, 2007 7:55 pm
Forum: PSP Development
Topic: PSPLink won't connect to usbhostfs_pc on Mac OS X
Replies: 7
Views: 3673

Are you sure? I hate updating firmware of PSP... Seems strange, because everything else runs fine on the PSP side.
by bulb
Sun Sep 09, 2007 5:04 pm
Forum: PSP Development
Topic: psplinkusb failed
Replies: 4
Views: 2378

You are either missing libsdl or libsdl is not installed in /usr directory. For the latter change build/psplinkusb/Makefile.clients or explicitly make tools/remotejoy/pcsdl.
by bulb
Sun Sep 09, 2007 4:59 pm
Forum: PSP Development
Topic: PSPLink won't connect to usbhostfs_pc on Mac OS X
Replies: 7
Views: 3673

I believe verbose outputs "Accepting async connection" messages, while the horde of "Connected to device" messages always fills the terminal window, even if I execute usbhostfs_pc without any options.
by bulb
Sun Sep 09, 2007 8:56 am
Forum: PSP Development
Topic: PSPLink won't connect to usbhostfs_pc on Mac OS X
Replies: 7
Views: 3673

PSPLink won't connect to usbhostfs_pc on Mac OS X

I have the latest toolchain/psplink, libusb 0.1.12 (via Macports), OE-3.30 and Mac OS X. If I type "sudo usbhostfs_pc -g -v" I get the following output: USBHostFS (c) TyRaNiD 2k6 Built Sep 8 2007 17:08:05 - $Revision: 2300 $ Connected to device Connected to device Connected to device Conne...
by bulb
Sun Sep 09, 2007 1:57 am
Forum: PSP Development
Topic: psptoolchain under Mac OS X
Replies: 2
Views: 2569

psptoolchain under Mac OS X

Hi, I have recently acquired a Macbook and wanted to start some PSP development on it. I was using already built pspdevkit on my Windows machine before, so I was totally new to the building process of PSP SDK. I have used nice instructions on http://www.ragnaru.com/, though I could not complete buil...