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!
Locking for png.h
Thanks for the quick answer!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
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?
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.
Cheers,
71M
If not, run the following from your command shell, Linux/Cygwin etc.
Code: Select all
svn export svn://svn.ps2dev.org/psp
71M
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!
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!