Trying to build jpg from libjpg

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

Trying to build jpg from libjpg

Post 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
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

Post by evilo »

If i'm not wrong, you have to add -ldebug as well.

evilo
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

Post 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...
n2liquid
Posts: 4
Joined: Tue Jan 02, 2007 7:27 pm

Post by n2liquid »

In your makefile:
EE_LIBS = -L$(LIBJPG)/lib -ljpg -ldebug

cya
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

Post by radad »

Fixed this up in svn.
The method of displaying the image is strange and doesnt produce a nice picture.
Post Reply