译者:宇行 【http://www.cookbus.com】
=========================================
版本 1.0+beta2
http://www.pspdev.org/
引言
PSP软件开发包(PSPSDK)是一个公益的开源的工具
Sony's Playstation Portable (PSP)成文的游戏控制台类库。
它同样包含文档和其他开发资源它们写PSP上的软件。
PSPSDK分散式的BSD兼容下的许可协议。见许可文件获得更多信息。
特征
PSPSDK 提供充足的配置库用来创建 PSP 软件:
* Stub 库和 头文件 接口与 PSP 操作系统系统,从线程库, 文件 io,显示驱动和 WiFi 网络。
* 基本的运行时支持 (crt0)可执行文件和库。
* 包含了一个最小化的标准C库(Standard C Library (libc) )的接口。 PSPSDK是
迷你的类库提供便携式内存分配, 字符串格式, 和一些其他的标准C函数库。
* 支持代码链接和提供充足的标准C类库还有 PSPDEV toolchain 。
* 安装并启用了一个 libGU 图形类库。 libGU 提供一个界面 2D 和 3D硬件加速功能在PSP的图形引驚中发现。
* 一个安装即启用的 libGUM 库。 libGUM 提供一个接口来控制管理使用3D软件。
* 一个简单的音频库使用它可以播放PCM音频流。
* 支持创建静态的可执行文件和 PRX 文件 (relocatable modules)。
PSPSDK 同样包含几个工具去辅助创建 PSP软件:
* bin2c, bin2o, 和 bin2s 分别是转换二进制文件到C源代码,到对象文件,和转化为汇编。
* mksfo 创建 PARAM.SFO 文件。
* pack-pbp 和 unpack-pbp添加文件和删除文件从 EBOOT.PBP 。
* psp-config 配置 PSPDEV工具和库。
* psp-prxgen 转换特殊模式的 ELFs 到 PRX 文件。
* psp-build-exports 创建输出表格。
* psp-fixup-imports 安装输入表格后连接删除没有使用的函数从可执行文件中。
同样提供文档库,能够在doc/ 目录找到 PSPSDK源和二进制分布。
A library for Make (build.mak) is also included to provide an easy way to
build simple programs and libraries. See any PSPSDK sample program for
details on how build.mak is used.
Installation
PSPSDK is distributed in both source and binary packages. If you only
want to use the PSPSDK tools and libraries to develop your software you'll
want to grab the binary distribution of PSPSDK specific to your development
platform. If you need fine-grained control over how PSPSDK is installed on
your system, or if you would like to modify PSPSDK then grab the source
distribution. You can also install PSPSDK from Subversion, see "Installation
from Subversion" below for details.
Requirements
To use PSPSDK you must have the following software installed:
* The PSPDEV Toolchain. PSPSDK requires the GNU toolchain (GCC and
binutils) targetted to the PSP. You can find binary packages of these
tools at http://www.pspdev.org/. You can find a script to build and
install the toolchain at http://www.oopo.net/consoledev/.
In addition to the above requirements, if you plan on building PSPSDK from
source, you will need:
* Make. Note: GNU Make may not be required, but if you run into problems
building from source you may want to install it. You can find GNU Make
at http://www.gnu.org/software/make/.
If you plan on building PSPSDK directly from the Subversion repository you
will need:
* A Subversion client. A popular client for Windows is TortoiseSVN
(http://tortoisesvn.tigris.org/).
* GNU autotools. You will need a recent version of autoconf
(http://www.gnu.org/software/autoconf/) and automake
(http://sourceware.org/automake/).
The following packages are not required to build PSPSDK, but are used to
build documentation and other optional resources:
* Doxygen. You can find Doxygen at http://www.stack.nl/~dimitri/doxygen/.
If you want to view the pretty source dependency graphs, then you will
also need to install Graphviz (http://www.graphviz.org/).
Installation from binary
Download the PSPSDK binary package specific to your development system.
For example, if you are using Windows, you will want to download the file
pspsdk-1.0-win32.zip.
Extract or unzip the package into the folder where the PSPDEV toolchain is
installed. For example, on a Windows system you may have installed the PSPDEV
toolchain to C:\pspdev. You would then unzip PSPSDK into C:\pspdev.
Update your PATH environment variable to point to the PSPSDK tools
directory. In the above example, if you installed PSPSDK to C:\pspdev, you
would add C:\pspdev\bin to your PATH.
Installation from source
PSPSDK uses the GNU autotools (autoconf and automake) for its build
system. To install PSPSDK from a source distribution, run the following
commands after unpacking it:
./configure
make
make doxygen-doc
make install
If you haven't installed Doxygen or don't want to build the library
documentation, you can skip the
Installation from Subversion
PSPSDK can be found in the Subversion repository located at
svn://svn.pspdev.org/psp. If you are using the command line version of the
Subversion client, you can the following command to download PSPSDK:
svn co svn://svn.pspdev.org/psp/trunk/pspsdk
Once you've downloaded PSPSDK, run the following from the pspsdk directory
to create the configure script and support files (you must have autoconf and
automake installed):
./bootstrap
You can now run the commands listed in the "Installation from source"
section.
Notes
* This is a BETA release of PSPSDK. Some of the features and tools
described here may not be fully implemented.
* By default PSPSDK will install into the directory where the PSPDEV
toolchain is installed. If you decide to install PSPSDK somewhere else
then you must define a PSPSDK environment variable that points to your
alternate directory. The psp-config build utility will look for PSPSDK
in the location specified in the PSPSDK environment variable first, or
use its own location to determine where PSPSDK is installed.
* The Makefile templates provided by the sample code are designed for
building a single executable or a library, but not both. If you plan on
using these templates in your project to build both libraries
and executables be aware that you will have to structure your project so
that each library and executable are built in a seperate directory.
Bugs
If you find a bug in PSPSDK, send an e-mail describing the bug to
pspsdk-bugs@lists.ps2dev.org. If possible, include any code or documentation
that can be used by the PSPSDK developers to recreate the bug.
Resources
Mailing Lists
pspsdk-bugs@lists.ps2dev.org
Use this list to report any bugs you find in PSPSDK. To subscribe, send an
empty e-mail message to pspsdk-bugs-subscribe@lists.ps2dev.org.
For a full list of PSP development mailing lists, see
http://lists.ps2dev.org/.
Web Forums
http://forums.ps2dev.org/
The PSP development forums are an excellent place to find out about the
latest PSP homebrew games, demos, and other software. PSPSDK has it's own
dedicated forum titled 'PSPSDK Support and Development'. Use this forum to
find out about the most recent PSPSDK developments and to ask questions
about PSPSDK.
Subversion
svn://svn.pspdev.org/
http://svn.pspdev.org/
PSPDEV tools and libraries can be found in the psp/ repository at
svn://svn.pspdev.org/. PSP homebrew games, demos, and other applications
can be found in the pspware/ repository located at the same URL. To view
the contents of these repositories using a Web browser, visit
http://svn.pspdev.org/.
Internet Relay Chat (IRC)
The PSPSDK developers can be found hanging out in the #pspdev channel
on irc.freenode.net.
Thanks
The pspsdk developers wish to thank all the people who have contributed
bug fixes, ideas and support for the project.
Also big thanks to nem for kicking off PSP development with all his work,
the original imports system is based on his work in the hello world demo.



