pspgl problem *solved

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
faldore
Posts: 3
Joined: Mon Dec 05, 2005 2:51 pm

pspgl problem *solved

Post by faldore »

I would appreciate some help, if anyone is willing.

I installed the toolchain as root.
I installed pspgl as user, in ~/psp/pspgl

Code: Select all

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: Select all

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: Select all

/usr/include/png.h
/usr/include/libpng12/png.h
I checked out the Makefile. It says:

Code: Select all

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
faldore
Posts: 3
Joined: Mon Dec 05, 2005 2:51 pm

Post by faldore »

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: Select all

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
Post Reply