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 11, 2012, 01:44:06 AM *
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]
Print
Author Topic: CYGWIN installing help(NOOB)  (Read 1879 times)
caliber III
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4
277.31 points

View Inventory
Send Money to caliber III

View Profile
« on: March 02, 2008, 08:48:53 AM »

okay, I have lots of questions about installing CYGWIN:

1.after selecting the internet page to download the stuff(the part where you have to change "devel"
to "install") I don't understand the "wget" part.

-it says "1.10.2-2" and there are two squares, left one already checked, the right one in blank.

-when you click the numerical codes it changes to "1.10.2-1".

-and when you click it again it changes to "skip".

Which I have to use and which square has to be checked?

2.does the "main.c" thing is a file or a directory?

*from here on are questions about making your first program.

3.when making the program, where exactly do you paste it or write the program?

4.and I really don't understand anything about the "makefile"(which progam I should use and all that stuff).


I would really appreciate some help since I always wanted to make my own applications. I don't know, maybe other people have the same questions as I.

Logged


BadBoy_
PSP Dev
C/C++ Developer
Sr. Member
*

Karma: +14/-23
Offline Offline

Posts: 290
5774.81 points

View Inventory
Send Money to BadBoy_


View Profile WWW
« Reply #1 on: March 02, 2008, 09:36:54 AM »

maybe you should learn how to program for PC first
it is a lot easier
Logged

cdesseno
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 35
1840.05 points

View Inventory
Send Money to cdesseno

View Profile
« Reply #2 on: March 02, 2008, 09:40:05 AM »

Quote
1.after selecting the internet page to download the stuff(the part where you have to change "devel"
to "install") I don't understand the "wget" part.
You have to select 1.10.2-2, it is the version (you have to select the last one).

Quote
2.does the "main.c" thing is a file or a directory?
It's a file.

Quote
3.when making the program, where exactly do you paste it or write the program?
In the main.c

Quote
4.and I really don't understand anything about the "makefile"(which progam I should use and all that stuff).

The makefile it's another file in the same directory you must create (Makefile). To compile it you have to cd to your project dir and type make.
Logged
caliber III
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4
277.31 points

View Inventory
Send Money to caliber III

View Profile
« Reply #3 on: March 03, 2008, 05:11:40 PM »

Hey, now I get it!Thanks!.............oh, umm, where do you hit the karma+ so I can give you?
Logged
Keikura
Full Member
***

Karma: +10/-1
Offline Offline

Posts: 103
7113.06 points

View Inventory
Send Money to Keikura

View Profile
« Reply #4 on: March 04, 2008, 01:29:33 AM »

It's the applaud and smite links just below where it states your +/- karma.
Logged
caliber III
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4
277.31 points

View Inventory
Send Money to caliber III

View Profile
« Reply #5 on: March 04, 2008, 01:59:54 PM »

Ok, still having problems. when looking for "./toolchain.sh" it says this:


ERROR: Set $PSPDEV before continuing.
../depends/check-pspdev.sh: Failed.


What exactly do I have to do?


Logged
Keikura
Full Member
***

Karma: +10/-1
Offline Offline

Posts: 103
7113.06 points

View Inventory
Send Money to Keikura

View Profile
« Reply #6 on: March 04, 2008, 02:49:55 PM »

You have to set the environment variable PSPDEV.

Here is an example of how I set mine on my MacBook Pro...

Code:
export PSPSDK=/usr/local/pspdev/psp/sdk
export PSPDEV=/usr/local/pspdev
export PSPPATH=$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin
export PORTPATH=/opt/local/bin:/opt/local/sbin
export PATH=$PORTPATH:/bin:/sbin:/usr/bin:/usr/sbin:$PSPPATH

Logged
caliber III
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4
277.31 points

View Inventory
Send Money to caliber III

View Profile
« Reply #7 on: March 05, 2008, 10:12:56 AM »

could I get some step-by-step instructions please? Sad
Logged
Keikura
Full Member
***

Karma: +10/-1
Offline Offline

Posts: 103
7113.06 points

View Inventory
Send Money to Keikura

View Profile
« Reply #8 on: March 05, 2008, 11:19:24 AM »

I can't remember exactly which one works in Cygwin but this seems the most likely...

Code:
set PSPDEV=C:/cygwin/usr/local/pspdev
set PATH=%PATH%;%PSPDEV%/bin

When you run Cygwin it does it via a file called cygwin.bat, use the shortcut to it in the start menu and go to the folder where it is located, by right-clicking and selecting go to location or something to that effect. Edit it cygwin.bat by adding the above lines to it. Before this line...

Code:
bash --login -i

That should be about it, I'm not sure I got my syntax right for the set PATH... but I'm more used to doing this on Mac OS X/Unix and Linux rather than Windows/Cygwin.
« Last Edit: March 05, 2008, 11:22:05 AM by Keikura » Logged
cruisx
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 10
739.27 points

View Inventory
Send Money to cruisx

View Profile
« Reply #9 on: March 08, 2008, 07:20:49 PM »

Ok, still having problems. when looking for "./toolchain.sh" it says this:


ERROR: Set $PSPDEV before continuing.
../depends/check-pspdev.sh: Failed.


What exactly do I have to do?




im getting the same error, and i have no idea what to do.
Logged
Pages: [1]
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.333 seconds with 34 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com