Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 04, 2012, 09:35:14 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Welcome to PSP-Programming.com
Home Help Search Shop Login Register
Digg This!
Pages: [1] 2 3 ... 13
Print
Author Topic: PSP C Programming Tutorials  (Read 65193 times)
Yeldarb
Miinaturvat Rules!
Administrator
Hero Member
*

Karma: +16/-3
Offline Offline

Posts: 601
4152.65 points

View Inventory
Send Money to Yeldarb


View Profile WWW
« on: May 01, 2006, 10:00:15 AM »

This is a list of all of the PSP Programming Tutorials.  Feel free to post below with any tutorials you know of and we'll add them to the list.

Yeldarb's Tutorial Series:
Lesson 01 - Setting up the Development Environment
Lesson 02 - Creating Your First Program
Lesson 03 - A Programming Primer
Lesson 04 - Simple Image Processing
Lesson 05 - Onwards and Upwards
Lesson 06 - Adding Sound
Logged



bronxbomber92
Give miinaturvat Points!
All-Around Dev
Hero Member
*

Karma: +16/-2
Offline Offline

Posts: 663
3689.59 points

View Inventory
Send Money to bronxbomber92

View Profile
« Reply #1 on: May 05, 2006, 12:18:02 PM »

thanks for these! ill be reading this in the near future!
Logged

kech
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5
0.00 points

View Inventory
Send Money to kech

View Profile
« Reply #2 on: May 05, 2006, 03:14:41 PM »

i am learning with this tutorials  Very Happy

now my first project is a port of OpenMugen
thanks Yeldarb
Logged

sorry about my poor english
cass
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2
0.00 points

View Inventory
Send Money to cass

View Profile
« Reply #3 on: May 06, 2006, 01:45:56 AM »

I have one question. Are these tuts good for me, if i dont have ANY experience in programming?
Logged
eggwonder
Full Member
***

Karma: +10/-10
Offline Offline

Posts: 181
100681.19 points

View Inventory
Send Money to eggwonder

RAWR


View Profile
« Reply #4 on: May 06, 2006, 03:15:02 PM »

I just did the 4th tutorial and its being extremely evil:

$ make
psp-gcc  -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o main.c
main.c: In function 'exit_callback':
main.c:28: warning:implicit declaration of function 'SceKernelExitGame'
psp-gcc  -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L/usr/local/pspdev/psp/sdk/lib  main.o graphics.o framebuffer.o -lpspgu -lpng -lz -lm -lpspdebug -pspdisplay -lpspage -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o hello.elf
main.o: In function 'exit_callback':
main.c:(.text+0x8): undefined reference to 'SceKernelExitGame'
collect2: ld returned 1 exit status
make: *** [hello.elf] Error 1

phew that took a while to type... ok can someone tell me whats wrong?preferably yeldarb cause its his tutorial.
Logged

nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +32/-2
Offline Offline

Posts: 1161
934.18 points

View Inventory
Send Money to nathan42100


View Profile WWW
« Reply #5 on: May 06, 2006, 05:18:32 PM »

Make sure you included all of the necessary header files. Check to make sure this is at the top of the file:
Code:
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspgu.h>
#include <png.h>
#include <stdio.h>
#include "graphics.h"
Logged

All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
dn ʎɐʍ sıɥʇ
Help support my computer projects!

eggwonder
Full Member
***

Karma: +10/-10
Offline Offline

Posts: 181
100681.19 points

View Inventory
Send Money to eggwonder

RAWR


View Profile
« Reply #6 on: May 06, 2006, 05:33:11 PM »

yea i definitely have them all i copied all the functions and such in the tutorial from the page that it said to put in. and when i tried to copile it all it made was the new main graphics and framebuffer
Logged

nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +32/-2
Offline Offline

Posts: 1161
934.18 points

View Inventory
Send Money to nathan42100


View Profile WWW
« Reply #7 on: May 06, 2006, 06:34:14 PM »

make sure psptoolchain installed correctly and you have the latest version
Logged

All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
dn ʎɐʍ sıɥʇ
Help support my computer projects!

Yeldarb
Miinaturvat Rules!
Administrator
Hero Member
*

Karma: +16/-3
Offline Offline

Posts: 601
4152.65 points

View Inventory
Send Money to Yeldarb


View Profile WWW
« Reply #8 on: May 06, 2006, 06:37:00 PM »

C is case sensitive, "SceKernelExitGame" is not the same as "sceKernelExitGame" (note the lowercase "s")
Logged

eggwonder
Full Member
***

Karma: +10/-10
Offline Offline

Posts: 181
100681.19 points

View Inventory
Send Money to eggwonder

RAWR


View Profile
« Reply #9 on: May 06, 2006, 06:56:42 PM »

ty ty ty ty ou just helped me finish tutorial 4 and taught me something about C so now i can move on to 5
Logged

nathan42100
Give miinaturvat Points!
Administrator
Hero Member
*

Karma: +32/-2
Offline Offline

Posts: 1161
934.18 points

View Inventory
Send Money to nathan42100


View Profile WWW
« Reply #10 on: May 06, 2006, 07:05:50 PM »

I never would have noticed that. Good eye Brad!
Logged

All of my work is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
dn ʎɐʍ sıɥʇ
Help support my computer projects!

eggwonder
Full Member
***

Karma: +10/-10
Offline Offline

Posts: 181
100681.19 points

View Inventory
Send Money to eggwonder

RAWR


View Profile
« Reply #11 on: May 07, 2006, 05:54:07 AM »

ok last night i decided to call it a night after finishing the 4th tutorial and now when i tried to load up the image example it always fails is there any way to fix that? Sad  Shocked
Logged

Yeldarb
Miinaturvat Rules!
Administrator
Hero Member
*

Karma: +16/-3
Offline Offline

Posts: 601
4152.65 points

View Inventory
Send Money to Yeldarb


View Profile WWW
« Reply #12 on: May 07, 2006, 05:55:13 AM »

Load it up on your PSP or compile it?

Is there an error message?
Logged

eggwonder
Full Member
***

Karma: +10/-10
Offline Offline

Posts: 181
100681.19 points

View Inventory
Send Money to eggwonder

RAWR


View Profile
...
« Reply #13 on: May 07, 2006, 06:02:09 AM »

i compiled it with no errors or warnings and when i loaded it up with bock loader evry time i tried it said "image load failed!" so the game works except the image never loads Sad
Logged

Yeldarb
Miinaturvat Rules!
Administrator
Hero Member
*

Karma: +16/-3
Offline Offline

Posts: 601
4152.65 points

View Inventory
Send Money to Yeldarb


View Profile WWW
« Reply #14 on: May 07, 2006, 06:10:10 AM »

Did you remember to put the image on your PSP into the directory with the EBOOT?
Logged

Pages: [1] 2 3 ... 13
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.188 seconds with 38 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com