ppsspp/README.md

125 lines
4.2 KiB
Markdown
Raw Normal View History

2012-11-01 16:19:01 +01:00
PPSSPP - a fast and portable PSP emulator
=========================================
2012-11-21 19:04:13 -03:00
2012-11-01 16:19:01 +01:00
Written by Henrik Rydgård
2012-11-02 07:48:45 +01:00
Released under the GPL 2.0 in November 2012
2012-11-01 16:19:01 +01:00
Official website:
http://www.ppsspp.org/
2012-11-21 19:04:13 -03:00
To contribute, see [the development page][ppsspp-devel].
2012-11-01 16:19:01 +01:00
2012-11-21 19:04:13 -03:00
For the latest source code and build instructions, see [our github page][ppsspp-repo].
2012-11-02 07:48:45 +01:00
2012-11-21 19:04:13 -03:00
Basic build instructions
------------------------
2012-11-01 16:19:01 +01:00
2012-11-21 19:04:13 -03:00
(for more detailed instructions, see [the development page][ppsspp-devel])
2012-11-01 16:19:01 +01:00
First of all, after having checked out the source, don't forget to
run:
2012-11-21 19:04:13 -03:00
git submodule update --init
2012-11-05 15:40:16 -05:00
in order to get the "native" library.
Now, the actual building:
2012-11-21 19:04:13 -03:00
PPSSPP currently uses CMake for its build system. In order
to build for most systems, create a `build` directory and
run:
cmake path/to/ppsspp
make
Alternatively, run b.sh which will create the directory for you.
2012-11-21 19:04:13 -03:00
You can specify the -G parameter to cmake to choose a generator.
The `NMake Makefiles`, `Visual Studio 11` (projects + sln),
`GNU Makefiles` and `Unix Makefiles` generators have been tested.
Of course in-tree builds are supported, but that makes cleanup
harder to do; with out-of-tree builds you can just remove the
`build` directory.
Building for Linux/BSD/etc
--------------------------
Install the libsdl1.2 (SDL 1.2) development headers. This is called
`libsdl1.2-devel` on Debian/Ubuntu, `SDL-devel` on Fedora/RHEL,
`sdl12` on BSD ports.
Currently the user interface is identical to Android's, operated
with the mouse. A Qt-based interface is planned.
Building for OSX
----------------
Install the Xcode Command Line Tools and, using macports, fink or
homebrew, install the SDL development headers. This is called `sdl`
on homebrew. Just follow the basic build instructions afterwards.
Currently the user interface is identical to Android's, operated
with the mouse. A Qt-based interface is planned.
Building for Android
--------------------
To build for android, first you must set the ANDROID\_NDK environment
variable to point to the path of your NDK install. This is done on
windows cmd with `set ANDROID_NDK=X:\...`, on bourne shells with
`export ANDROID_NDK=/path/to/ndk`, and on C shells with
`setenv ANDROID_NDK /path/to/ndk`.
Create a `build-android` directory and inside it run:
2012-11-01 16:19:01 +01:00
2012-11-21 19:04:13 -03:00
cmake -DCMAKE_TOOLCHAIN_FILE=path/to/ppsspp/android/android.toolchain.cmake path/to/ppsspp
make
2012-11-01 16:19:01 +01:00
2012-11-21 19:04:13 -03:00
After `make` finishes, it will have created the needed .so files in
path/to/ppsspp/android/libs/armeabi-v7a. You can now use the build.xml
in the android/ dir to build the final executable, or import the android/
folder as an existing project in Eclipse.
2012-11-01 16:19:01 +01:00
2012-11-21 19:04:13 -03:00
Note that Eclipse won't notice if you have made changes to the C++ code.
Introduce a meaningless change to a random .java file such as a whitespace
to get Eclipse to rebuild the project.
2012-11-01 16:19:01 +01:00
2012-11-21 19:04:13 -03:00
Also note that the `Visual Studio` generators aren't compatible with compilers
other than Microsoft's, but `NMake Makefiles` works fine.
Building for Blackberry
-----------------------
To build for Blackberry, you must first have the latest Native SDK installed
from developer.blackberry.com/native and have compiled the SDL port available
from github.com/blackberry/SDL to your NDK workspace. Then checkout the latest
version of PPSSPP to your NDK workspace.
To set up your environment for cross-compiling you must then use:
source ~/bbndk/bbndk-env.sh
Finally, you are ready to compile. Change directory to ppsspp/SDL and run:
./blackberry_build.sh
If you are on Windows, you will need GNU and CMake to run the bash script.
Alternatively, you can use the Qt UI by compiling the PPSSPPQt.pro in the Qt/
directory with qmake from the NDK or QtCreator 2.6+.
Building for Symbian
--------------------
To build for Symbian, you require:
1) GCC 4.6.3 from Mentor Graphics: http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/
2) Symbian Qt libraries. You can find these in the final Nokia Qt SDK.
Then simply compile the PPSSPPQt.pro with qmake from the SDK or QtCreator 2.6+.
[ppsspp-repo]: <https://github.com/hrydgard/ppsspp>
"https://github.com/hrydgard/ppsspp"
[ppsspp-devel]: <http://www.ppsspp.org/development.html>
"http://www.ppsspp.org/development.html"