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 

pspgl test programs won't compile under cygwin

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



Joined: 20 Oct 2005
Posts: 10

PostPosted: Sun Apr 16, 2006 5:48 pm    Post subject: pspgl test programs won't compile under cygwin Reply with quote

Hi everyone,

I'm a professional artist/animator hoping to enter the psp homebrew scene and create some cool 2D games to share with others. I have created simple games in Java and Flash but would like to move onto handhelds and later on for next gen consoles (mainly ps3). I'm just starting out so I'm hoping some of you real programmers can help get me get going here.

You see, I have chosen to use pspgl (due to hardware acceleration) but for some reason I can't get any of the test programs that came with it to compile under cygwin. Everytime I try to compile something I immediately get the following error

$ make install
convert firefox.png rgba:firefox.raw
invalid Parameter - rgba:firefox.raw
make: *** [firefox.raw] Error 4

I'm guessing the problem lies with the convert command that is executed. When I type convert /? it states it's function is to convert FAT volumes to NTFS which doesn't sound right in this case. The psptoolchain, pspgl, zlib and libpng packages appear to be installed correctly so I can't figure out what I'm doing wrong.

Also, what is the absolute fastest method of displaying images on the screen? I am planning to create a game in the near future that will need to display fullscreen 480 by 272 images (with the ability to rotate, scale, and support alpha blending) very quickly so is the pspgl API a good choice or is there a better way of doing this?

Thanks.
Back to top
View user's profile Send private message
breaKdown



Joined: 23 Oct 2005
Posts: 13

PostPosted: Mon Apr 17, 2006 4:28 am    Post subject: Reply with quote

you first need to type "make" to compile the project ant then "make insttall" to install ypur compiled files!
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Mon Apr 17, 2006 3:03 pm    Post subject: Reply with quote

The problem is that 'convert' in cygwin isn't the same program as on a real unix system. It's expected to convert png files to raw, but it doesn't.

I think I fixed it by making sure ImageMagick cygwin package was installed properly.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
NeoXeno



Joined: 20 Oct 2005
Posts: 10

PostPosted: Wed Apr 19, 2006 4:41 pm    Post subject: Reply with quote

Thanks Jim, it worked! I downloaded the ImageMagick unix binary from imagemagick.org and copied all the files in the bin folder to cygwin/bin and this overrode the old 'convert' to the correct one. Strange thing is that ImageMagick was set to install (along with all packages in devel) when I installed Cygwin.

I recieved some errors when trying to compile some pspgl based programs but I easily corrected the problem and I am finally on my way to creating some demos of my own.

Thanks again!
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Mon May 15, 2006 7:36 pm    Post subject: Reply with quote

After installing among others ImageMagic, zlib, and pngtools, I got the makefile to output .elf files.

Now in the old days when I was working on p-sprint, I could just copy these to anywhere on my memorystick, and run them with FileAssistant+

However, I can't anymore. I get an auto-shutdown when I try, after displaying the 1.0b loader message. Is that normal? Has something changed that I missed?

And if so, what's the best/easiest way to overcome this? I don't know how to change the makefile to output all pbps, for example - one, sure, but not automatically for all of them ...

If anyone has any ideas, that'd be great!
Back to top
View user's profile Send private message
Gary13579



Joined: 15 Aug 2005
Posts: 93

PostPosted: Tue May 16, 2006 1:35 pm    Post subject: Reply with quote

Arwin wrote:
After installing among others ImageMagic, zlib, and pngtools, I got the makefile to output .elf files.

Now in the old days when I was working on p-sprint, I could just copy these to anywhere on my memorystick, and run them with FileAssistant+

However, I can't anymore. I get an auto-shutdown when I try, after displaying the 1.0b loader message. Is that normal? Has something changed that I missed?

And if so, what's the best/easiest way to overcome this? I don't know how to change the makefile to output all pbps, for example - one, sure, but not automatically for all of them ...

If anyone has any ideas, that'd be great!

If you are using Cygwin, I've heard people saying that pspgl doesn't work all that well in it. If you have access to a linux installation, try compiling your code on there and check to see if it works.
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