Page 1 of 1

Trying to build jpg from libjpg

Posted: Mon Apr 16, 2007 3:22 am
by cosmito
Hi,

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.
Anyone have a clue ?
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
I'm quite new to PS2 development and makefiles issues. Is there something I am missing ?

Thanks

Posted: Mon Apr 16, 2007 4:25 am
by evilo
If i'm not wrong, you have to add -ldebug as well.

evilo

Posted: Mon Apr 16, 2007 6:19 am
by cosmito
evilo wrote:If i'm not wrong, you have to add -ldebug as well.
evilo
Hmm, add it where ?

I find odd this being in snv and not working...

Posted: Tue May 01, 2007 12:46 pm
by n2liquid
In your makefile:
EE_LIBS = -L$(LIBJPG)/lib -ljpg -ldebug

cya

Posted: Thu Jun 14, 2007 10:40 pm
by radad
Fixed this up in svn.
The method of displaying the image is strange and doesnt produce a nice picture.