Re: [osg-users] Is there any idea I can make osg lib smaller?

2015-02-09 Thread Chris Hanson
Make sure your linker is set to strip unused references when statically linking. I'm not sure how this is done on iOS, it's a default on Windows. On Mon, Feb 9, 2015 at 6:34 AM, Liu Xiao wrote: > Dear robert, > > Thanks for you quick reply! On iOS platform the osg libs are all static, > and I h

Re: [osg-users] Is there any idea I can make osg lib smaller?

2015-02-09 Thread Liu Xiao
Dear robert, Thanks for you quick reply! On iOS platform the osg libs are all static, and I have tried to use only the libs I need, and now I only use the following libs: libOpenThreads.a libosg.a libosgAnimation.a libosgdb_osg.a libosgdb_serializers_osg.a libosgdb_serializers_osganimation.a li

Re: [osg-users] Is there any idea I can make osg lib smaller?

2015-02-09 Thread Robert Osfield
Hi Liu, Changes to OSG svn/trunk have made the core a little smaller but just by a couple of %. The only other thing you could try would be to statically link your application and just link the components you really need. Robert. On 9 February 2015 at 12:39, Liu Xiao wrote: > Hi, > > I curren

[osg-users] Is there any idea I can make osg lib smaller?

2015-02-09 Thread Liu Xiao
Hi, I currently work on play skeletal animation on iOS. The version of OSG is 3.2.1. It works well but the app is over 3MB. That's too large for an application on mobile devices, because I only use it for play animation of osgb formats. Nothing else is needed. I hope to make it as smaller as p