Is it possible to use libpng et al. in a clib2 project?

This forum is for general developer support questions.

Is it possible to use libpng et al. in a clib2 project?

Postby softwarefailure » Fri Nov 29, 2019 6:01 pm

I have a clib2 project. To reduce its executable size I'd like my project to dynamically use SOBJS:libpng.so instead of statically linking it against libpng. Is this possible? Or can those shared objects only be used in newlib projects?

Specifically, I'm looking to use libpng.so, libjpeg.so, and libz.so. However, the SDK only provides link libraries for those libraries for newlib so is it not possible to use them with clib2? If it is possible, how to do that?
softwarefailure
 
Posts: 96
Joined: Fri Feb 14, 2014 11:29 pm

Re: Is it possible to use libpng et al. in a clib2 project?

Postby kas1e » Wed Dec 04, 2019 4:49 pm

As far as i aware: clib2 didnt support sobjes. At least, when we discuss bugs in adtools, it was said to better use clib2 , if we dont need sobjes (which in turn mean no sobjes for clib2 then)
kas1e
Beta Tester
Beta Tester
 
Posts: 482
Joined: Sat Jun 18, 2011 8:56 am

Re: Is it possible to use libpng et al. in a clib2 project?

Postby softwarefailure » Sun Dec 08, 2019 3:44 pm

That's too bad. If it had been possible I would have been able to reduce executable size by 1 MB like on MorphOS where we have shared libraries like jfif.library, z.library and png.library that are part of the OS.
softwarefailure
 
Posts: 96
Joined: Fri Feb 14, 2014 11:29 pm

Re: Is it possible to use libpng et al. in a clib2 project?

Postby nbache » Sun Dec 08, 2019 5:04 pm

softwarefailure wrote:That's too bad. If it had been possible I would have been able to reduce executable size by 1 MB like on MorphOS where we have shared libraries like jfif.library, z.library and png.library that are part of the OS.
Actually, z.library is part of (delivered and maintained with) the OS.

Best regards,

Niels
User avatar
nbache
Beta Tester
Beta Tester
 
Posts: 1396
Joined: Mon Dec 20, 2010 8:25 pm
Location: Copenhagen, Denmark

Re: Is it possible to use libpng et al. in a clib2 project?

Postby softwarefailure » Sun Dec 08, 2019 5:30 pm

nbache wrote:Actually, z.library is part of (delivered and maintained with) the OS.


Right, but unfortunately, this is actually rather small. The lion's share is taken up by libpng and libjpeg and those don't seem to be available as shared libraries.
softwarefailure
 
Posts: 96
Joined: Fri Feb 14, 2014 11:29 pm


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 3 guests