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 08, 2012, 06:38:07 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Join our IRC channel: ##psp-programming on freenode
Home Help Search Shop Login Register
Digg This!
Pages: 1 ... 10 11 [12] 13
Print
Author Topic: PSP C Programming Tutorials  (Read 65319 times)
Keikura
Full Member
***

Karma: +10/-1
Offline Offline

Posts: 103
7113.06 points

View Inventory
Send Money to Keikura

View Profile
« Reply #165 on: July 03, 2008, 03:30:22 PM »

For a list of all the required packages visit:

http://wiki.ps2dev.org/psp:toolchain

When installing cygwin the main ones you want installed are grouped under debug, devel and web IIRC, make sure you don't un-check anything either and make sure everything under devel is selected. There may be some stuff under debug you might want but you probably won't need it just yet. Also make sure you've got wget and svn selected to be installed.

Getting the toolchain via svn is the best way of getting it as pre-packaged downloads of it are normally out of date. There have also been times when the toolchain has been updated but there's no news of it. My only example is of the libcurses checks when installing causing it to fail on my MacBook Pro.
« Last Edit: July 03, 2008, 03:31:55 PM by Keikura » Logged


D3V1LD0G
C/C++ Developer
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23
148.92 points

View Inventory
Send Money to D3V1LD0G


View Profile WWW
« Reply #166 on: July 03, 2008, 06:16:16 PM »

I think it is a major problem in cygwin, it checked everything the installer, and have verified that i have downloaded everything. The thing that isnt working, which isnt just for the psptoolchain is the "ls" command "short for list".
Logged

HELP ME GET AN EEE PC, AND GET YOUR OWN PRIZES

<ahref="http://www.gaminglagoon.com/?ref=263535">-->HERE<--[/url]
D3V1LD0G
C/C++ Developer
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23
148.92 points

View Inventory
Send Money to D3V1LD0G


View Profile WWW
« Reply #167 on: July 03, 2008, 08:01:43 PM »

Ok, here is exactly what it says:

Family@FamilyPC~
$ ls
bash: ls: command not found

Family@FamilyPC~
$cd psptoolchain

Family@FamilyPC~/psptoolchain
$ ls
bash: ls: command not found

Family@FamilyPC~/psptoolchain
$ ./toolchain.sh
./toolchain.sh: line 14: ls: command not found
./toolchain.sh: line 20: ls: command not found

Family@FamilyPC~/psptoolchain
$


I DONT SEE WHY IS ls command not found?

PLEASE RESPOND!!!! URGENT!!!!!!!!

OH AND I AM RUNNING VISTA COULD THAT BE A PROBLEM?
« Last Edit: July 03, 2008, 08:36:46 PM by cwn723 » Logged

HELP ME GET AN EEE PC, AND GET YOUR OWN PRIZES

<ahref="http://www.gaminglagoon.com/?ref=263535">-->HERE<--[/url]
Keikura
Full Member
***

Karma: +10/-1
Offline Offline

Posts: 103
7113.06 points

View Inventory
Send Money to Keikura

View Profile
« Reply #168 on: July 04, 2008, 04:35:11 PM »

Did you uncheck anything when selecting the packages?

If so re-add them. The best way may be to re-download the Cygwin installer and files again from scratch.
Logged
D3V1LD0G
C/C++ Developer
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23
148.92 points

View Inventory
Send Money to D3V1LD0G


View Profile WWW
« Reply #169 on: July 06, 2008, 11:45:28 PM »

Ok, i got the toolchain.sh running on an XP computer first try. Now i cant find out how to do the PSPSDK part, it says cygwin.bat should open as a word file, but mine opens as a command line like normal. What is wrong?
Logged

HELP ME GET AN EEE PC, AND GET YOUR OWN PRIZES

<ahref="http://www.gaminglagoon.com/?ref=263535">-->HERE<--[/url]
mowglisanu

C/C++ Developer
Hero Member
*

Karma: +36/-11
Offline Offline

Posts: 787
0.00 points

View Inventory
Send Money to mowglisanu


View Profile
« Reply #170 on: July 07, 2008, 12:19:51 AM »

Open cygwin.bat as a TEXT file by either right clicking on it and then selecting edit or goto openWith; and choose notepad.
Logged

Check out my:
 Audio lib
 Pmf Viewer
D3V1LD0G
C/C++ Developer
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23
148.92 points

View Inventory
Send Money to D3V1LD0G


View Profile WWW
« Reply #171 on: July 07, 2008, 07:45:56 AM »

ok, and how do  get it back to bash?
Logged

HELP ME GET AN EEE PC, AND GET YOUR OWN PRIZES

<ahref="http://www.gaminglagoon.com/?ref=263535">-->HERE<--[/url]
Keikura
Full Member
***

Karma: +10/-1
Offline Offline

Posts: 103
7113.06 points

View Inventory
Send Money to Keikura

View Profile
« Reply #172 on: July 07, 2008, 04:16:18 PM »

ok, and how do  get it back to bash?


?

All you have to do is edit the file and save it with the same name as before cygwin.bat.

Then you just have to start up cygwin by double-clicking it. Done.
Logged
D3V1LD0G
C/C++ Developer
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 23
148.92 points

View Inventory
Send Money to D3V1LD0G


View Profile WWW
« Reply #173 on: July 27, 2008, 09:23:35 AM »

Hey, is anyone else here on a vista? I tried putting the environment on a vista, and had a ton of problems, but when i moved over to my XP, i got it done within 2 hours had everything up, even the ./toolchain.sh part was done. I think there may be compatibility issues with vista or sumthing.
Logged

HELP ME GET AN EEE PC, AND GET YOUR OWN PRIZES

<ahref="http://www.gaminglagoon.com/?ref=263535">-->HERE<--[/url]
Raphael
Global Moderator
Hero Member
*

Karma: +230/-10
Offline Offline

Posts: 1431
193700.11 points

View Inventory
Send Money to Raphael


View Profile WWW
« Reply #174 on: July 27, 2008, 09:36:44 AM »

Yes there are, but those are due to Vista being suckass... if you're bound to Vista, you're best off running the toolchain in a VM emulating a Linux machine.
Logged

Don't push the river, it flows.
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
http://www.homebrew-illuminati.co.uk - serious homebrew development for all platforms
Alexander Berl
"A good mod is a combination playground monitor, priest, big brother/sister, psychiatrist, professor and more."
Mulder
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 15
809.62 points

View Inventory
Send Money to Mulder

View Profile
« Reply #175 on: July 29, 2008, 09:07:46 AM »

I'm trying to learn lesson 4. I treid everything, but everytime i get: "Image load Failed". I Copied the source and I stil get this Error. I put the PNG Image in the same folder as the EBOOT
Logged
Raphael
Global Moderator
Hero Member
*

Karma: +230/-10
Offline Offline

Posts: 1431
193700.11 points

View Inventory
Send Money to Raphael


View Profile WWW
« Reply #176 on: July 29, 2008, 03:48:12 PM »

I've had similar problems lately too. Seems like somehow the current working directory sometimes isn't set properly at the start of the application.

For a temporary fix you can try inserting the following lines directly at the start of your main(int argc, char* argv[]):
Code:
char cwd[256];
strcpy(cwd, argv[0]);
char* cwdend;
if ((cwdend=strrchr( cwd, '/' ))!=0)
{
cwdend[1] = 0;
}
sceIoChdir(cwd);
You also need to include <pspkernel.h> if you did not do so already.
Logged

Don't push the river, it flows.
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
http://www.homebrew-illuminati.co.uk - serious homebrew development for all platforms
Alexander Berl
"A good mod is a combination playground monitor, priest, big brother/sister, psychiatrist, professor and more."
BlahBlah2323
Programmer
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3
161.78 points

View Inventory
Send Money to BlahBlah2323

View Profile
« Reply #177 on: December 24, 2008, 02:33:23 PM »

I am sorry if this is too much for you. You must feel overwhelmed with all these posts asking for help. When I type "make", the following comes up:
make: pdp-config: Command not found.
makefile:15: /lib/build.mak: No such file or directory
Make: *** No rule to make target '/lib/build.mak' Stop.

Please help if you can.
Logged
mowglisanu

C/C++ Developer
Hero Member
*

Karma: +36/-11
Offline Offline

Posts: 787
0.00 points

View Inventory
Send Money to mowglisanu


View Profile
« Reply #178 on: December 24, 2008, 10:16:11 PM »

Quote from: BlahBlah2323
make: pdp-config: Command not found.
Its suppose to be "psp-config"... was that a typo or is that how it is in your makefile?
Logged

Check out my:
 Audio lib
 Pmf Viewer
Arshia001

C/C++ Developer
Sr. Member
*

Karma: +42/-41
Offline Offline

Posts: 268
1224.39 points

View Inventory
Send Money to Arshia001

View Profile
« Reply #179 on: March 14, 2009, 04:42:09 AM »

Sorry to butt in on the many questions already being asked.I couldn't think where else to post this.
I don't know if it's just me or not,but when I click on the tutorials link above each and every page,a list of something like 10-12 tutorials shows up.So I came here to ask for a link to GU tutorials when I found the full list of tutorials.Now why aren't the rest included in the page above(http://www.psp-programming.com/tutorials) ?Personally I think it's a shame that there are all these tutorials but the links are not there.Is there any special reason for this? Question
Logged

Check out this audio library:
http://www.psp-programming.com/forums/index.php/topic,4338.0.html

Thanks for all the Karma,you guys!
Pages: 1 ... 10 11 [12] 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.23 seconds with 38 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com