Post by moulinoski on Mar 2, 2011 17:41:24 GMT 1
I'm trying to compile Snes9xTYL (well, Ruka's version now anyway) in Linux but... it pretty much refuses to do so. This is what I get when I do make (I edited my username and machine name out):
I have psptoolchain installed along with pspdev. I can compile the samples in the pspdev folder just fine. I've tried to figure out the problem myself by Googling it but nothing I find is useful.
(Also, I have my reasons for wanting to compile it myself rather than just putting the precompiled version on my psp, which I have actually)
Edit: Looks like this board's been long dead since at least last year... :/
_@_:~$ cd ./Desktop/s9xTYLsnaNOW/
_@_:~/Desktop/s9xTYLsnaNOW$ make
sh make_timestamp
make -f makefile_me
make[1]: Entering directory `/home/jorge/Desktop/s9xTYLsnaNOW'
makefile_me:75: warning: overriding commands for target `PARAM.SFO'
/usr/local/pspdev/psp/sdk/lib/build.mak:179: warning: ignoring old commands for target `PARAM.SFO'
psp-g++ -I. -Ipsp -Ipsp/me -Ipsp/openspc++ -Ipsp/adhoc -Izlib -Idanzeff -I. -I/usr/local/pspdev/psp/sdk/include -O3 -g -G0 -w -DFW3X -DPSP -D__PSP__ -DME_SOUND -I. -Ipsp -Ipsp/me -Ipsp/openspc++ -Ipsp/adhoc -Izlib -Idanzeff -I. -I/usr/local/pspdev/psp/sdk/include -O3 -g -G0 -w -DFW3X -DPSP -D__PSP__ -DME_SOUND -fno-exceptions -fno-rtti -D_PSP_FW_VERSION=150 -c -o psp/psp.o psp/psp.cpp
In file included from psp/psp.cpp:94:
./snes9x.h:194: error: ‘int32’ does not name a type
./snes9x.h:195: error: ‘int32’ does not name a type
./snes9x.h:196: error: ‘int32’ does not name a type
./snes9x.h:197: error: ‘int32’ does not name a type
./snes9x.h:198: error: ‘int32’ does not name a type
./snes9x.h:199: error: ‘int32’ does not name a type
./snes9x.h:341: error: ‘int32’ does not name a type
In file included from psp/psp.cpp:95:
./memmap.h:123: error: ‘int32’ has not been declared
./memmap.h:168: error: ‘int32’ does not name a type
./memmap.h:169: error: ‘int32’ does not name a type
In file included from ./getset.h:44,
from ./memmap.h:214,
from psp/psp.cpp:95:
./ppu.h:48: error: previous declaration of ‘uint32 os9x_ColorsChanged’ with ‘C++’ linkage
./ppu.h:268: error: conflicts with new declaration with ‘C’ linkage
In file included from ./getset.h:44,
from ./memmap.h:214,
from psp/psp.cpp:95:
./ppu.h: In function ‘uint8 REGISTER_4212()’:
./ppu.h:277: error: ‘struct SCPUState’ has no member named ‘V_Counter’
./ppu.h:278: error: ‘struct SCPUState’ has no member named ‘V_Counter’
./ppu.h:281: error: ‘struct SCPUState’ has no member named ‘Cycles’
./ppu.h:282: error: ‘struct SCPUState’ has no member named ‘V_Counter’
In file included from ./getset.h:47,
from ./memmap.h:214,
from psp/psp.cpp:95:
./sa1.h: At global scope:
./sa1.h:85: error: ‘int16’ does not name a type
./sa1.h:86: error: ‘int16’ does not name a type
./sa1.h:88: error: ‘int64’ does not name a type
In file included from ./memmap.h:214,
from psp/psp.cpp:95:
./getset.h: In function ‘uint8 S9xGetByte(uint32)’:
./getset.h:63: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:77: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:82: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:87: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:93: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:99: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:111: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:121: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h: In function ‘uint16 S9xGetWord(uint32)’:
./getset.h:146: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:165: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:171: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:177: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:184: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:191: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:202: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:220: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h: In function ‘void S9xSetByte(uint8, uint32)’:
./getset.h:247: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:269: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:276: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:283: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:290: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:301: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:313: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:326: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:339: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h: In function ‘void S9xSetWord(uint16, uint32)’:
./getset.h:365: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:398: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:406: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:414: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:422: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:434: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:450: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:464: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h:479: error: ‘struct SCPUState’ has no member named ‘Cycles’
./getset.h: In function ‘void S9xSetPCBase(uint32)’:
./getset.h:572: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:573: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:573: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:584: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:585: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:593: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:594: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:602: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:603: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:612: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:613: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:621: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:622: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:629: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:630: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:637: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:638: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
./getset.h:651: error: ‘struct SCPUState’ has no member named ‘MemSpeed’
./getset.h:652: error: ‘struct SCPUState’ has no member named ‘MemSpeedx2’
In file included from psp/psp.cpp:100:
./apu.h: At global scope:
./apu.h:161: error: expected initializer before ‘*’ token
./apu.h:191: error: ‘int32’ does not name a type
./apu.h:192: error: ‘int32’ does not name a type
./apu.h:194: error: ‘int32’ does not name a type
./apu.h:195: error: ‘int32’ does not name a type
./apu.h:200: error: ‘int32’ does not name a type
In file included from psp/psp.cpp:103:
./soundux.h:127: error: ‘int32’ does not name a type
./soundux.h:128: error: ‘int32’ does not name a type
./soundux.h:167: error: ‘int32’ does not name a type
./soundux.h:169: error: ‘int32’ does not name a type
./soundux.h:170: error: ‘int32’ does not name a type
psp/psp.cpp:305: error: ‘int32’ does not name a type
psp/psp.cpp: In function ‘int me_MixSound(me_sound_t*)’:
psp/psp.cpp:857: error: ‘struct SIAPU’ has no member named ‘OneCycle’
psp/psp.cpp:879: error: ‘Uncache_APU_Cycles_p’ was not declared in this scope
psp/psp.cpp:879: error: ‘struct SAPU’ has no member named ‘Cycles’
psp/psp.cpp:879: error: ‘struct SAPU’ has no member named ‘Cycles’
psp/psp.cpp:879: error: ‘struct SAPU’ has no member named ‘Cycles’
psp/psp.cpp:879: error: ‘struct SAPU’ has no member named ‘Cycles’
psp/psp.cpp:879: error: ‘struct SAPU’ has no member named ‘Cycles’
psp/psp.cpp: In function ‘int S9xProcessSound(SceSize, void*)’:
psp/psp.cpp:931: error: ‘struct SIAPU’ has no member named ‘OneCycle’
In file included from psp/psp.cpp:1848:
psp/psp_state.c: In function ‘int os9x_load(const char*)’:
psp/psp_state.c:87: error: ‘struct SCPUState’ has no member named ‘NextEvent’
psp/psp_state.c:87: error: ‘struct SCPUState’ has no member named ‘V_Counter’
psp/psp_state.c:87: error: ‘struct SCPUState’ has no member named ‘NextEvent’
psp/psp_state.c: In function ‘int os9x_loadfname(const char*)’:
psp/psp_state.c:114: error: ‘struct SCPUState’ has no member named ‘NextEvent’
psp/psp_state.c:114: error: ‘struct SCPUState’ has no member named ‘V_Counter’
psp/psp_state.c:114: error: ‘struct SCPUState’ has no member named ‘NextEvent’
psp/psp_state.c: In function ‘int os9x_loadzsnes(char*)’:
psp/psp_state.c:134: error: ‘struct SCPUState’ has no member named ‘NextEvent’
psp/psp_state.c:134: error: ‘struct SCPUState’ has no member named ‘V_Counter’
psp/psp_state.c:134: error: ‘struct SCPUState’ has no member named ‘NextEvent’
In file included from psp/psp.cpp:1850:
psp/psp.cpp: At global scope:
psp/psp.cpp:250: error: previous declaration of ‘IMAGE* icons [8]’ with ‘C++’ linkage
psp/psp_utils.c:154: error: conflicts with new declaration with ‘C’ linkage
psp/psp.cpp:251: error: previous declaration of ‘int icons_col [8]’ with ‘C++’ linkage
psp/psp_utils.c:155: error: conflicts with new declaration with ‘C’ linkage
psp/psp.cpp: In function ‘void initvar_withdefault()’:
psp/psp.cpp:1906: error: ‘os9x_ShowSub’ was not declared in this scope
psp/psp.cpp: In function ‘int init_snes_rom()’:
psp/psp.cpp:2932: error: ‘struct SSettings’ has no member named ‘AutoSaveDelay’
make[1]: *** [psp/psp.o] Error 1
make[1]: Leaving directory `/home/jorge/Desktop/s9xTYLsnaNOW'
make: *** [me] Error 2
_@_:~/Desktop/s9xTYLsnaNOW$
I have psptoolchain installed along with pspdev. I can compile the samples in the pspdev folder just fine. I've tried to figure out the problem myself by Googling it but nothing I find is useful.
(Also, I have my reasons for wanting to compile it myself rather than just putting the precompiled version on my psp, which I have actually)
Edit: Looks like this board's been long dead since at least last year... :/