I'm having trouble to build jpg.c from
svn://svn.ps2dev.org/ps2/trunk/libjpg
In the libjpg\jpg directory, I call "make" after setting the LIBJPG and GSKIT environment variables.
Here is what I get :
Code: Select all
make
ee-gcc -D_EE -O2 -G0 -Wall -DHAVE_LIBJPG -fno-builtin-printf -IJ:\temp\ps2dev\s
ources\libjpg\libjpg\/include -IJ:/temp/ps2dev/ps2sdk/ee/include -IJ:/temp/ps2de
v/ps2sdk/common/include -IJ:\temp\ps2dev\gsKit\/ee/dma/include -IJ:\temp\ps2dev\
gsKit\/ee/gs/include -IJ:\temp\ps2dev\sources\libjpg\libjpg\/include -IJ:\temp\p
s2dev\gsKit\/ee/gs/include -IJ:\temp\ps2dev\gsKit\/ee/dma/include -I/usr/local/
ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c jpg.c -o jpg.o
jpg.c: In function `displayjpeg':
jpg.c(25) : warning: assignment from incompatible pointer type
jpg.c: In function `main':
jpg.c(75) : warning: implicit declaration of function `ps2_screenshot_jpg'
ee-gcc -D_EE -O2 -G0 -Wall -DHAVE_LIBJPG -fno-builtin-printf -IJ:\temp\ps2dev\s
ources\libjpg\libjpg\/include -IJ:/temp/ps2dev/ps2sdk/ee/include -IJ:/temp/ps2de
v/ps2sdk/common/include -IJ:\temp\ps2dev\gsKit\/ee/dma/include -IJ:\temp\ps2dev\
gsKit\/ee/gs/include -IJ:\temp\ps2dev\sources\libjpg\libjpg\/include -IJ:\temp\p
s2dev\gsKit\/ee/gs/include -IJ:\temp\ps2dev\gsKit\/ee/dma/include -I/usr/local/
ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c jpegtest.c -o jpegtest.o
make: *** No rule to make target `screenshot.o', needed by `jpg.elf'. Stop.
The makefile should have a rule for screenshot.
This is the Makefile for jpg.c
Code: Select all
EE_BIN = jpg.elf
EE_OBJS = jpg.o jpegtest.o screenshot.o
EE_INCS = -I$(LIBJPG)/include
EE_LIBS = -L$(LIBJPG)/lib -ljpg
all: $(EE_BIN) postprocess
clean:
rm -f *.elf *.o *.a
postprocess:
ee-strip $(EE_BIN)
include $(GSKIT)/Makefile.pref
include $(GSKIT)/Makefile.global
#include $(PS2SDKSRC)/Defs.make
#include $(PS2SDKSRC)/ee/Rules.make
#include $(PS2SDKSRC)/ee/Rules.release
Thanks