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 10, 2012, 01:45:34 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 2 3 [4]
Print
Author Topic: The quickest and easiest way to set up your environment on Windows  (Read 21106 times)
razzlegames
Full Member
***

Karma: +10/-0
Offline Offline

Posts: 185
10583.50 points

View Inventory
Send Money to razzlegames
Art, Engineering..ice... BLEND!


View Profile WWW
« Reply #45 on: June 30, 2011, 09:22:50 PM »

The dev kit installer and environment makes UNIX assumptions about environment etc.  The specific differences, I cannot tell you, I am not a Windows guy. 

But I can tell the obvious answers:

1) This version of GCC will be cross compiled for MIPS with specific parameters for PSP. 
2) If you used the standard windows C/C++ compiler it would assume the opcode platform of your PC (likely you are on x86). Similar if you got GCC prebuilt for windows.

It is probably much easier to build a cross compiler in a unix environment than in Windows (MS hides so many details from you anyhow... man I loath msdn docs).

A thought: Can you tell me how to cross compile MSVisual C/C++ compiler without disclosing the MS compiler source code at least at some layer?


There's a prebuilt SDK that is probably much easier for the IDE types...

You can get the easy installer for the SDK that has everything you need (even cygwin built in, as far as I know).  Search around the forums. 

Maybe this one looks good: http://sourceforge.net/projects/minpspw/

But you miss out on all the nice changes to the svn repository if you do things this way (at the least you have to wait till minpspw catches up). 

With svn in linux you just update and install whatever new libraries you want (and I think you can have the same experience in Cygwin on Windows).
« Last Edit: June 30, 2011, 09:30:58 PM by razzlegames » Logged



steerlat
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 14
737.76 points

View Inventory
Send Money to steerlat

View Profile
« Reply #46 on: July 01, 2011, 12:22:52 AM »

Right, appreciated. I realize this, so I've gotten Cygwin to install all of devel and wget. It's the proper way I think, the alternative kind of implies a hasty temper or something. That's a kind of attitude you don't want to start things with I guess.

Now to compile the psp toolchain. I am still kind of lost in all this. I understand C/C++ and all, I just don't have it sorted on what to do - you know.

So I've gotten my Linix environment kind of set up with path variables. The gcc 'gnu compiler collection' is included in Cygwin.

The whole point of Cygwin is to provide an up to date list of Linux libraries(?), and gcc is the recommended compiler to use it with?

The psp toolchain acts as an additional set of libs to the Cygwin environment?

Thanks in advance. I have little experience with all this.
Logged
razzlegames
Full Member
***

Karma: +10/-0
Offline Offline

Posts: 185
10583.50 points

View Inventory
Send Money to razzlegames
Art, Engineering..ice... BLEND!


View Profile WWW
« Reply #47 on: July 01, 2011, 12:20:54 PM »

Quote

The whole point of Cygwin is to provide an up to date list of Linux libraries(?), and gcc is the recommended compiler to use it with?

It's kind of cool to think about (most self referencings are), but you need Cygwin's gcc compiler and libraries, in order to compile the gcc compiler for PSP (and other tools).  Which are then used to compile libraries for PSP, etc.

"Compilers compiling compilers, how perverse!".  Make sense? 

(If you've done anything in hardware development or embedded systems, you see this stuff all the time.  You have to make a compiler for your new architecture given a set of opcodes etc.  A already built compiler is used to create this compiler, that will output binaries for the other architecture.  In our case PSP MIPS).

Quote
The psp toolchain acts as an additional set of libs to the Cygwin environment?

No, the psp toolchain acts as a set of compilers and tools to create libs and binaries specific for PSP  ( MIPS).  The Cygwin environment helps you compile the psp-gcc, psp-g++, and other psp tools to give you a full build environment. 

In addition it makes it easier to deploy only 1 script for PSPSDK installation, that will work on multiple platforms (bash in this case).  Cygwin provides that ability to run the Bash scripts in a more vetted and stable way (they've tested in this environment).
« Last Edit: July 01, 2011, 12:25:07 PM by razzlegames » Logged

razzlegames
Full Member
***

Karma: +10/-0
Offline Offline

Posts: 185
10583.50 points

View Inventory
Send Money to razzlegames
Art, Engineering..ice... BLEND!


View Profile WWW
« Reply #48 on: July 01, 2011, 05:24:14 PM »

Quote
Now to compile the psp toolchain. I am still kind of lost in all this. I understand C/C++ and all, I just don't have it sorted on what to do - you know.

Sorry I missed this question.  I am not the best to answer this, I just use Linux and all is easy.  But, you should be able to run the toolchain.sh bash script (that comes with a download of the toolchain on ps2dev.org) and it will compile the latest build tools. 

However, to get all the goodies, you're going to want to use svn, which I have no idea about using in Cygwin, but is very easy in Linux (Ubuntu is a very easy distro to try ).

If you have svn, you just run:
svn co svn://svn.ps2dev.org/psp/trunk/

Note that ps2dev is sometimes down, google about it, and use jim's mirror.

EDIT: Ok I found it:
svn co http://psp.jim.sh/svn/psp/trunk/
« Last Edit: July 01, 2011, 05:31:35 PM by razzlegames » Logged

steerlat
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 14
737.76 points

View Inventory
Send Money to steerlat

View Profile
« Reply #49 on: July 04, 2011, 11:15:12 PM »

That's incredibly helpful thank you a lot.

I just got my Lumines and I'm at 1.5 now. For starters I'll try to set up my environment and run a homebrew.

Edit: I got the sprite test running where you can deform mickey (http://oslib.palib.info/samples/). Talking about suicide mouse, and nightmares. This is a nice start.

I'm proceeding to setting up the actual environment.
« Last Edit: July 04, 2011, 11:25:44 PM by steerlat » Logged
razzlegames
Full Member
***

Karma: +10/-0
Offline Offline

Posts: 185
10583.50 points

View Inventory
Send Money to razzlegames
Art, Engineering..ice... BLEND!


View Profile WWW
« Reply #50 on: July 04, 2011, 11:21:43 PM »

No problem. I forgot to mention another good way to set this all up is by installing ubuntu (or your fav Linux) in virtualbox and just use the virtual machine for your psp development.
« Last Edit: July 04, 2011, 11:24:40 PM by razzlegames » Logged

steerlat
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 14
737.76 points

View Inventory
Send Money to steerlat

View Profile
« Reply #51 on: July 05, 2011, 01:02:57 AM »

Ok, it appears I miss things such as mpfr and gmp. Isn't this in devel? Can I use wget to acquire these now, or do I use the Cygwin installer?

Edit: Okay, I'm using setup.exe of my local cache. This is smoother than I thought.
Edit: It's busy with the long stuff now. Before it worked though, the ncurses dependency .sh missed includes/ncurses.h, so I put the 1kb thing there manually. Could this be a problem perhaps?\

- Pet.

Thanks

PS: I'm going home from my job now. Pc stays on, I guess I'll see how the process behaved tomorrow.
« Last Edit: July 05, 2011, 04:16:58 AM by steerlat » Logged
razzlegames
Full Member
***

Karma: +10/-0
Offline Offline

Posts: 185
10583.50 points

View Inventory
Send Money to razzlegames
Art, Engineering..ice... BLEND!


View Profile WWW
« Reply #52 on: July 05, 2011, 06:43:11 AM »

Quote
so I put the 1kb thing there manually
What do you mean the 1kb thing?  Do you just mean:  You copied the ncurses headers in /usr/include etc?  This is fine and necessarily in some cases (copying headers around or modifying where the build looks for includes, e.g. -I include_path).

You may want to start a new thread if you have any issues, since this is sort of a piggy back of a very old and sticky reference thread (not sure if anyone cares, but just in case).
Logged

steerlat
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 14
737.76 points

View Inventory
Send Money to steerlat

View Profile
« Reply #53 on: July 05, 2011, 10:42:30 PM »

Until now this is the best place to post in.

Ok as it appears, the installer (or batch) can't connect to ps2dev:

svn: Can't connect to host 'svn.ps2dev.org': Connection refused

Can I mod the script to use http://psp.jim.sh/svn/psp/trunk/?

Thanks again
Logged
Pages: 1 2 3 [4]
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.256 seconds with 33 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com