How to compile the engine like the official? (3mb vs 1.5 mb)

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

How to compile the engine like the official? (3mb vs 1.5 mb)

Post by MasterGod »

When I compile the engine, doesn't matter which version, I always get a dll which has 2 more MB then the official one.
I know it has something to do with the project configuration but being a new user in MSVC 2005 express, could you tell me please how to do that? (so I can do it to all my projects..)

Thanks.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Um, are you comparing a debug DLL to a release one?

Build -> Configuration Manager -> Active Solution Configuration

Scroll down to the bottom of the list, and select "Release - Fast FPU" for the Irrlicht configuration.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Thanks, that worked.

Well, it took a 3.5mb and made it 1.4mb.
How can I make such a thing in my other projects too?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Visual Studio should create a Debug and a Release version of any new project that you start.

If you find yourself missing one of those configurations, then you can create a new one via the Configuration Manager. Once it's created, you can use Project -> Properties to set up the properties. There are many, many things that you can change (sorry, this is where you need to RTFM) but the most significant is probably Configuration Properties -> Linker -> Debugging -> Generate Debug Info (and Generate Program Database File). You'll want to generate debug info during development, but not in a release build.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply