Compiling with custom builds

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
gaggedegg
Posts: 23
Joined: Tue Oct 06, 2020 8:37 am

Compiling with custom builds

Post by gaggedegg »

Hello,

I'm trying to compile FreeCAD with minimum builds from CMAKE. I have only selected below mentioned builds in CMAKE

  • Build_GUI
  • Build_Material
  • Build_Mesh
  • Build_Mesh_Part
  • Build_Part
  • Build_QT5
  • Build_Raytracing
  • Build_Web
I'm getting 18 Builds to succeed and 15 to fail. Are there any dependencies required to build successfully all the builds? If so can you please mention what other builds should I include here? Also I only want 'part and raytracing workbench' to work upon, so which builds do I require for them?


OS: Windows 10 Pro x64
IDE: Visual Studio Community 2019 (MSVC 2015)
CMAKE: 3.17.5
LibPack: FreeCADLibs_12.1.6_x64_VC15 (https://github.com/FreeCAD/FreeCAD/rele ... 64_VC15.7z)
SourceCode: https://github.com/FreeCAD/FreeCAD.git
wmayer
Founder
Posts: 20308
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Compiling with custom builds

Post by wmayer »

gaggedegg wrote: Wed Oct 07, 2020 4:54 am and 15 to fail
What are the error messages?
gaggedegg
Posts: 23
Joined: Tue Oct 06, 2020 8:37 am

Re: Compiling with custom builds

Post by gaggedegg »

wmayer wrote: Wed Oct 07, 2020 8:15 am
gaggedegg wrote: Wed Oct 07, 2020 4:54 am and 15 to fail
What are the error messages?
There are some link errors. I guess it's probably because I haven't build some dependencies. Like, when building 'PartDesignGui', there is a fatal error stating that 'cannot open input file 'SketcherGui.lib' ' and it's obvious because I have not checked 'Build_Sketcher' in CMAKE while configuring and generating files. :oops:

I think I should close this topic now!

Thank you for asking wmayer!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Compiling with custom builds

Post by Kunda1 »

Mod edit: Moved to Install/Compile subforum
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
gaggedegg
Posts: 23
Joined: Tue Oct 06, 2020 8:37 am

Re: Compiling with custom builds

Post by gaggedegg »

Kunda1 wrote: Wed Oct 07, 2020 2:56 pm Mod edit: Moved to Install/Compile subforum
8-)
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Compiling with custom builds

Post by sgrogan »

gaggedegg wrote: Wed Oct 07, 2020 10:37 am I think I should close this topic now!
No need to close anything.
It seems your on your way yourself, but don't hesitate to post these issues in this sub-forum, we all gain knowledge from each other.
Some time ago ian.rees did some work on this to give a warning in CMake when disabled projects were dependencies of built projects. I am still looking for the old thread.

EDIT: See here https://github.com/FreeCAD/FreeCAD/pull/3939
"fight the good fight"
gaggedegg
Posts: 23
Joined: Tue Oct 06, 2020 8:37 am

Re: Compiling with custom builds

Post by gaggedegg »

sgrogan wrote: Wed Oct 07, 2020 8:38 pm
gaggedegg wrote: Wed Oct 07, 2020 10:37 am I think I should close this topic now!
No need to close anything.
It seems your on your way yourself, but don't hesitate to post these issues in this sub-forum, we all gain knowledge from each other.
Some time ago ian.rees did some work on this to give a warning in CMake when disabled projects were dependencies of built projects. I am still looking for the old thread.

EDIT: See here https://github.com/FreeCAD/FreeCAD/pull/3939
Okay got it, sgrogan! Thank you!
Post Reply