forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trying to build jpg from libjpg

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Apr 16, 2007 3:22 am    Post subject: Trying to build jpg from libjpg Reply with quote

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
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Mon Apr 16, 2007 4:25 am    Post subject: Reply with quote

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

evilo
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Apr 16, 2007 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
n2liquid



Joined: 02 Jan 2007
Posts: 4

PostPosted: Tue May 01, 2007 12:46 pm    Post subject: Reply with quote

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

cya
Back to top
View user's profile Send private message
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Thu Jun 14, 2007 10:40 pm    Post subject: Reply with quote

Fixed this up in svn.
The method of displaying the image is strange and doesnt produce a nice picture.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group