Compiling Quake for the PlayStation Portable is a challenging task.
I am going to make it easy for everyone.
I am going to list the common problems and solutions and what works and does not.
------------
[Tutorial]
------------
-----------------------------------------------------------
Compiling Quake For The PlayStation Portable.
-----------------------------------------------------------
-----------------
By Team Xlink
-----------------
----------------
**NOTICE**
----------------
I have provided a download link for Cygwin and the PSP Toolchain already setup.
This will save you around 5 hours.
It takes Four hours to compile the PSP ToolChain on good modern Hardware.
The time varies for Cygwin, because not all of the download locations have all of the required packages and are slow.
The download I have provided has everything up to date as of
April 8th 2009
----------
Tutorial
----------
-------------
Easy Way
-------------
-------------
Step One.
-------------
Download the Archive available from this link:
EDIT: New URL, thank you for the reupload Baker.
http://quake-1.com/cache/cygwin.rar
-------------
Step Two.
-------------
Once that is complete Open up the win-rar archive.
It should contain a Cygwin Folder.
Extract that to the root of your main Part ion.
---------------
Step Three.
---------------
To attempt to compile go to your Cygwin Directory and double click the .bat file.
It will open up a cmd window.
To compile something you would navigate to a directory via:
Code: Select all
cd kurok
To compile from a something form the standard file name of makefile you would navigate to the directory and type make.
If the make file is named differently you would type this
Code: Select all
make -f makefilenormal
-----------------
On To Quake
-----------------
-----------------------------------------
Please Read This It is Important
-----------------------------------------
There are two Routes you can take at this point I will provide instructions for both.
-------------
Kurok PSP
-------------
-------------
Step One:
-------------
Useing an SVN client, such as Tortoise SVN
Go to this Link
http://bladebattles.com/kurok/SVN/
Then export it to this directory
Main Parition You Installed Cygwin On:/Cygwin/home/user/kurok
-------------
Step Two:
-------------
This is the error you will get eventually:
Code: Select all
../psp/video_hardware.cpp:39:38: error: m33libs/include/kubridge.h: No such file or directory
Navigate to this directory in your Kurok folder:
Code: Select all
\psp\m33libs
Code: Select all
lib
Code: Select all
include
Code: Select all
libpspkubridge.a
Code: Select all
kubridge.h
You could now try to compile Kurok
Once again it will give you errors.
--------------------------------------------
--------------
Step Three:
--------------
You will get this error:
Code: Select all
../psp/video_hardware.cpp:220: error: 'INT_MAX' was not declared in this scope
Open up
Code: Select all
video_hardware.cpp
Code: Select all
#include <limits.h>
Limits.h is not a file that is in your kurok source directory.
Basically it is required to declare
Code: Select all
INT_MAX
You could try to compile it now.
If you do you will get errors:
---------------------------------------
-------------
Step Four:
-------------
You will get this error:
../psp/network_psp.cpp:154: error: cannot convert 'char*' to 'SceNetApctlInfo*'
for argument '2' to 'int sceNetApctlGetInfo(int, SceNetApctlInfo*)'
Replace This code:
Code: Select all
if (sceNetApctlGetInfo(8, szMyIPAddr) != 0)
strcpy(szMyIPAddr, "unknown IP address");
Code: Select all
if (sceNetApctlGetInfo(8, (union SceNetApctlInfo*)szMyIPAddr) != 0)
That is the End of the Kurok PSP Version
-----------------------------------------
Time for the Quake PSP Version
--------------
Quake PSP
--------------
-------------
Step One:
-------------
Go to this Link
http://psp-quake.svn.sourceforge.net/vi ... z?view=tar
and download it.
Then export it to this directory
Main Parition You Installed Cygwin On:/Cygwin/home/user/
--------------
Step Two:
--------------
You will get this error:
../psp/video_hardware.cpp:220: error: 'INT_MAX' was not declared in this scope
To fix that error:
Open up
Code: Select all
video_hardware.cpp
At the very top of the file insert this code:
Code: Select all
#include <limits.h>
Limits.h is not a file that is in your kurok source directory.
Basically it is required to declare
Code: Select all
INT_MAX
Step Three
--------------
You will get this error:
Code: Select all
../psp/network_infrastructure.cpp:126: error: cannot convert 'char*' to 'SceNetA
pctlInfo*' for argument '2' to 'int sceNetApctlGetInfo(int, SceNetApctlInfo*)'
Replace This code:
Code: Select all
if (sceNetApctlGetInfo(8, szMyIPAddr) != 0)
strcpy(szMyIPAddr, "unknown IP address");
Code: Select all
if (sceNetApctlGetInfo(8, (union SceNetApctlInfo*)szMyIPAddr) != 0)
That is all there is too it!
Feel free to post your comments, questions or suggestions.