Page 1 of 1

Building VLC3 Windows leads to heavy libs

Posted: 02 Mar 2018 15:55
by kolor
I build VLC 3.0.1 Windows from Ubuntu with gcc, now I have libs that are 5x larger than VLC public release libs.

For example my libavcodec.dll is about 110Mo when VLC player 3.0.1 has 20Mo.

I'm not using "enable-debug" when configuring, I use build instructions from here : https://wiki.videolan.org/Win32Compile/

I disable some plugins to skip build errors :
../extras/package/win32/configure.sh --host=x86_64-w64-mingw32 --build=x86_64-pc-linux-gnu --disable-lua --disable-faad --disable-chromecast

I use "package-win-strip" at the end.

Note that I have to build manually contribs because prebuilt ones give me link errors. Maybe the issue comes from here.

Any idea ?

Re: Building VLC3 Windows leads to heavy libs

Posted: 06 Mar 2018 18:59
by Jean-Baptiste Kempf
You need to run strip manually on the dll, I'd say.

Re: Building VLC3 Windows leads to heavy libs

Posted: 08 Mar 2018 11:18
by kolor
yes that's it, thanks!
I used this command if it can help someone : "find myVLClibs/ -name '*.dll' | xargs strip"