Libpng include files

Post Reply
Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

Libpng include files

Post by Oibaf » Thu Aug 04, 2011 3:18 pm

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>

User avatar
Izhido
Posts: 107
Joined: Fri Oct 19, 2007 10:57 pm
Location: Costa Rica
Contact:

Re: Libpng include files

Post by Izhido » Thu Aug 04, 2011 4:37 pm

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?

Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

Re: Libpng include files

Post by Oibaf » Fri Aug 05, 2011 10:42 am

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

WinterMute
Site Admin
Posts: 1478
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Libpng include files

Post by WinterMute » Fri Aug 05, 2011 2:02 pm

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

Re: Libpng include files

Post by Oibaf » Fri Aug 05, 2011 3:12 pm

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.

Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

Re: Libpng include files

Post by Oibaf » Fri Aug 05, 2011 4:07 pm

I correct what I said above.

Also Winzip does not correctly manage the symlinks.

Only Winrar works.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests