Yes, I am going to.coolkehon wrote:so are you going to do it?
But seems not very easy.
I get the many errors compiling it. It cannot find printf, exit, fopen, fseek ... ALL libc function.
I don't know whether I do the right thing:
1. Modify the config.sub, add psp
2. Modify the configure file, so it won't get error about executable.
3. LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lpspuser -lc"
CFLAGS="-ffast-math -fsigned-char -G0"
I have also tried -lpsplibc. It also does not work.
4. ./configure --host=psp --prefix=$(psp-config --psp-prefix)
5. make
Some error like this:
Code: Select all
psp-gcc -g -O2 -Wall -o ../bin/find_sts find_sts_main.o -L../build/mipsallegrexel-elf/lib -L/opt/pspdev//psp/sdk/lib -L/opt/pspdev/psplib/ -lflite -lpsplibc -lm
/home/Liberty/programs/pspdev/bin/../lib/gcc/psp/4.3.2/../../../../psp/lib/crt0.o: In function `_start':
/home/Liberty/install/psptoolchain/build/pspsdk/src/startup/crt0.c:149: undefined reference to `sceKernelCreateThread'
/home/Liberty/install/psptoolchain/build/pspsdk/src/startup/crt0.c:150: undefined reference to `sceKernelStartThread'
find_sts_main.o: In function `save_sts':
/home/Liberty/install/flite-1.3-release/tools/find_sts_main.c:197: undefined reference to `_impure_ptr'
/home/Liberty/install/flite-1.3-release/tools/find_sts_main.c:197: relocation truncated to fit: R_MIPS_GPREL16 against `_impure_ptr'
find_sts_main.o: In function `main':
/home/Liberty/install/flite-1.3-release/tools/find_sts_main.c:226: undefined reference to `_impure_ptr'
/home/Liberty/install/flite-1.3-release/tools/find_sts_main.c:226: relocation truncated to fit: R_MIPS_GPREL16 against `_impure_ptr'
/home/Liberty/install/flite-1.3-release/tools/find_sts_main.c:236: undefined reference to `_impure_ptr'
/home/Liberty/install/flite-1.3-release/tools/find_sts_main.c:236: relocation truncated to fit: R_MIPS_GPREL16 against `_impure_ptr'
../build/mipsallegrexel-elf/lib/libflite.a(cst_error.o): In function `cst_errmsg':
/home/Liberty/install/flite-1.3-release/src/utils/cst_error.c:101: undefined reference to `_impure_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_error.c:101: relocation truncated to fit: R_MIPS_GPREL16 against `_impure_ptr'
../build/mipsallegrexel-elf/lib/libflite.a(cst_track_io.o): In function `cst_track_load_est':
/home/Liberty/install/flite-1.3-release/src/speech/cst_track_io.c:217: undefined reference to `atoi'
/home/Liberty/install/flite-1.3-release/src/speech/cst_track_io.c:219: undefined reference to `atoi'
../build/mipsallegrexel-elf/lib/libflite.a(cst_string.o): In function `cst_upcase':
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:146: undefined reference to `__ctype_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:146: relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:144: undefined reference to `__ctype_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:144: relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr'
../build/mipsallegrexel-elf/lib/libflite.a(cst_string.o): In function `cst_downcase':
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:132: undefined reference to `__ctype_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:132: relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:130: undefined reference to `__ctype_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_string.c:130: relocation truncated to fit: R_MIPS_GPREL16 against `__ctype_ptr'
../build/mipsallegrexel-elf/lib/libflite.a(cst_tokenstream.o): In function `ts_close':
/home/Liberty/install/flite-1.3-release/src/utils/cst_tokenstream.c:185: undefined reference to `_impure_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_tokenstream.c:185: relocation truncated to fit: R_MIPS_GPREL16 against `_impure_ptr'
../build/mipsallegrexel-elf/lib/libflite.a(cst_tokenstream.o): In function `ts_open':
/home/Liberty/install/flite-1.3-release/src/utils/cst_tokenstream.c:147: undefined reference to `_impure_ptr'
/home/Liberty/install/flite-1.3-release/src/utils/cst_tokenstream.c:147: relocation truncated to fit: R_MIPS_GPREL16 against `_impure_ptr'
../build/mipsallegrexel-elf/lib/libflite.a(cst_val.o): In function `val_int':
/home/Liberty/install/flite-1.3-release/src/utils/cst_val.c:136: undefined reference to `atoi'
/opt/pspdev//psp/sdk/lib/libpsplibc.a(vprintf.o): In function `vprintf':
/home/Liberty/install/psptoolchain/build/pspsdk/src/libc/xprintf.c:973: undefined reference to `sceIoWrite'
/opt/pspdev//psp/sdk/lib/libpsplibc.a(fclose.o): In function `fclose':
/home/Liberty/install/psptoolchain/build/pspsdk/src/libc/stdio.c:115: undefined reference to `sceIoClose'
/opt/pspdev//psp/sdk/lib/libpsplibc.a(fopen.o): In function `fopen':
/home/Liberty/install/psptoolchain/build/pspsdk/src/libc/stdio.c:472: undefined reference to `sceIoOpen'
/opt/pspdev//psp/sdk/lib/libpsplibc.a(fread.o): In function `fread':
/home/Liberty/install/psptoolchain/build/pspsdk/src/libc/stdio.c:646: undefined reference to `sceIoRead'