Thanks, I'll have another stab at Cyngwin.
-edit- Do you know how to manually download the package you mentioned in that thread?
(Sorry for the dumb questions, but I've never used cyngwin before other than for about 20 mins a year or so back)
Does anyone know of a reason why cygwin would omit most of it's dev tools btw? I recall it taking an hour or so to install before, but now it takes under 10 mins and doesn't install vital tools like cc1.
C:\pspdev\pspgl\tests>make
C:\convert firefox.png rgba:firefox.raw
(sym=`echo firefox | tr '-' '_'`; \
echo -e ".data\n.global ${sym}_start\n${sym}_start:\n\t.incbin \"firefox.raw\""
| psp-as -o firefox.o)
psp-gcc -std=gnu99 -fsingle-precision-constant -g -Wall -O2 -MD -MF .deps/bezier
.d -I.. -IC:/pspdev/psp/sdk/include -c bezier.c
psp-gcc -std=gnu99 -fsingle-precision-constant -g -Wall -O2 -MD -MF .deps/perfme
ter.d -I.. -IC:/pspdev/psp/sdk/include -c perfmeter.c
psp-gcc -std=gnu99 -fsingle-precision-constant -g -Wall -O2 -MD -MF .deps/screen
shot.d -I.. -IC:/pspdev/psp/sdk/include -c screenshot.c
screenshot.c(5) : column 17 : error: png.h: No such file or directory
screenshot.c : In function 'writepng':
screenshot.c(13) : error: 'png_structp' undeclared (first use in this function)
screenshot.c(13) : error: (Each undeclared identifier is reported only once
screenshot.c(13) : error: for each function it appears in.)
screenshot.c(13) : error: syntax error before 'png_ptr'
screenshot.c(14) : error: 'png_infop' undeclared (first use in this function)
screenshot.c(17) : error: 'png_ptr' undeclared (first use in this function)
screenshot.c(17) : warning: implicit declaration of function 'png_create_write_s
truct'
screenshot.c(17) : error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this
function)
screenshot.c(20) : error: 'info_ptr' undeclared (first use in this function)
screenshot.c(20) : warning: implicit declaration of function 'png_create_info_st
ruct'
screenshot.c(24) : warning: implicit declaration of function 'png_init_io'
screenshot.c(25) : warning: implicit declaration of function 'png_set_IHDR'
screenshot.c(26) : error: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in th
is function)
screenshot.c(26) : error: 'PNG_INTERLACE_NONE' undeclared (first use in this fun
ction)
screenshot.c(27) : error: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use i
n this function)
screenshot.c(27) : error: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in thi
s function)
screenshot.c(32) : warning: implicit declaration of function 'png_set_rows'
screenshot.c(32) : error: 'png_byte' undeclared (first use in this function)
screenshot.c(32) : error: syntax error before ')' token
screenshot.c(33) : warning: implicit declaration of function 'png_write_png'
screenshot.c(33) : error: 'PNG_TRANSFORM_IDENTITY' undeclared (first use in this
function)
screenshot.c(34) : warning: implicit declaration of function 'png_write_end'
screenshot.c(37) : warning: implicit declaration of function 'png_destroy_write_
struct'
screenshot.c(37) : error: 'png_infopp' undeclared (first use in this function)
make: *** [screenshot.o] Error 1
rm bezier.o firefox.raw perfmeter.o
considering it was only one file, I removed it and remaked, this time I get,
For anyone else running into trouble with it, it's because you need zlib and libpng installed before hand.
I couldn't get libpng installed(Wouldn't compile out of the box, and I didn't feel like trying to fix it) so I just removed the screenshot code from the demos and voila, it all worked.
Kojima wrote:I couldn't get libpng installed(Wouldn't compile out of the box, and I didn't feel like trying to fix it)
I guess you're not using the libpng and zlib from svn.ps2dev.org. They both work.
It is sometimes hard to know which library needs which other library, and in what order you need to install them. For instance libpng needs zlib installed first, and i think also another library.
I did grab them both from the svn, but libpng wouldn't compile.
zlib compiled fine first time.
In fact, libpng is the only lib I ever downloaded from ps2dev's svn that hasn't worked, so I guess it's just as arwin says a missing library, but I wasn't in the mood to figure out which one.
From looking at the pspgl source, gluOrtho2D doesn't appear to be implemented. Use glOrtho() instead. Here's my method for setting up 2D space for the gui: