PSP Programming/CYGWIN

< PSP Programming

The PlayStation Portable Library

CYGWIN

This wikibook assumes that you run a UNIX-like operating system. If your computer runs Windows, you will need to use Cygwin.

CygWin is essentially a UNIX Like Operating Environment. That is, CygWin is a Linux Emulator for windows boxes. CygWin loads a Linux environment into memory on your Windows PC. This allows you to run Native Linux Applications on a windows box. At first, this whole CygWin thing sounds very intimidating. However, setting up and using CygWin is a very simple process.

Here is what is necessary for installing CYGWIN on your windows box:

This completes the procedure necessary for installing the CygWin Operating System Environment. Armed with a UNIX Like emulator on your windows box, you are ready to install the ToolChain. This process is discussed in the next sectionl.

PSP ToolChain

In this section of Getting Started--The PlayStation Portable Laboratory, I will explain the procedure necessary for installing the PlayStation Portable ToolChain. First, though, let me tell you a little about the ToolChain. You see, Sony Developers use special libraries and header files for creating their PSP Programs, Applications, and Emulators. This collection of libraries and header files are called a ToolChain. The Sony ToolChain is an official product of Sony Corporation, and it is licensed only for use by those who can afford the massively expensive licensing fee. That means that most of us cannot afford to use the official product. Fortunately for us, though, many | HACKERS have done what they do best and created their own version of the PSP ToolChain. That is the one that I use, since it is GPL and Open Source compliant FREE Software.

So, how do we install the GPL Open Source compliant FREE PSP ToolChain that these HACKERS have created? The process is actually quite simple. To install the PSP ToolChain, you will want to use your CygWin System. What follows is a short explanation of how to set up the PSP ToolChain in your CygWin Operating System Environment.

First, it is necessary to start up the CYGWIN System. From the Windows START Menu, choose CygWin CygWin Bash Shell. Otherwise, choose run "C:/cygwin/cygwin.bat". A Command Line will be provided in a DOS Shell Window. This is the command line from which you will execute most of the commands and programs that you use in CygWin. On the command line, you should see something along the lines of 'yourusername@yourcomputername ~', which identifies the user account that is being used and the computer upon which the CygWin Operating System Environment is currently running.

OK, now that you have started your CygWin Operating System Environment and verified that it is working, it is time to shut it down. Either click the red [X] Box in the upper right hand corner of the DOS Shell Window, or type 'exit' and press the <enter> or <return> key on your computer's keyboard. It might seem somewhat foolish to start and then stop the CygWin Operating System Environment without actually doing anything with it, but it is a necessary step. It verifies that everything has been installed up to this point.

The second step in the PSP ToolChain installation process is to download the latest version of the ToolChain. Use | GOOGLE or | SourceForge or a similar search engine to locate the FREE OpenSource GPL version of the PSP ToolChain. Download it to your computer's HDD.

Once the PSP ToolChain has been downloaded to your machine, you will need to extract the compressed files. Use an extractor such as WinAce or Winrar to extract the file contents of the PSP ToolChain archive. Place the extracted file in the 'C:/cygwin/home/user' Directory. In this case, 'user' is your own username [the user account that you saw when you had the CygWin Operating System Environment open a few moments before. See? I told you that it was a necessary step to start and then stop the CygWin System before you get to this part. Doing so allows you to know where the files need to be put.

In many cases, it is necessary to customize the PSP ToolChain's configuration so that it can work with CygWin. Why? Most of the reverse engineering and ToolChain creation happened in Linux. Since CygWin is not a true Linux Operating System it has a few quirks that must be dealt with. For instance, rather than the gmake parser that was used by the majority of the OpenSource FREE GPL PSP ToolChain Development Croo, the CygWin Operating System Environment uses the 'make' parser when compiling a set of C or C++ programming scripts. To accommodate this, do the following:

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.