Need help on compiling SRB2 - SDL and PSP. Newbie here!!!

Status
Not open for further replies.

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:

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
 
My new error:

Hi Alam or Logan, my SRB2 SDL compilation under Cygwin almost worked!!

It now errors out here:

Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src SDL=1
make: Entering directory `/home/user/srb2_sc/src'
Creating dependency file, depend.dep
Created dependency file, depend.dep
make: Leaving directory `/home/user/srb2_sc/src'
make: Entering directory `/home/user/srb2_sc/src'
i_tcp.c:154: error: field `ipx' has incomplete type
i_tcp.c: In function `IPX_Socket':
i_tcp.c:624: error: `SOCKADDR_IPX' undeclared (first use in this function)
i_tcp.c:624: error: (Each undeclared identifier is reported only once
i_tcp.c:624: error: for each function it appears in.)
i_tcp.c:624: error: parse error before "address"
i_tcp.c:642: error: `address' undeclared (first use in this function)
make: *** [../objs/SDL/Release/i_tcp.o] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

Good job on the other fix! One step closer for me to test out the PSP way... If you can fix this, I will be happy.

On the PSP side, It errors out here:

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
d_main.c:43:28: error: SDL/SDL_getenv.h: No such file or directory
d_mainnew.c:43:28: error: SDL/SDL_getenv.h: No such file or directory
make: *** [../objs/PSP/SDL/Release/depend.dep] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

I do have the SDL Library installed.

Thanks again,

Sonict
 
for "make -C src SDL=1" you also need to pass NOIPX=1
or just use CYGWIN32=1 for a real CYGWIN/SDL binary

as for "make -C src SDL=1 PSP=1", ahhhh.., wait tell Alam comes around, or meet him in the #srb2fun chatroom
 
More errors in compiling...

Here is the new error for SRB2 SDL under Cygwin:

Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src SDL=1 NOIPX=1
make: Entering directory `/home/user/srb2_sc/src'
nasm: fatal: unrecognised output format `tmap.nas' - use -hf for a list
type `nasm -h' for help
make: *** [../objs/SDL/Release/tmap.o] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

Here is the other error:

Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src CYGWIN32=1
make: Entering directory `/home/user/srb2_sc/src'
Creating dependency file, depend.dep
Created dependency file, depend.dep
make: Leaving directory `/home/user/srb2_sc/src'
make: Entering directory `/home/user/srb2_sc/src'
Linking lsdlsrb2.exe...
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
 -lSDL_mixer
collect2: ld returned 1 exit status
make: *** [../bin/Cygwin/Release/lsdlsrb2.exe] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

I also had to "CREATE AN SDL DIRECTORY" in "objs\cygwin".

Thanks for the help,

Sonict
 
Re: More errors in compiling...

Sonict said:
nasm: fatal: unrecognised output format `tmap.nas' - use -hf for a list
you also need to pass NOASM=1, after cleaning first

Sonict said:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-lSDL_mixer

you are missing SDL_mixer for cygwin, and Alam realy needs to make sure he he copies ALL the folders in the objs and bin folders when he merges them from the other SVN server
 
Very Close for compiling SRB2 for PSP...

Hey, Logan or Alam

I am so close to compiling SRB2 for the PSP. I have installed the SDL library and SDL_mixer properly this time and tried to compile it. Here are the steps that I did to get this far:

Step 1:

Code:
I checked out this library: svn://svn.pspdev.org/psp/trunk/SDL

Then I compiled it using this: ./autogen.sh
   LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
     ./configure --host psp --prefix=$(psp-config --psp-prefix)
   make
   make install

Step 2:

Code:
I checked out this library: svn://svn.pspdev.org/psp/trunk/SDL_mixer

Then I compiled it using this: ./autogen.sh
   LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
     ./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) \
     --disable-music-mp3 --prefix=$(psp-config --psp-prefix)
   make
   make install

Step 3:

I tried to compile SRB2 for PSP, but I ran into a very big problem :evil:

Here is some of the code:
Code:
1: error: syntax error before 'tx'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:459
2: error: syntax error before '*' token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:459
3: error: syntax error before 'bx'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:459
4: error: syntax error before '*' token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:459
5: error: syntax error before 'bx'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:459
6: error: syntax error before '*' token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:459
7: error: syntax error before 'bx'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:459
8: error: syntax error before '*' token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:460
1: error: syntax error before 'bx'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:460
2: error: syntax error before '*' token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:460
3: error: syntax error before 'type'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:460
4: error: syntax error before 'type'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:464
3: error: syntax error before 'factor'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:464
4: error: syntax error before 'factor'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:464
6: error: syntax error before 'factor'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:464
7: error: syntax error before 'factor'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:464
8: error: syntax error before 'factor'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:464
9: error: syntax error before 'factor'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:466
5: error: syntax error before 'code'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:466
6: error: syntax error before 'code'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:466
8: error: syntax error before '*' token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:466
9: error: syntax error before '*' token
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/include/SDL/SDL_opengl.h:467

And so on... Here is the other error afterwards:

In file included from sdl/ogl_sdl.c:52:
sdl/../hardware/r_opengl/r_opengl.h:123: warning: type defaults to 'int' in decl
aration of 'GLubyte'
sdl/../hardware/r_opengl/r_opengl.h:123: error: syntax error before '*' token
sdl/../hardware/r_opengl/r_opengl.h:130: error: syntax error before 'palette_tex
'
sdl/../hardware/r_opengl/r_opengl.h:130: warning: type defaults to 'int' in decl
aration of 'palette_tex'
sdl/../hardware/r_opengl/r_opengl.h:130: warning: data definition has no type or
 storage class
sdl/../hardware/r_opengl/r_opengl.h:144: error: syntax error before '*' token
sdl/../hardware/r_opengl/r_opengl.h:144: warning: type defaults to 'int' in decl
aration of 'gl_extensions'
sdl/../hardware/r_opengl/r_opengl.h:144: warning: data definition has no type or
 storage class
sdl/../hardware/r_opengl/r_opengl.h:153: error: syntax error before 'screen_dept
h'
sdl/../hardware/r_opengl/r_opengl.h:153: warning: type defaults to 'int' in decl
aration of 'screen_depth'
sdl/../hardware/r_opengl/r_opengl.h:153: warning: data definition has no type or
 storage class
sdl/ogl_sdl.c: In function 'OglSdlSurface':
sdl/ogl_sdl.c:96: error: syntax error before '*' token
sdl/ogl_sdl.c:116: error: 'glvendor' undeclared (first use in this function)
sdl/ogl_sdl.c:116: error: (Each undeclared identifier is reported only once
sdl/ogl_sdl.c:116: error: for each function it appears in.)
sdl/ogl_sdl.c:116: warning: implicit declaration of function 'glGetString'
sdl/ogl_sdl.c:116: error: 'GL_VENDOR' undeclared (first use in this function)
sdl/ogl_sdl.c:120: error: 'glrenderer' undeclared (first use in this function)
sdl/ogl_sdl.c:120: error: 'GL_RENDERER' undeclared (first use in this function)
sdl/ogl_sdl.c:121: error: 'glversion' undeclared (first use in this function)
sdl/ogl_sdl.c:121: error: 'GL_VERSION' undeclared (first use in this function)
sdl/ogl_sdl.c:122: error: 'GL_EXTENSIONS' undeclared (first use in this function
)
sdl/ogl_sdl.c:122: warning: assignment makes pointer from integer without a cast

sdl/ogl_sdl.c:157: warning: passing argument 1 of 'SetModelView' makes pointer f
rom integer without a cast
sdl/ogl_sdl.c:157: warning: passing argument 2 of 'SetModelView' makes pointer f
rom integer without a cast
sdl/ogl_sdl.c:159: warning: implicit declaration of function 'glClear'
sdl/ogl_sdl.c:159: error: 'GL_COLOR_BUFFER_BIT' undeclared (first use in this fu
nction)
sdl/ogl_sdl.c:159: error: 'GL_DEPTH_BUFFER_BIT' undeclared (first use in this fu
nction)
sdl/ogl_sdl.c:165: error: 'GL_RGBA' undeclared (first use in this function)
sdl/ogl_sdl.c:165: error: 'GL_RGB5_A1' undeclared (first use in this function)
sdl/ogl_sdl.c: In function 'OglSdlSetPalette':
sdl/ogl_sdl.c:242: error: 'GL_TEXTURE_2D' undeclared (first use in this function
)
sdl/ogl_sdl.c:242: error: 'GL_RGB8' undeclared (first use in this function)
sdl/ogl_sdl.c:242: error: 'GL_RGB' undeclared (first use in this function)
sdl/ogl_sdl.c:242: error: 'GL_UNSIGNED_BYTE' undeclared (first use in this funct
ion)
make: *** [../objs/PSP/SDL/Release/ogl_sdl.o] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

Thats where it fails... IM SO CLOSE!!!!! Help me out please?

Thanks,

Sonict
 
Here is my new error after I downloaded: libogg, libvorbis

Code:
user@your-9d53aa1067 ~/srb2_sc
$ make -C src PSP=1 NOHW=1
make: Entering directory `/home/user/srb2_sc/src'
Linking SRB2PSP.elf...
../objs/PSP/SDL/Release/d_main.o: In function `D_Display':
d_main.c:(.text+0x634): undefined reference to `HWR_RenderPlayerView'
d_main.c:(.text+0x690): undefined reference to `HWR_RenderPlayerView'
../objs/PSP/SDL/Release/dehacked.o: In function `DEH_LoadDehackedFile':
dehacked.c:(.text+0x3138): undefined reference to `lspr'
dehacked.c:(.text+0x3140): undefined reference to `lspr'
dehacked.c:(.text+0x3164): undefined reference to `lspr'
dehacked.c:(.text+0x3170): undefined reference to `lspr'
dehacked.c:(.text+0x3194): undefined reference to `lspr'
../objs/PSP/SDL/Release/dehacked.o:dehacked.c:(.text+0x31a0): more undefined ref
erences to `lspr' follow
../objs/PSP/SDL/Release/dehacked.o: In function `DEH_LoadDehackedFile':
dehacked.c:(.text+0x333c): undefined reference to `t_lspr'
dehacked.c:(.text+0x3344): undefined reference to `t_lspr'
dehacked.c:(.text+0x334c): undefined reference to `lspr'
dehacked.c:(.text+0x3354): undefined reference to `lspr'
../objs/PSP/SDL/Release/z_zone.o: In function `Command_Memfree_f':
z_zone.c:(.text+0x87c): undefined reference to `HWR_GetTextureUsed'
../objs/PSP/SDL/Release/am_map.o: In function `AM_Drawer':
am_map.c:(.text+0x950): undefined reference to `HWR_clearAutomap'
../objs/PSP/SDL/Release/am_map.o: In function `AM_Responder':
am_map.c:(.text+0x1124): undefined reference to `HWR_drawAMline'
am_map.c:(.text+0x1128): undefined reference to `HWR_drawAMline'
../objs/PSP/SDL/Release/hu_stuff.o: In function `HU_Erase':
hu_stuff.c:(.text+0x10c8): undefined reference to `HWR_DrawViewBorder'
../objs/PSP/SDL/Release/hu_stuff.o: In function `HU_Drawer':
hu_stuff.c:(.text+0x1ce4): undefined reference to `gr_basewindowcentery'
hu_stuff.c:(.text+0x1ce4): relocation truncated to fit: R_MIPS_GPREL16 against `
gr_basewindowcentery'
hu_stuff.c:(.text+0x1dc8): undefined reference to `gr_basewindowcentery'
hu_stuff.c:(.text+0x1dc8): relocation truncated to fit: R_MIPS_GPREL16 against `
gr_basewindowcentery'
hu_stuff.c:(.text+0x1e0c): undefined reference to `gr_viewheight'
hu_stuff.c:(.text+0x1e0c): relocation truncated to fit: R_MIPS_GPREL16 against `
gr_viewheight'
../objs/PSP/SDL/Release/st_stuff.o: In function `ST_doPaletteStuff':
st_stuff.c:(.text+0xcc): undefined reference to `HWR_SetPaletteColor'
../objs/PSP/SDL/Release/m_menu.o:(.data+0x30): undefined reference to `cv_grtran
swall'
../objs/PSP/SDL/Release/m_menu.o:(.data+0xf0): undefined reference to `cv_grfogd
ensity'
../objs/PSP/SDL/Release/m_menu.o:(.data+0x1b0): undefined reference to `cv_grfov
'
../objs/PSP/SDL/Release/m_menu.o:(.data+0x1d8): undefined reference to `cv_grfil
termode'
../objs/PSP/SDL/Release/m_misc.o: In function `M_ScreenShot':
m_misc.c:(.text+0x88c): undefined reference to `HWR_Screenshot'
../objs/PSP/SDL/Release/info.o: In function `P_PatchInfoTables':
info.c:(.text+0x10): undefined reference to `t_lspr'
info.c:(.text+0x20): undefined reference to `t_lspr'
info.c:(.text+0xd4): undefined reference to `lspr'
info.c:(.text+0xd8): undefined reference to `lspr'
../objs/PSP/SDL/Release/p_setup.o: In function `P_SetupLevel':
p_setup.c:(.text+0x33f0): undefined reference to `HWR_ResetLights'
p_setup.c:(.text+0x33f8): undefined reference to `HWR_CorrectSWTricks'
p_setup.c:(.text+0x3404): undefined reference to `HWR_CreatePlanePolygons'
p_setup.c:(.text+0x3764): undefined reference to `cv_grfov'
p_setup.c:(.text+0x3768): undefined reference to `cv_grfov'
p_setup.c:(.text+0x38fc): undefined reference to `HWR_PrepLevelCache'
p_setup.c:(.text+0x3908): undefined reference to `HWR_CreateStaticLightmaps'
../objs/PSP/SDL/Release/p_user.o: In function `P_PlayerThink':
p_user.c:(.text+0xd1d4): undefined reference to `grfovadjust'
p_user.c:(.text+0xd1d4): relocation truncated to fit: R_MIPS_GPREL16 against `gr
fovadjust'
p_user.c:(.text+0xd204): undefined reference to `HWR_SuperSonicLightToggle'
p_user.c:(.text+0xd22c): undefined reference to `grfovadjust'
p_user.c:(.text+0xd22c): relocation truncated to fit: R_MIPS_GPREL16 against `gr
fovadjust'
p_user.c:(.text+0xd274): undefined reference to `grfovadjust'
p_user.c:(.text+0xd274): relocation truncated to fit: R_MIPS_GPREL16 against `gr
fovadjust'
p_user.c:(.text+0xd2ac): undefined reference to `grfovadjust'
p_user.c:(.text+0xd2ac): relocation truncated to fit: R_MIPS_GPREL16 against `gr
fovadjust'
p_user.c:(.text+0xd2b0): undefined reference to `grfovadjust'
p_user.c:(.text+0xd2b0): relocation truncated to fit: R_MIPS_GPREL16 against `gr
fovadjust'
p_user.c:(.text+0xd2cc): undefined reference to `grfovadjust'
p_user.c:(.text+0xd2cc): relocation truncated to fit: R_MIPS_GPREL16 against `gr
fovadjust'
../objs/PSP/SDL/Release/p_user.o:p_user.c:(.text+0xd2d8): more undefined referen
ces to `grfovadjust' follow
../objs/PSP/SDL/Release/p_user.o: In function `P_PlayerThink':
p_user.c:(.text+0xd2d8): relocation truncated to fit: R_MIPS_GPREL16 against `gr
fovadjust'
../objs/PSP/SDL/Release/r_draw.o: In function `R_DrawViewBorder':
r_draw.c:(.text+0xef4): undefined reference to `HWR_DrawViewBorder'
../objs/PSP/SDL/Release/r_main.o: In function `R_RegisterEngineStuff':
r_main.c:(.text+0x1170): undefined reference to `HWR_AddCommands'
../objs/PSP/SDL/Release/r_main.o: In function `R_ExecuteSetViewSize':
r_main.c:(.text+0x180c): undefined reference to `HWR_InitTextureMapping'
r_main.c:(.text+0x1afc): undefined reference to `HWR_SetViewSize'
../objs/PSP/SDL/Release/v_video.o: In function `V_SetPalette':
v_video.c:(.text+0x168): undefined reference to `HWR_SetPalette'
../objs/PSP/SDL/Release/v_video.o: In function `V_SetPaletteLump':
v_video.c:(.text+0x1c4): undefined reference to `HWR_SetPalette'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawPatch':
v_video.c:(.text+0x340): undefined reference to `HWR_DrawPatch'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawFill':
v_video.c:(.text+0x56c): undefined reference to `HWR_DrawFill'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawFadeScreen':
v_video.c:(.text+0x7d8): undefined reference to `HWR_FadeScreenMenuBack'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawFadeConsBack':
v_video.c:(.text+0x900): undefined reference to `HWR_FadeScreenMenuBack'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawMappedPatch':
v_video.c:(.text+0xe50): undefined reference to `HWR_DrawMappedPatch'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawScaledPatch':
v_video.c:(.text+0x12a0): undefined reference to `HWR_DrawPatch'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawSmallScaledPatch':
v_video.c:(.text+0x1be4): undefined reference to `HWR_DrawSmallPatch'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawTranslucentPatch':
v_video.c:(.text+0x20c0): undefined reference to `HWR_DrawTranslucentPatch'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawFlatFill':
v_video.c:(.text+0x289c): undefined reference to `HWR_DrawFlatFill'
../objs/PSP/SDL/Release/v_video.o: In function `V_DrawPatchFill':
v_video.c:(.text+0x2c30): undefined reference to `HWR_DrawClippedPatch'
../objs/PSP/SDL/Release/w_wad.o: In function `W_UnloadWadFile':
w_wad.c:(.text+0xdc): undefined reference to `HWR_PrepLevelCache'
w_wad.c:(.text+0xe8): undefined reference to `HWR_CreateStaticLightmaps'
../objs/PSP/SDL/Release/w_wad.o: In function `W_CachePatchNum':
w_wad.c:(.text+0x6c8): undefined reference to `HWR_MakePatch'
../objs/PSP/SDL/Release/i_video.o: In function `SDL_SetMode':
i_video.c:(.text+0x338): undefined reference to `vidSurface'
i_video.c:(.text+0x338): additional relocation overflows omitted from the output

../objs/PSP/SDL/Release/i_video.o: In function `VID_Command_Info_f':
i_video.c:(.text+0x838): undefined reference to `vidSurface'
../objs/PSP/SDL/Release/i_video.o: In function `I_GetEvent':
i_video.c:(.text+0xe2c): undefined reference to `vidSurface'
i_video.c:(.text+0x155c): undefined reference to `vidSurface'
i_video.c:(.text+0x1578): undefined reference to `vidSurface'
../objs/PSP/SDL/Release/i_video.o:i_video.c:(.text+0x1624): more undefined refer
ences to `vidSurface' follow
../objs/PSP/SDL/Release/i_video.o: In function `I_UpdateNoBlit':
i_video.c:(.text+0x166c): undefined reference to `OglSdlFinishUpdate'
../objs/PSP/SDL/Release/i_video.o: In function `I_FinishUpdate':
i_video.c:(.text+0x1684): undefined reference to `vidSurface'
i_video.c:(.text+0x1898): undefined reference to `HWR_drawAMline'
i_video.c:(.text+0x1978): undefined reference to `HWR_drawAMline'
i_video.c:(.text+0x19a8): undefined reference to `vidSurface'
i_video.c:(.text+0x1af8): undefined reference to `vidSurface'
i_video.c:(.text+0x1b14): undefined reference to `vidSurface'
i_video.c:(.text+0x1b28): undefined reference to `vidSurface'
i_video.c:(.text+0x1b68): undefined reference to `vidSurface'
../objs/PSP/SDL/Release/i_video.o:i_video.c:(.text+0x1b94): more undefined refer
ences to `vidSurface' follow
../objs/PSP/SDL/Release/i_video.o: In function `I_FinishUpdate':
i_video.c:(.text+0x1e94): undefined reference to `OglSdlFinishUpdate'
../objs/PSP/SDL/Release/i_video.o: In function `I_SetPalette':
i_video.c:(.text+0x1f60): undefined reference to `vidSurface'
../objs/PSP/SDL/Release/i_video.o: In function `I_StartupGraphics':
i_video.c:(.text+0x29d8): undefined reference to `hwdriver'
i_video.c:(.text+0x29e0): undefined reference to `hwdriver'
i_video.c:(.text+0x29e8): undefined reference to `hwdriver'
i_video.c:(.text+0x2b94): undefined reference to `OglSdlSurface'
i_video.c:(.text+0x2bdc): undefined reference to `OglSdlSurface'
i_video.c:(.text+0x2c30): undefined reference to `vidSurface'
../objs/PSP/SDL/Release/i_video.o: In function `I_ShutdownGraphics':
i_video.c:(.text+0x2d8c): undefined reference to `vidSurface'
i_video.c:(.text+0x2db4): undefined reference to `OglSdlShutdown'
../objs/PSP/SDL/Release/i_video.o: In function `VID_SetMode':
i_video.c:(.text+0x2f28): undefined reference to `vidSurface'
i_video.c:(.text+0x2f8c): undefined reference to `OglSdlSurface'
i_video.c:(.text+0x2fd8): undefined reference to `OglSdlSurface'
i_video.c:(.text+0x3044): undefined reference to `vidSurface'
i_video.c:(.text+0x3058): undefined reference to `OglSdlSurface'
i_video.c:(.text+0x308c): undefined reference to `vidSurface'
../objs/PSP/SDL/Release/hwsym_sdl.o: In function `hwSym':
hwsym_sdl.c:(.text+0x44): undefined reference to `Init'
hwsym_sdl.c:(.text+0x4c): undefined reference to `Init'
hwsym_sdl.c:(.text+0x64): undefined reference to `Draw2DLine'
hwsym_sdl.c:(.text+0x6c): undefined reference to `Draw2DLine'
hwsym_sdl.c:(.text+0x84): undefined reference to `DrawPolygon'
hwsym_sdl.c:(.text+0x8c): undefined reference to `DrawPolygon'
hwsym_sdl.c:(.text+0xa4): undefined reference to `SetBlend'
hwsym_sdl.c:(.text+0xac): undefined reference to `SetBlend'
hwsym_sdl.c:(.text+0xc4): undefined reference to `ClearBuffer'
hwsym_sdl.c:(.text+0xcc): undefined reference to `ClearBuffer'
hwsym_sdl.c:(.text+0xe4): undefined reference to `SetTexture'
hwsym_sdl.c:(.text+0xec): undefined reference to `SetTexture'
hwsym_sdl.c:(.text+0x104): undefined reference to `ReadRect'
hwsym_sdl.c:(.text+0x10c): undefined reference to `ReadRect'
hwsym_sdl.c:(.text+0x124): undefined reference to `GClipRect'
hwsym_sdl.c:(.text+0x12c): undefined reference to `GClipRect'
hwsym_sdl.c:(.text+0x144): undefined reference to `ClearMipMapCache'
hwsym_sdl.c:(.text+0x14c): undefined reference to `ClearMipMapCache'
hwsym_sdl.c:(.text+0x164): undefined reference to `SetSpecialState'
hwsym_sdl.c:(.text+0x16c): undefined reference to `SetSpecialState'
hwsym_sdl.c:(.text+0x184): undefined reference to `OglSdlSetPalette'
hwsym_sdl.c:(.text+0x18c): undefined reference to `OglSdlSetPalette'
hwsym_sdl.c:(.text+0x1a4): undefined reference to `GetTextureUsed'
hwsym_sdl.c:(.text+0x1ac): undefined reference to `GetTextureUsed'
hwsym_sdl.c:(.text+0x1c4): undefined reference to `DrawMD2'
hwsym_sdl.c:(.text+0x1cc): undefined reference to `DrawMD2'
hwsym_sdl.c:(.text+0x1e4): undefined reference to `SetTransform'
hwsym_sdl.c:(.text+0x1ec): undefined reference to `SetTransform'
hwsym_sdl.c:(.text+0x204): undefined reference to `GetRenderVersion'
hwsym_sdl.c:(.text+0x20c): undefined reference to `GetRenderVersion'
collect2: ld returned 1 exit status
make: *** [../bin/PSP/Release/SRB2PSP.elf] Error 1
make: Leaving directory `/home/user/srb2_sc/src'

What should I do now?

Sonict
 
Sonict, you need to do a clean frist
like this, "make -C src PSP=1 NOHW=1 clean"
don't start adding and removing tags in the middle of a build
 
I did It!!!!!!

Thank you, Logan

I did not know how to clean it up when a build failed. I thought that Cygwin did it by itself.

It now only errors out when I try to compile it using SDL.

Here is a screenshot in an emulator for how SRB2 would look like on a PSP:


Here is some tips that can make SRB2 better for PSP:
Code:
 In the makefile for the PSP...

First thing: PSP_EBOOT_ICON = ICON0.PNG < this must be in PNG format at a resolution of "144 x 80" (Number 1 in picture)

Second Thing: PSP_EBOOT_TITLE = Doom-PSP V0.03 < Change name to what ever you want the name to be. (Number 2 in picture)

Third Thing: Add this line: PSP_EBOOT_BACKGROUND = PIC1.PNG < this must be in PNG format and have a resolution of "480 x 272" (Number 3 in picture)

I believe that this is correct. I got this info from various forums.

Regards,

Sonict
 
Re: I did It!!!!!!

Sonict said:
Here is some tips that can make SRB2 better for PSP:
Code:
 In the makefile for the PSP...

First thing: PSP_EBOOT_ICON = ICON0.PNG < this must be in PNG format at a resolution of "144 x 80" (Number 1 in picture)

Second Thing: PSP_EBOOT_TITLE = Doom-PSP V0.03 < Change name to what ever you want the name to be. (Number 2 in picture)

Third Thing: Add this line: PSP_EBOOT_BACKGROUND = PIC1.PNG < this must be in PNG format and have a resolution of "480 x 272" (Number 3 in picture)

I believe that this is correct. I got this info from various forums.

Regards,

Sonict

Done and Done, svn update
 
Teaser Screenshot:

Here is a teaser screenshot of the main menu where you would select your homebrew on the PSP:



What files need to go where the eboot is:

srb2.srb 3drend.dll(really a WAD) *.wpn *.plr *.dta

Now to solve the problem of SRB2 not wanting to load up any files and creating an empty log...

Sonict
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top