| View previous topic :: View next topic |
| Author |
Message |
cosmito
Joined: 04 Mar 2007 Posts: 314 Location: Portugal
|
Posted: Mon Apr 16, 2007 3:22 am Post subject: Trying to build jpg from libjpg |
|
|
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: | 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: | 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 |
|
| Back to top |
|
 |
evilo

Joined: 22 Apr 2004 Posts: 230
|
Posted: Mon Apr 16, 2007 4:25 am Post subject: |
|
|
If i'm not wrong, you have to add -ldebug as well.
evilo _________________ http://psxdev.info/evilo/ |
|
| Back to top |
|
 |
cosmito
Joined: 04 Mar 2007 Posts: 314 Location: Portugal
|
Posted: Mon Apr 16, 2007 6:19 am Post subject: |
|
|
| 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... |
|
| Back to top |
|
 |
n2liquid
Joined: 02 Jan 2007 Posts: 4
|
Posted: Tue May 01, 2007 12:46 pm Post subject: |
|
|
In your makefile:
EE_LIBS = -L$(LIBJPG)/lib -ljpg -ldebug
cya |
|
| Back to top |
|
 |
radad
Joined: 19 May 2004 Posts: 246 Location: Melbourne, Australia
|
Posted: Thu Jun 14, 2007 10:40 pm Post subject: |
|
|
Fixed this up in svn.
The method of displaying the image is strange and doesnt produce a nice picture. |
|
| Back to top |
|
 |
|