Sonict
Member
Ever since Alam started developing the files so SRB2 could be ported over to the PSP, I wanted to try and learn how to compile it myself so I wouldn't have to bother anyone when the next release of SRB2 comes along.
This is what I am using to do the compiling: Cygwin
EDIT: I also have Dev C++
What librarys I have installed: SDL - version 1.2.10, SDL_mixer, FMOD 3.75, PSPSDK, etc.
I am very new at this!. If anyone is willing to set me up correctly so I can do this, please reply in this thread.
Right now, I am trying to at least compile SRB2 in SDL so I know that it works in Cygwin. Unfortunately, It doesn't want to compile.
Here is the error:
Here is the error when I try to compile it for PSP:
I have given up for now. The easier way would be to send me the completed PSP elf and show me where to place the SRB2 files so I can test it out, but I would rather like to learn something here.
EDIT 2: Keep me informed on how this is going. I do own a PSP with version 1.5
Thank you for reading this,
Sonict
This is what I am using to do the compiling: Cygwin
EDIT: I also have Dev C++
What librarys I have installed: SDL - version 1.2.10, SDL_mixer, FMOD 3.75, PSPSDK, etc.
I am very new at this!. If anyone is willing to set me up correctly so I can do this, please reply in this thread.
Right now, I am trying to at least compile SRB2 in SDL so I know that it works in Cygwin. Unfortunately, It doesn't want to compile.
Here is the error:
Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src SDL=1
make: Entering directory `/home/user/srb2_sc/src'
sdl/i_main.c: In function `main':
sdl/i_main.c:150: error: `HANDLE' undeclared (first use in this function)
sdl/i_main.c:150: error: (Each undeclared identifier is reported only once
sdl/i_main.c:150: error: for each function it appears in.)
sdl/i_main.c:150: error: parse error before "ci"
sdl/i_main.c:158: warning: implicit declaration of function `FreeConsole'
sdl/i_main.c:159: warning: implicit declaration of function `AllocConsole'
sdl/i_main.c:164: error: `ci' undeclared (first use in this function)
sdl/i_main.c:164: warning: implicit declaration of function `GetStdHandle'
sdl/i_main.c:164: error: `STD_INPUT_HANDLE' undeclared (first use in this functi
on)
sdl/i_main.c:165: warning: implicit declaration of function `GetFileType'
sdl/i_main.c:165: error: `FILE_TYPE_CHAR' undeclared (first use in this function
)
sdl/i_main.c:167: error: syntax error before "CM"
sdl/i_main.c:168: warning: implicit declaration of function `SetConsoleMode'
sdl/i_main.c:168: error: `CM' undeclared (first use in this function)
sdl/i_main.c:193: error: `DWORD' undeclared (first use in this function)
sdl/i_main.c:193: error: parse error before "OldRights"
sdl/i_main.c:194: error: `BYTE' undeclared (first use in this function)
sdl/i_main.c:194: error: `pBaseOfImage' undeclared (first use in this function)
sdl/i_main.c:194: error: parse error before ')' token
sdl/i_main.c:195: error: `IMAGE_OPTIONAL_HEADER' undeclared (first use in this f
unction)
sdl/i_main.c:195: error: `pHeader' undeclared (first use in this function)
sdl/i_main.c:195: error: parse error before ')' token
sdl/i_main.c:196: error: `IMAGE_DOS_HEADER' undeclared (first use in this functi
on)
sdl/i_main.c:196: error: parse error before ')' token
sdl/i_main.c:197: error: `IMAGE_NT_SIGNATURE' undeclared (first use in this func
tion)
sdl/i_main.c:197: error: `IMAGE_FILE_HEADER' undeclared (first use in this funct
ion)
sdl/i_main.c:198: warning: implicit declaration of function `VirtualProtect'
sdl/i_main.c:198: error: `PAGE_EXECUTE_READWRITE' undeclared (first use in this
function)
sdl/i_main.c:198: error: `OldRights' undeclared (first use in this function)
make: *** [../objs/SDL/Release/i_main.o] Error 1
make: Leaving directory `/home/user/srb2_sc/src'
Here is the error when I try to compile it for PSP:
Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src SDL=1 PSP=1
make: Entering directory `/home/user/srb2_sc/src'
Creating dependency file, depend.dep
/bin/sh: ../objs/PSP/SDL/Release/depend.ped: No such file or directory
make: *** [../objs/PSP/SDL/Release/depend.dep] Error 1
make: Leaving directory `/home/user/srb2_sc/src'
I have given up for now. The easier way would be to send me the completed PSP elf and show me where to place the SRB2 files so I can test it out, but I would rather like to learn something here.
EDIT 2: Keep me informed on how this is going. I do own a PSP with version 1.5
Thank you for reading this,
Sonict