Compile with min size

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
DenysKovalenko
Posts: 12
Joined: Thu Oct 14, 2021 3:34 pm

Compile with min size

Post by DenysKovalenko »

Hello,
I am trying to build FreeCAD with the target INSTALL, but in the end its size 3Gb. Is there any way to make build smaller?
Elyas
Posts: 58
Joined: Fri Sep 04, 2020 12:25 pm

Re: Compile with min size

Post by Elyas »

cmake -DCMAKE_BUILD_TYPE=Release .....
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Compile with min size

Post by GeneFC »

I always use "Release" cmake and builds, and the result is always at least twice as large as the premade packages on the download page.

The problem is there are many files in the library package that are not needed and can be removed. However, the exact list does not appear to be simple. You cannot just remove a lot of entire folders.

It is my understanding that the experts who are currently generating the weekly releases have some custom lists of files to remove.

Here is a very recent example. The FC versions are not quite identical, but the same LibPack is used for both.

Prepackaged.PNG
Prepackaged.PNG (1.91 KiB) Viewed 1056 times

Release build.PNG
Release build.PNG (1.87 KiB) Viewed 1056 times

I don't really care in my application, so I have not looked further into this "bloat".

Gene
Post Reply