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 

NOOB: How to blit images & print to coordinates?

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



Joined: 05 Oct 2005
Posts: 87

PostPosted: Mon Oct 31, 2005 7:12 am    Post subject: NOOB: How to blit images & print to coordinates? Reply with quote

Yep - Noob question. How do I blit images or print text to coordinates? I've already successfully created the Hello World application, along with a counter, and a program that animates a smiley when you press O. Yeah, simple stuff... Anyways, I haven't even blitted yet, so if you can lead me in the right direction atleast there then I'll figure out how to blit to coordinates...

I already know LUA and some other scripting languages (AutoItv3 and ACTS, mostly), but I want to learn C for more flexibility. So far it's not so easy :p

Thanks,
~JDB
Back to top
View user's profile Send private message Send e-mail AIM Address
JoshDB



Joined: 05 Oct 2005
Posts: 87

PostPosted: Mon Oct 31, 2005 10:09 am    Post subject: Reply with quote

On blitting - I found a little out, but I'm still stuck. I check the SVN at PSPDev.org and downloaded zlib and libpng. I extracted them and placed both of them in my home/user/** directories, ** being zlib and libpng. I directed cygwin to the zlib directory and entered 'make', and it did so. I went into the libpng scripts directory and copied makefile.cygwin to the parent dir of libpng and renamed it to Makefile - Sent 'make' to the dir, and it installed for a while... Then it said

Quote:
make: *** No rule to make target 'scripts/png32ms.def', needed by 'libpng.def'
Stop.


I don't really know if I properly installed zlib, let alone libpng.

Help?
Back to top
View user's profile Send private message Send e-mail AIM Address
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Mon Oct 31, 2005 11:38 am    Post subject: Reply with quote

Hi JoshDB,
I'm presuming that you downloaded the SDK to somewhere on your HDD.
CD into your zlib folder and type 'make', once that is completed type 'make install' and the necessary files will be copied into your Cygwin PSP folder.
Do exactly the same for libpng, it'll all get copied automatically to the correct folders again with the 'make install' command.

Hope that helps.

Cheers,
71M
Back to top
View user's profile Send private message
Paco



Joined: 09 Oct 2005
Posts: 54

PostPosted: Mon Oct 31, 2005 12:30 pm    Post subject: Reply with quote

JoshDB wrote:
copied makefile.cygwin to the parent dir of libpng and renamed it to Makefile

You tried to compile libpng for Windows / Cygwin, not for PSP.
_________________
Paco
Back to top
View user's profile Send private message
JoshDB



Joined: 05 Oct 2005
Posts: 87

PostPosted: Tue Nov 01, 2005 3:00 am    Post subject: Reply with quote

I used make install on zlib and it worked like a charm - But I can't find the libpng for psp. I know it's in the svn at ps2dev.org, but how the hell do I download it!? All I can do is view the files through the svn browser...

Anyways, thanks guys. Atleast I got zlib ready to go.
Back to top
View user's profile Send private message Send e-mail AIM Address
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Tue Nov 01, 2005 3:07 am    Post subject: Reply with quote

Install http://tortoisesvn.tigris.org/ and then browse to the libpng folder as usual, right click the libpng folder and select 'Export'
It'll then ask you were you want to download the folder to, nice and easy :)

Cheers,
71M
Back to top
View user's profile Send private message
JoshDB



Joined: 05 Oct 2005
Posts: 87

PostPosted: Tue Nov 01, 2005 5:15 am    Post subject: Reply with quote

You're a godsend, 71M.

I got the files out of the repository. Staright from there. I tried sening 'make' to it (it was in the psptoolchain folder, name 'libpng.' zlib was already installed.), and it gave the same error. I copied the make.filecygwin and renamed it again, and it got further... Still stopped, though.

Damn, I'm thinking of going back to LUA.
Back to top
View user's profile Send private message Send e-mail AIM Address
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Tue Nov 01, 2005 5:59 am    Post subject: Reply with quote

Just to make sure you're doing everything right, download www.easy-monkey.co.uk/libpng.rar
Extract the package to c:/temp, open Cygwin, cd into c:/temp/libpng and type make.
On my install it then goes away and compiles libpng correctly.
It'll be interesting to see what it does on your installation.

Cheers,
71M
Back to top
View user's profile Send private message
JoshDB



Joined: 05 Oct 2005
Posts: 87

PostPosted: Tue Nov 01, 2005 8:49 am    Post subject: Reply with quote

make: *** [png.o] Error 1

That's preceded by about 60 lines of pointer errors.
Back to top
View user's profile Send private message Send e-mail AIM Address
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Tue Nov 01, 2005 8:56 am    Post subject: Reply with quote

Hmm, that leads me to suspect that something is either incorrect with your Cygwin installation or your PSPToolchain installation.
Could you post the full error message please?
Back to top
View user's profile Send private message
Akimaru



Joined: 19 Nov 2005
Posts: 1

PostPosted: Sat Nov 19, 2005 8:40 pm    Post subject: Reply with quote

Install Zlib first Rename the folders "zlib-x.x.x" and "libpng-x.x.x" (x.x.x is the version number) to zlib and libpng...put them both in the same parent folder
so you have:

From Install file
Code:

Your directory structure should look like this:

   ..       (the parent directory)
      libpng  (this directory)
          INSTALL (this file)
          README
          *.h
          *.c
          contrib
             gregbook
             pngminus
             pngsuite
             visupng
          projects
             beos
             c5builder (Borland)
             visualc6 (msvc)
             netware.txt
             wince.txt
          scripts
             makefile.*
          pngtest.png
          etc.
      zlib
          README
          *.h
          *.c
          contrib
          etc.


this should solve your problem.
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