I also play PSP development! Introduction to--PSP development environment

Source: Internet
Author: User
Tags posix unpack
Holiday, plan to pick up his wife home every day, my wife love me, I am afraid I lonely on the road, her PSP gave me to play, did not play two days I began to difficult to control the want to toss, PSP so powerful features (also support WiFi, give me a shock. ), just want to see the development of the above. So I began to surf the internet to find the PSP SDK. summed up, as follows:

PSP Official SDK should be charged, the Internet can not find, only to find a Third-party SDK (is not reverse engineering out, too magical.) ), the Internet to talk about the maximum of two, one is ps2dev.com out of the Psptoolchain, there is Devkitpro, and later found that Devkitpro is the Psptoolchain packaging a bit, convenient a lot.


Psptoolchain

Introduced:
For those who have played embedded, it is a cross compiler, a GCC compiler running the PSP executable on your host (the PSP seems to be the MIPS architecture), composed of Binutils+gcc+newlib.

Installation:
Composed of binutils+gcc+newlib, it goes without saying that the POSIX environment, of course, is developed and you can install a POSIX-standard OS. Choose a lot of ah, Linux,freebsd,cgywin can be (or you can use any rare system is also possible), I use Linux (ubuntu7.10).

Step 1: Download. (a bit of nonsense), you can download the latest version from ps2dev.com. (very small, when downloading, I doubt is false ah.) )

Step 2: Unpack, method I don't say ... Talk about the files inside, you will find some patch and some scripts, those patch is to modify the binutils and GCC compilers, so that they can compile the PSP executable file, and an important script is toolchain.sh, perform this installation.

Step 3: Install, originally this has nothing to say, is to see a screen of subtitles a screen roll. But it just made me run into a mistake. In the compilation of Binutils error, said that can not find the PSP parameters, after my analysis of the toolchain.sh, it will go to the Internet to download BINUTILS,GCC and other source packages, and then unpack, compile, but I found it will go to check the latest patch, As a result, it downloads an empty binutils patch, and finally binutils has not been added to the PSP-related content, causing the compilation to fail. , the solution has two one is to revise toolchain.sh, I am lazy ... Or a second method of comparing the soil, the second is when the script after the download patch, start to unpack the source package at this time, you can start downloading the SDK from the patch back, so that there will be no error, the other patch I have to overwrite the same, and finally successfully compiled.

Step 4: Forget the environment variables. All files are installed under/usr/local/pspdev and/bin are added to the path to use the PSP compiler. Not much to say, the experienced people know how to get it.

Step 5: Write a HelloWorld bar, a lot of online, I read the written.


Devkitpro

Introduced:
This is baby. For some not very good students and novice friends, with this better, one is running on windows, and compile a gcc can take a lot of time, and Devkitpro is to Psptoolchain compiled well packaged up, Or with a very small similar cgywin POSIX system, so that also eliminates the installation of a Cgywin (Cgywin), and Devkitpro not only support the PSP, but also support arm development, good thing ah.

Installation:
This needless to say that there is Windows Installer, the next step is OK.
And someone on the Internet to write a tutorial, you can use VS 2005 to develop the PSP, a simple configuration of the VS is good, Linux does not have such a development environment AH. (Eclipse is also OK, there are enthusiasts with vi,emacs or something)



The above is the introduction of the development environment, after all, the third party SDK, the published API is also very limited, and the documentation is not complete, but can develop some basic programs, there is a lot of open source graphics library, can facilitate the development of PSP games, as if SDL has PSP version of the portable, If you're a cow, you can transplant some code libraries as well, so much for the introduction.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.