Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
120 user(s) are online (73 user(s) are browsing Forums)

Members: 0
Guests: 120

more...

Headlines

 
  Register To Post  

[FIXED] - Use GLPng from Os4depot.net
Quite a regular
Quite a regular


See User information
Hi All,

I try to use GLPNG available here :
http://www.os4depot.net/index.php?fun ... ibrary/graphics/glpng.lha

without success.

If I try to compile to pnglib, I get an error message saying that there are no rule for makefile.

When I try to include files I get many error messages...

Does someone already use it ?

Thanks
Fred


Edited by freddix on 2009/6/23 22:24:36
All we have to decide is what to do with the time that is given to us.
Go to top
Re: Use GLPng from Os4depot.net
Home away from home
Home away from home


See User information
@freddix

Maybe i am wrong, but somebody on #amigadev said before that is very buggy. But it was usable (at least you can compile programms with using of it).

Go to top
Re: Use GLPng from Os4depot.net
Quite a regular
Quite a regular


See User information
I've added -LIBGLPNG in the makefile.
It compiles but gives error saying that in GLPng.c, there are "undefined reference" like "png_read_end" .. "png_destroy_read_struct" ...

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Use GLPng from Os4depot.net
Just can't stay away
Just can't stay away


See User information
@freddix

When linking with static libraries you need to list all dependencies (including those needed by the library in question).

Since libglpng seems to require libpng you should link your program with (libpng uses libz):

-lglpng -lpng -lz

Note that the order and placing is important. Static libraries that use other static libraries should be placed to the left of the libraries that they use on the commandline and to the right of any files from which they are used.

Go to top
Re: Use GLPng from Os4depot.net
Quite a regular
Quite a regular


See User information
@salass00
Hi and thank you, it now compiles without error :)
Using : -lglpng -lz


Is there any naming convention ? information ? that can help knowing the name used for the lib when including it in the makefile script ?

Regards,
Fred

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Use GLPng from Os4depot.net
Just can't stay away
Just can't stay away


See User information
@freddix

just look up the name of the static lib.
libblah.a becomes -lblah
the libs are in sdk:local/newlib/lib and sdk:local/clib2/lib

Go to top
Re: Use GLPng from Os4depot.net
Quite a regular
Quite a regular


See User information
@spotUP
Ok
Thanks

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Use GLPng from Os4depot.net
Quite a regular
Quite a regular


See User information
@Salass00:
I used what you said : -lglpng -lpng -lz

It compiles but when I try to use pngLoad function, the program crash ... Do you have any clue ?

EDIT:
Does the libglpng.a provided in the archive is the correct one for Amiga OS 4 ? or should I compile it ?
(cos I can't compile it it tell me that there are no rule to compile for makefile)

EDIT:
I have fixed it :) PNG support now work perfectly on AmiDARK Engine :)


Edited by freddix on 2009/6/23 21:24:42
Edited by freddix on 2009/6/23 22:25:09
All we have to decide is what to do with the time that is given to us.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project