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?
Compile with min size
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 12
- Joined: Thu Oct 14, 2021 3:34 pm
Re: Compile with min size
cmake -DCMAKE_BUILD_TYPE=Release .....
Re: Compile with min size
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.
I don't really care in my application, so I have not looked further into this "bloat".
Gene
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.
I don't really care in my application, so I have not looked further into this "bloat".
Gene