C/C++ Programming Help Thread
This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; chrisp....i'm fairly certain the following line should be placed underneath psp_module_info: PSP_MAIN_THREAD_ATTR(THRE AD_ATTR_USER) <--i think you should only need THREAD_ATTR_USER ...
-
05-12-2008, 03:39 PM #8521QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
chrisp....i'm fairly certain the following line should be placed underneath psp_module_info:
PSP_MAIN_THREAD_ATTR(THRE AD_ATTR_USER) <--i think you should only need THREAD_ATTR_USER for this app only but someone correct me if wrong
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
05-12-2008, 06:09 PM #8522QJ Gamer Bronze
- Registriert seit
- Aug 2007
- Ort
- Everywhere
- Beiträge
- 206
- Points
- 5.826
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Hmm... weird, I read somewhere today to put :
Zitat von slicer4ever
PSP_MAIN_THREAD_ATTR(PSP_ THREAD_ATTR_USER);
under it, but it didn't work either. I tried the one you suggested also, but still no go.
Do you think it could be something with my sdk or something like that?
-
05-12-2008, 09:14 PM #8523
Instead of pspdebug.h use stdio.h(for the proper printf) as far as I know pspdebug.h doesn't work well in user mode (but I could be wrong).
-
05-12-2008, 09:25 PM #8524It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
You are wrong. The proper printf won't do anything, especially because the defines will make you unable to access it.
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
05-13-2008, 02:16 AM #8525
chrisp-- well there's nothing wrong with your code it compiled and ran fine try putting it in the GAME371 folder maybe thats your problem(again I might be wrong I ran it on psplink).
-
05-13-2008, 11:53 AM #8526
Im new at programming for the psp and i want to make my own app/game (not sure yet) and i was looking at some of the Libraries out on dl.qj and i saw the psp dialog box library. i thought i might look at that and see what it could do. so i downloaded it and i unzipped and was lost. i realized i had no idea where i was supposed to put the .h and .c files. i have made the simple programs like diplaying text graphics and mp3 playing but havent gone any farther.
i just wanted to know how im supposed to install custom libraries.
i found the dialog library here:
http://dl.qj.net/PSP-Dialogs-library...5322/catid/202
thanks for the help
-
05-13-2008, 02:22 PM #8527words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
3.xx homebrew you must run the prx in psplink... (sorry if that's irrelevant, i dont want to read the entire situation :P)
Zitat von bnc9

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
05-14-2008, 06:34 AM #8528Lua guy
- Registriert seit
- Jan 2008
- Ort
- Wales, cardiff
- Beiträge
- 1.442
- Points
- 11.690
- Level
- 71
- My Mood
-
- Downloads
- 0
- Uploads
- 0
i was wondering does CSP development studio has an png librarie?
-
05-14-2008, 06:58 AM #8529
CSP should have it but you're better off not using it and installing the toolchain with cygwin(it takes a few trys but I got it on my first) because CSP contains an old version of the SDK and it's difficult to use (no offense ManiacX :) .
-
05-14-2008, 07:44 AM #8530Lua guy
- Registriert seit
- Jan 2008
- Ort
- Wales, cardiff
- Beiträge
- 1.442
- Points
- 11.690
- Level
- 71
- My Mood
-
- Downloads
- 0
- Uploads
- 0
How do you install the Toolchain with cygwin?
-
05-14-2008, 09:26 AM #8531
[Guide] PSP Development Environment Setup Tutorial It's also stickied to the PSP Development forum
-
05-14-2008, 12:31 PM #8532
What's the difference between
andCode:sceDisplayWaitVblank
Which one is for what?Code:sceDisplayWaitVblankStart

PS: I read Header definition.
-
05-14-2008, 01:07 PM #8533It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Just a guess, but one probably waits for a vblank to finish, and the other waits for a vblank to start.
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
05-15-2008, 10:36 AM #8534Lua guy
- Registriert seit
- Jan 2008
- Ort
- Wales, cardiff
- Beiträge
- 1.442
- Points
- 11.690
- Level
- 71
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Can you Change
So u could instead haveCode:SceCtrlData pad;
Then you'd would putCode:SceCtrlData menupad
I think that would be right :? im still learning C.Code:if (padmenu.Buttons & PSP_CTRL_DOWN) { printf("Your Pressing Down\n"); }
-
05-15-2008, 11:00 AM #8535It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Well, if you keep your variable names straight :P
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
05-15-2008, 04:19 PM #8536
Achievements:
- Registriert seit
- May 2008
- Beiträge
- 3
- Points
- 2.505
- Level
- 30
- Downloads
- 0
- Uploads
- 0
I am having a problem getting lightmp3 libraries to compile. I have libogg installed but I still get
I think it may be the makefile.Code:/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_read_callback_wrapper': ogg_decoder_aspect.c:(.text+0x160): undefined reference to `ogg_sync_buffer' /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_finish': ogg_decoder_aspect.c:(.text+0x33c): undefined reference to `ogg_sync_clear' ogg_decoder_aspect.c:(.text+0x350): undefined reference to `ogg_stream_clear' /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libFLAC.a(ogg_decoder_aspect.o): In function `FLAC__ogg_decoder_aspect_init': ogg_decoder_aspect.c:(.text+0x36c): undefined reference to `ogg_stream_init' ogg_decoder_aspect.c:(.text+0x394): undefined reference to `ogg_sync_init' collect2: ld returned 1 exit status make: *** [softwareplayers.elf] Error 1
Any help is great!Code:TARGET = softwareplayers OBJS = players/pspaudiolib.o players/id3.o players/mp3player.o players/oggplayer.o \ players/mp3playerME.o players/aa3playerME.o players/flacplayer.o players/player.o \ system/clock.o main.o #To build for custom firmware: BUILD_PRX = 1 PSP_FW_VERSION=371 CFLAGS = -O3 -frename-registers -ffast-math -fomit-frame-pointer -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) LIBDIR = LDFLAGS = LIBS= -lFLAC -lm -lmad -lvorbisidec -lpsppower -lpspaudiolib -lpspaudio -lpspaudiocodec -lpspaudio_driver EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Software players test PSPSDK=$(shell psp-config --pspsdk-path) include $(PSPSDK)/lib/build.mak
Thanks,
Justin
-
05-16-2008, 01:40 PM #8537QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
But that doesn't make any sense...
Zitat von Archaemic
:Argh:Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)
-
05-16-2008, 02:59 PM #8538QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Actually it does, one waits until the rendering starts (i.e when VBlank finishes), the other waits until the the rendering finishes (i.e. when VBlank starts).
Zitat von SuperBatXS
Read: http://en.wikipedia.org/wiki/Vertical_blanking_interval[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
05-16-2008, 06:18 PM #8539Bush Programmer

- Registriert seit
- Nov 2005
- Beiträge
- 3.658
- Points
- 60.149
- Level
- 100
- Downloads
- 0
- Uploads
- 0
I think he means because the start and finish is the same time,
ie, start of the next one is the finish of the last one.
I guess this isn't the case because a frame has to sit on the screen for some time so you see it.
-
05-16-2008, 07:13 PM #8540QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
It isn't. Here is some further reading material:
Zitat von Art
http://www.atariage.com/2600/program.../02breach.html[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
05-18-2008, 09:35 AM #8541QJ Gamer Green
- Registriert seit
- May 2008
- Beiträge
- 13
- Points
- 2.654
- Level
- 31
- Downloads
- 0
- Uploads
- 0
i alredy have code wrriten in C++ but i dont know how to compile it to EBOOT.PBP
and one more question how to install cygwin
-
05-18-2008, 09:44 AM #8542QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Follow this guide. :)
-
05-19-2008, 07:23 AM #8543QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Lol...i forgot how to update my sdk...could someone remind me how? My social life is killing me...

I tried ./toolchain.sh, but i get an to Set PSPDev before continuing??Geändert von SuperBatXS (05-19-2008 um 07:36 AM Uhr)
Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)
-
05-19-2008, 05:51 PM #8544lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
./toolchain.sh 3 6
-
05-20-2008, 01:51 AM #8545
I need some help implementing sound in PSP pileup, ive tried using libmad but my compiler seems to not like it, it comes up with tonnes of errors e.g MAD_BUFFER_GUARD undeclared etc etc, it keeps on going on saying that everything is undeclared. if it helps i'm using cygwin from CSP and am using a slightly out of date libmad. i cant update because cygwin doesnt like this either.... help?
-
05-20-2008, 06:34 AM #8546It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Did you include the proper headers...?
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
05-20-2008, 08:50 AM #8547
- Registriert seit
- Apr 2006
- Beiträge
- 28
- Points
- 4.137
- Level
- 40
- Downloads
- 0
- Uploads
- 0
If anyone here has the patience to tutor(read: answer some questions and point me in the right direction) a new coder in the ways of C and using OSLib, I would graciously appreciate the help. I'm afraid that with 855 pages in this thread, there's just too much here for me to wade through.
You can contact me by:
AIM \\ Llanowyn
MSN + Email \\ [email protected]
Thank you for your help!
Edit: Firefox double posted for me V_V.Geändert von Llanowyn (05-20-2008 um 08:53 AM Uhr) Grund: Automerged Doublepost
-
05-20-2008, 12:46 PM #8548QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Hey,
I tried to update my SDK, but i get an error that i don't have PSPDEV installed...what should i do?Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)
-
05-20-2008, 12:48 PM #8549QJ Gamer Platinum
- Registriert seit
- Feb 2006
- Ort
- National Front Disco
- Beiträge
- 13.057
- Points
- 66.627
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Do you even have the PSP toolchain installed?
-
05-20-2008, 12:53 PM #8550QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
I "svn"ed it; i have it downloaded; i can cd into it. Obviously, my cygwin is working because i can compile.
Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum