Locking for png.h

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

Moderators: cheriff, TyRaNiD

Post Reply
marvin
Posts: 3
Joined: Fri Oct 14, 2005 7:41 pm

Locking for png.h

Post by marvin »

Hello!

I downloaded the "random circle generator" from the "Jason's stuff!"
but when I try to compile it using the psptoolchain20050801(oopo) with cygwin,
I get an error telling me "png.h: No such file or directory" followed by some errors (because of the missing file).

Is there some special library I can download (or have to compile?) to get the file?

note: I have successfully compiled other examples like "hello world", so there's noting wrong with the compiler itself.

Thanks in advance for any answer!
71M
Posts: 122
Joined: Tue Jun 21, 2005 5:28 am
Location: London

Post by 71M »

You should have a folder under your PSPSDK/trunk called libpng.
Run 'make' and then run 'make install' and you should get the necessary libpng files, including png.h copied to your PSPSDK install directory.

Hope that helps.

Cheers,
71M
marvin
Posts: 3
Joined: Fri Oct 14, 2005 7:41 pm

Post by marvin »

71M wrote:You should have a folder under your PSPSDK/trunk called libpng.
Run 'make' and then run 'make install' and you should get the necessary libpng files, including png.h copied to your PSPSDK install directory.

Hope that helps.

Cheers,
71M
Thanks for the quick answer!

However, I can't find the PSPSDK/trunk folder, is there some special command I need to use with the toolchain.sh script to get it?
71M
Posts: 122
Joined: Tue Jun 21, 2005 5:28 am
Location: London

Post by 71M »

Are you downloading all of the SDK from svn://svn.ps2dev.org/psp ?
If not, run the following from your command shell, Linux/Cygwin etc.

Code: Select all

svn export svn://svn.ps2dev.org/psp
Cheers,
71M
marvin
Posts: 3
Joined: Fri Oct 14, 2005 7:41 pm

Post by marvin »

Thanks for all help, 71M!
I had to install the zlib before I could make the libpng, but now I got the file and it does not complain about it anymore. :)

Now I get another error about line 28 in pspcwd.c did an undefined reference to '__psp_argv_0'
The pspcwd.c is a part of newlib, maybe I should try to reinstall it?
Or do I need some more libraries?

EDIT: I downloaded and installed the latest collection of the compiler, sdk and the libraries, and now it works!
71M
Posts: 122
Joined: Tue Jun 21, 2005 5:28 am
Location: London

Post by 71M »

Brilliant!
Happy coding! :)

71M
Post Reply