Customized FreeImage

What it says on the tin: a place to discuss proposed new features.
Post Reply
N_K
Greenskin
Posts: 115
Joined: Wed Dec 07, 2011 9:05 pm

Customized FreeImage

Post by N_K » Sat Aug 03, 2013 10:09 pm

Well, this is not really a feature request for Ogre itself, but for a library it depends on. I noticed the OgreMain shared lib is quite large, even in release mode (between 5 and 8 megs, depending on the system/compiler). I decided to investigate what makes it bloated, and I came to the conclusion that the reason is FreeImage, and its plugins for all the various (and sometimes bizarre) image formats.

I think it would be nice to have a customized version of this library on the dependencies repo, with only plugins for the formats that people are actually use. I'm sure no one will ever attempt to use Dr. Halo CUT / ZSoft PCX / GIF / KOALA / etc. formats for their Ogre-powered game, yet a smaller OgreMain would be welcomed by many developers.
0 x

User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
Contact:

Re: Customized FreeImage

Post by masterfalcon » Sat Aug 03, 2013 10:26 pm

You've got good intentions but I don't think that we should customize the dependencies. The repo is really just a place to hold the sources, update them from time to time and provide a mechanism to build them all easily.

If someone really wants to slim it down they can always customize it for their own project.
0 x

User avatar
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2702
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 1

Re: Customized FreeImage

Post by syedhs » Sun Aug 04, 2013 3:54 am

Yes trimming FreeImage size is the easiest way to trim down Ogremain size, and to do it is actually very simple. I don't remember the exact lines, but it doesn't take more than 5 minutes (which include compile&link).
0 x
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me

Post Reply