18.08.2013, 16:07
Hallo,
ich habe soeben das pspsdk (minpspw) auf meinem ubuntu 13.04 installiert.
Das Problem ist nur das ich gerne eine Binary kompilieren möchte, aber ich immer diesesn libmpfr.so.1 Fehler bekomme.
Die Globalen Variablen müsste ich aber richtig gesetzt haben, und CC1.exe ist ja auch in dem Ordner.
Er scheint jedoch ein Problem mit ner Library zu haben, weil er sie nicht findet.
Wie behebe ich den Fehler ?
Terminal:
ich habe soeben das pspsdk (minpspw) auf meinem ubuntu 13.04 installiert.
Das Problem ist nur das ich gerne eine Binary kompilieren möchte, aber ich immer diesesn libmpfr.so.1 Fehler bekomme.
Die Globalen Variablen müsste ich aber richtig gesetzt haben, und CC1.exe ist ja auch in dem Ordner.
Er scheint jedoch ein Problem mit ner Library zu haben, weil er sie nicht findet.
Wie behebe ich den Fehler ?
Terminal:
Code:
user@ubuntu:~/Arbeitsfläche/projects/test$ make
psp-gcc -D PSP -I /usr/local/pspsdk/psp/sdk/include -W -Wall -O2 -G0 -fno-pic -mno-abicalls -w -fomit-frame-pointer -S main.c -o main.s
/usr/local/pspsdk/bin/../libexec/gcc/psp/4.3.5/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
Hier mein Makefile:
Code:
PSPSDK=$(shell psp-config --pspsdk-path)
PSPDEV=$(shell psp-config --pspdev-path)
INCLUDE=$(PSPSDK)/include
all: main
clean:
rm -rf *~ *.o *.elf *.bin main.s *.bin hx
CC = psp-gcc
CFLAGS := -D PSP -I $(INCLUDE) -W -Wall -O2 -G0 -fno-pic -mno-abicalls -w -fomit-frame-pointer
ASM = psp-as
sdk.o: sdk.S
$(ASM) sdk.S -o sdk.o
lib.o: lib.c
$(CC) $(CFLAGS) -S lib.c -o lib.s
$(ASM) lib.s -o lib.o
main.o: main.c
$(CC) $(CFLAGS) -S main.c -o main.s
$(ASM) main.s -o main.o
main: main.o lib.o sdk.o linker.x
$(PSPDEV)/bin/psp-ld -T linker.x -L$(PSPSDK)/lib main.o lib.o sdk.o -o main.elf
$(PSPDEV)/bin/psp-strip -s main.elf
$(PSPDEV)/bin/psp-objcopy -O binary main.elf hx