[Mapserver-dev] Building .exes with DLLs on windows

Sean Gillies sgillies at frii.com
Sun Apr 4 00:10:29 EST 2004


Il giorno 03/apr/04, alle 21:16, Frank Warmerdam ha scritto:

> Folks,
>
> I like to include MapServer in my OpenEV_FW releases, but currently the
> executables are pretty big because so much stuff is linked into them 
> all.
>
> warmerda% ls -l *.exe
> -rwxr-xr-x    1 Administ None      2822208 Apr  3 23:10 legend.exe
> -rwxr-xr-x    1 Administ None      2859073 Apr  3 23:10 mapserv.exe
> -rwxr-xr-x    1 Administ None      2822210 Apr  3 23:11 scalebar.exe
> -rwxr-xr-x    1 Administ None      2826305 Apr  3 23:10 shp2img.exe
> -rwxr-xr-x    1 Administ None      2826305 Apr  3 23:10 shptree.exe
> -rwxr-xr-x    1 Administ None      2826305 Apr  3 23:11 sortshp.exe
> -rwxr-xr-x    1 Administ None      2826305 Apr  3 23:11 tile4ms.exe
>
> What I would like to do is build a DLL with everything except the 
> mainline
> code in it so each of the executables is small.  Then the whole foot 
> print
> for including MapServer would be about 3MB instead of the 21MB if I 
> want to
> include all the utilities.  If folks prefer to keep mapserv.exe 
> simple, I
> would be ok with linking everything into it normally, but using a DLL 
> for the
> other utilities.  That would put the footprint at around 6MB.
>

You mean dynamically link against a libmap.so or libmap.dll?
Sounds good to me.

I've been having a devil of a time building the CVS MapServer on Win32
lately, would be good to get another tester.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies




More information about the mapserver-dev mailing list