gsLib and libjpg
Posted: Tue Jun 28, 2005 1:11 am
Hi to all, i need help :)
i'm working on tool in gslib and i need to use libjpg but i have problem with make file:
in subdir LIB i have put libgslib.a and libjpg.a
in subdir INC i have put all needed file include by two lib
when i compile:
how to solve this problem?
the main jpg.cpp have include libjpg.h
help please
sincro
i'm working on tool in gslib and i need to use libjpg but i have problem with make file:
Code: Select all
EE_BIN = jpg.elf
EE_OBJS = jpg.o
EE_LIBS += -lgcc -lgs -ljpg -lc -lkernel -lc -lsyscall -ldebug -lsyscall -lkernel
EE_INCS += -I$ ./INC
EE_LDFLAGS += -L$ ./LIB
all: $(EE_BIN)
clean:
del *.elf *.o *.a
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
in subdir INC i have put all needed file include by two lib
when i compile:
Code: Select all
ee-g++ -D_EE -O2 -G0 -Wall -IC:\PS2Dev\COMPILER\LIB\PS2SDK/ee/include -IC:\PS2D
ev\COMPILER\LIB\PS2SDK/common/include -I. -I./INC -c jpg.cpp -o jpg.o
ee-gcc -mno-crt0 -TC:\PS2Dev\COMPILER\LIB\PS2SDK/ee/startup/linkfile -LC:\PS2Dev
\COMPILER\LIB\PS2SDK/ee/lib -L./LIB \
-o jpg.elf C:\PS2Dev\COMPILER\LIB\PS2SDK/ee/startup/crt0.o jpg.o
-lgcc -lgs -ljpg -lc -lkernel -lc -lsyscall -ldebug -lsyscall -lkernel -lc -lke
rnel
jpg.o: In function `displayjpeg(jpgData*)':
jpg.o(.text+0x84): undefined reference to `jpgReadImage(jpgData*, unsigned char*
)'
jpg.o(.text+0x94): undefined reference to `jpgClose(jpgData*)'
jpg.o: In function `main':
jpg.o(.text+0x218): undefined reference to `jpgOpen(char*)'
jpg.o(.data+0x15): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [jpg.elf] Error 1
the main jpg.cpp have include libjpg.h
help please
sincro