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 

Locking for png.h

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



Joined: 14 Oct 2005
Posts: 3

PostPosted: Fri Oct 14, 2005 8:00 pm    Post subject: Locking for png.h Reply with quote

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
View user's profile Send private message
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Sun Oct 16, 2005 3:36 am    Post subject: Reply with quote

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
View user's profile Send private message
marvin



Joined: 14 Oct 2005
Posts: 3

PostPosted: Sun Oct 16, 2005 5:01 am    Post subject: Reply with quote

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
View user's profile Send private message
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Sun Oct 16, 2005 5:32 am    Post subject: Reply with quote

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
View user's profile Send private message
marvin



Joined: 14 Oct 2005
Posts: 3

PostPosted: Sun Oct 16, 2005 10:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Mon Oct 17, 2005 5:29 am    Post subject: Reply with quote

Brilliant!
Happy coding! :)

71M
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