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 

pspgl problem *solved

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



Joined: 05 Dec 2005
Posts: 3

PostPosted: Mon Dec 05, 2005 3:11 pm    Post subject: pspgl problem *solved Reply with quote

I would appreciate some help, if anyone is willing.

I installed the toolchain as root.
I installed pspgl as user, in ~/psp/pspgl
Code:
faldore@tux pspgl $ set | grep PSP
PSP_MOUNTDIR='~/psp/mountpoint'
PSP_REVISION=1.50
faldore@tux pspgl $ psp-config --psp-prefix
/usr/local/pspdev/psp
faldore@tux pspgl $ psp-config --pspsdk-path
/usr/local/pspdev/psp/sdk

When I do a 'make -C tests clean install' I get the following:
Code:
screenshot.c:5:17: error: png.h: No such file or directory

When I do a 'find / -name png.h 2>/dev/null' I get the following:
Code:
/usr/include/png.h
/usr/include/libpng12/png.h

I checked out the Makefile. It says:
Code:
CFLAGS = -g -Wall -O2 -G0 -fsingle-precision-constant -I. -I $(PSPPATH)/include -I $(PSPSDK)/include

To summarize, the PSPGL Makefile expects all include headers to be in the /usr/local/pspdev/psp/sdk/include directory, and there is no png.h in that directory.

Would it work to add my /usr/include to the Makefile? Or maybe I need to install a png library for PSP? Has anyone run into this before?

Thanks,
Eric
Back to top
View user's profile Send private message
faldore



Joined: 05 Dec 2005
Posts: 3

PostPosted: Tue Dec 06, 2005 4:05 am    Post subject: Reply with quote

Figured it out myself. I needed the zlib and libpng libraries installed. In case anyone else runs into it, here is how to fix it.

as root:
Code:
svn co svn://svn.ps2dev.org/psp/trunk/zlib
cd zlib
make && make install
cd ..
svn co svn://svn.ps2dev.org/psp/trunk/libpng
cd libpng
make && make install
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 -> PSP 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