| View previous topic :: View next topic |
| Author |
Message |
marvin
Joined: 14 Oct 2005 Posts: 3
|
Posted: Fri Oct 14, 2005 8:00 pm Post subject: Locking for png.h |
|
|
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! |
|
| Back to top |
|
 |
71M
Joined: 21 Jun 2005 Posts: 122 Location: London
|
Posted: Sun Oct 16, 2005 3:36 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
marvin
Joined: 14 Oct 2005 Posts: 3
|
Posted: Sun Oct 16, 2005 5:01 am Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
71M
Joined: 21 Jun 2005 Posts: 122 Location: London
|
Posted: Sun Oct 16, 2005 5:32 am Post subject: |
|
|
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: | | svn export svn://svn.ps2dev.org/psp |
Cheers,
71M |
|
| Back to top |
|
 |
marvin
Joined: 14 Oct 2005 Posts: 3
|
Posted: Sun Oct 16, 2005 10:05 pm Post subject: |
|
|
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! |
|
| Back to top |
|
 |
71M
Joined: 21 Jun 2005 Posts: 122 Location: London
|
Posted: Mon Oct 17, 2005 5:29 am Post subject: |
|
|
Brilliant!
Happy coding! :)
71M |
|
| Back to top |
|
 |
|