Page 1 of 1

Libpng include files

Posted: Thu Aug 04, 2011 3:18 pm
by Oibaf
The libpng include files of PPC, PSP and ARM (png.h, pngconf.h, pnglibconf.h) seem not correct.

The files contain:

libpng15/png***.h

instead of

#include <libpng15/png***.h>

Re: Libpng include files

Posted: Thu Aug 04, 2011 4:37 pm
by Izhido
Um... so, why is this wrong?

If anything, I would say that the way you suggested *is* the wrong one... that syntax is reserved for system libraries, not custom ones, just like the PNG libraries.

Care to explain that a little further, fabio?

Re: Libpng include files

Posted: Fri Aug 05, 2011 10:42 am
by Oibaf
I updated the libpng to the version released on 30th of July and now the ppc-gcc compiler gives this error:

C:/devkitPro/portlibs/ppc/include/png.h: error: "libpng15" does not name a type

This should be casued by the content of png.h file that is only one line:

libpng15/png.h

I succeded in compiling only changing the file in:

#include <libpng15/png.h>

and changing the compiler option in -lpng15

Re: Libpng include files

Posted: Fri Aug 05, 2011 2:02 pm
by WinterMute
Whatever you used to extract the tarballs failed, winrar worked fine for me. Unfortunately it seems that the tar provided with msys needs to be run twice to resolve the symlinks.

Re: Libpng include files

Posted: Fri Aug 05, 2011 3:12 pm
by Oibaf
You are right.

It was a problem of the extraction.

I used 7-zip which fails in extracting the files.

I solved the problem using Winzip.

This seems incredible. It is the first time I encounter this kind of problem.

Re: Libpng include files

Posted: Fri Aug 05, 2011 4:07 pm
by Oibaf
I correct what I said above.

Also Winzip does not correctly manage the symlinks.

Only Winrar works.