A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
Go to file
Unknown W. Brackets c9e931e362 Save the state of the PGD info struct.
Not touching any of its internals.
2013-05-27 23:59:03 -07:00
android Make more menu screen items translatable. 2013-05-25 11:23:14 +08:00
assets Make more menu screen items translatable. 2013-05-25 11:23:14 +08:00
Blackberry Update version, add lang and splash to Blackberry. Update native and ffmpeg. 2013-05-08 22:12:42 +10:00
Common Save XMM regs as required by the Windows x64 ABI. 2013-05-25 00:34:19 -07:00
Core Save the state of the PGD info struct. 2013-05-27 23:59:03 -07:00
ext Ignore POSIX warnings in zlib. 2013-05-18 10:17:23 -07:00
ffmpeg@fe9c6b483d Shader simplification: Flip skinning math around. Remove a temporary from the texcoord generation code. Update ffmpeg submodule pointer. 2013-05-20 00:16:29 +02:00
filter Should be safe to remove those manual register/unregister 2013-05-26 22:34:29 +08:00
flash0/font Revert to JPCSP's jpn0.pgf font. Should've checked the last one more carefully. 2013-04-09 23:55:27 +02:00
GPU Disable QuickClutHash until it can be fixed. 2013-05-27 19:46:09 +02:00
headless Add on-screen feedback for some keyboard shortcuts (so you know which setting was changed) 2013-05-22 18:00:06 +02:00
ios Update ViewController.mm 2013-04-24 17:44:43 +09:00
lang@09cd7ef7e6 Turn off the use of uniform arrays in shaders as some devices don't like them, and the speedup seems to be very small if any. 2013-05-26 14:03:02 +02:00
native@dfe03d3d97 Buildfix for Qt 2013-05-23 21:54:24 +10:00
pspautotests@d1038e00bd Make vwbn and the other unimplemented vfpu ops increment PC. Add commented-out attempt at implementing vwbn. 2013-05-19 13:14:02 +02:00
Qt Update PPSSPP.pro 2013-05-26 17:44:12 +03:00
SDL Move blackberry files in to their own directory as it is unrelated to SDL 2013-01-23 11:14:23 +10:00
source_assets Switch main UI font to one built to include Hiragana and Katakana. Don't know if that is enough. 2013-04-17 16:39:01 +02:00
Tools/SaveTool Fixed two other memory leaks I missed. 2013-01-25 15:07:36 -05:00
UI Update EmuScreen.cpp 2013-05-27 21:27:42 +09:00
unittest Unify some VS project settings 2013-04-27 19:34:41 +02:00
Windows Hide pop up windows in full screen. 2013-05-26 15:00:40 -07:00
.gitignore Removed Bilinear texture filtering option 2013-05-03 10:29:29 +02:00
.gitmodules Make all the submodule paths https as this works better for some. Fixes #1714. 2013-05-08 14:48:28 +02:00
atlasscript.txt Use the Roboto font for Latin and Russian chars, keep Arial for the rest for now. Add missing chars. 2013-04-21 21:55:08 +02:00
b.sh MacOSX buildfix. Doesn't run right yet though. 2012-11-25 12:25:07 +01:00
build_ppgeatlas.sh Make more menu screen items translatable. 2013-05-25 11:23:14 +08:00
buildatlas.sh Make more menu screen items translatable. 2013-05-25 11:23:14 +08:00
chinese.txt Make it possible to translate error screens. 2013-05-25 13:37:43 +08:00
CMakeLists.txt Fix PPSSPPHeadless CMake build. 2013-05-23 21:32:22 +02:00
gentest.py More work on gentest, fix a VFPU bug it found comparing to real PSP! 2012-11-11 21:32:52 +00:00
git-version.cmake Fix typo breaking git-version.cpp gen in cmake. 2013-03-17 23:45:41 -07:00
Globals.h Walk a pointer when enqueuing audio. 2013-01-29 08:19:06 -08:00
korean.txt Make more menu screen items translatable. 2013-05-25 11:23:14 +08:00
LICENSE.TXT Switch to "GPL 2.0 or later" for various reasons. I wrote most of the code I imported from Dolphin (which is GPL2-but-not-later), so it should be OK. 2012-11-04 23:24:00 +01:00
ppge_atlasscript.txt FIX unintelligible sequence of decimal characters on savedialog. 2013-05-02 00:14:41 +09:00
README.md Update README.md to have the right build instructions for Android. 2013-05-03 18:32:02 +02:00
test.py Update tests. 2013-05-18 20:22:00 -07:00

PPSSPP - a fast and portable PSP emulator

Written by Henrik Rydgård

Released under the GPL 2.0 in November 2012

Official website: http://www.ppsspp.org/

To contribute, see the development page.

For the latest source code and build instructions, see our github page.

Basic build instructions

(for more detailed instructions, see the development page)

First of all, after having checked out the source, don't forget to run:

git submodule update --init

in order to get the "native" library.

Now, the actual building:

Building for Windows

Use Visual Studio 2010+, Visual C++ Express is fine. Open the solution and just build, it'll work. You may just need to set up a path or two to the Windows SDK (which includes the DX SDK) nowadays.

Building for Android

Install the Android SDK and NDK.

To build the native C/C++ part, from a shell or command prompt, run:

./ab.sh 

or, on Windows:

ab.cmd 

in android/. You may need to tweak the paths in the ab file.

Then just open the project in Eclipse and run on your device. When you make changes to the native code, you may have to refresh or add a few spaces to PPSSPPActivity.java for Eclipse to rebuild the APK when you run it on your device the next time.

There's an alternate method of building for Android using CMake below.

Other platforms

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.

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.

Note: There is also a Qt frontend available. Simply open PPSSPPQt.pro in Qt Creator 2.6+ and press run. The Qt frontend currently supports Windows, Linux, Blackberry 10, Symbian and Meego.

Building for Linux/BSD/Meego Harmattan/Pandora/etc

Qt (recommended) A Qt-based frontend is available in the Qt/ dir. Open PPSSPPQt.pro with Qt Creator 2.6+. Install libsdl1.2 if you want to use USB Gamepad. If the build has an error about finding mobility or multimedia:

  • Install the package "qtmobility-dev"

SDL Alternatively, install the libsdl1.2 (SDL 1.2) development headers. This is called libsdl1.2-dev 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.

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.

To build for Android using CMake, 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:

cmake -DCMAKE_TOOLCHAIN_FILE=path/to/ppsspp/android/android.toolchain.cmake path/to/ppsspp
make

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.

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.

Also note that the Visual Studio generators aren't compatible with compilers other than Microsoft's, but NMake Makefiles works fine.

Building for iOS

Create a build-ios directory and inside it run:

cmake -DCMAKE_TOOLCHAIN_FILE=../ios/ios.toolchain.cmake -GXcode ..

Then open the generated project in Xcode.

For more information, see: http://code.google.com/p/ios-cmake/wiki/HowTo

Building for Blackberry

To build for Blackberry, you must first have the latest Native SDK installed.

To set up your environment for cross-compiling you must then use:

source ~/bbndk/bbndk-env.sh

Finally, you are ready to compile. Go to ppsspp/Blackberry/ and run:

./build.sh

If you are on Windows, you will need GNU and CMake to run the bash script.

Alternatively, you can use the Qt frontend 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.

  2. Symbian Qt libraries. You can find these in the final Nokia Qt SDK or online.

  3. Set up your SDK to use Symbian GCCE 4.6.3. See a tutorial here: http://www.summeli.fi/?p=4220 You will need to add the GCCE 4.6.3 variant to Symbian\tools\sbs\lib\config\variants.xml as follows:

    <var name="gcce4_6_3" extends="gcce_base">
      <env name="SBS_GCCE463BIN" type="toolchainpath" />
      <set name="GCCEBIN" value="$(SBS_GCCE463BIN)" />
      <set name="GCCECC" value="$(GCCEBIN)/arm-none-symbianelf-g++$(DOTEXE)" type="tool" versionCommand="$(GCCECC) -dumpversion" versionResult="4.6.3"/>
      <set name="RUNTIME_LIBS_LIST" value="drtaeabi.dso dfpaeabi.dso"/>
      <set name="PLATMACROS.VAR" value="GCCE_4 GCCE_4_6"/>
      <set name="ARMMACROS.VAR" value="__GCCE_4__ __GCCE_4_6__"/>
      <set name="LINKER_DEFAULT_LIBS" value="-lsupc++ -lgcc -lgcc_eh"/>
      <set name="PLATMACROS.CONFIG" value="ARMV6"/>
      <set name="ARMMACROS.CONFIG" value="__MARM_ARMV6__ __ARMV6__"/>
      <set name="LINKER_GROUP_END_OPTION" value="-Wl,--end-group"/>
      <set name="LINKER_GROUP_START_OPTION" value="-Wl,--start-group"/>
      <set name="CC.ARMV5" value="-march=armv6"/>
      <set name="CC.SOFTVFP_MAYBE_VFPV2" value="softfp"/>
    </var>

You will also need to increase the data section of the executable in linking stage by modifying Symbian\tools\sbs\lib\config\gcce.xml as follows:

    <set name="RW_BASE" value="$(RW_BASE_OPTION)0x700000"/>

Then simply compile the PPSSPPQt.pro with qmake from the SDK or the included QtCreator.