Cmake updated - Out-of-source build failed [Fixed]

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
nahshon
Posts: 225
Joined: Wed Jul 24, 2013 8:06 pm

Cmake updated - Out-of-source build failed [Fixed]

Post by nahshon »

It happened on Fedora 35. I believe this may (or will) affect other distros as well.

For building FreeCAD on Fedora 35 I always started with a clean build directory to do an out of source full build.

Code: Select all

cmake ../FreeCAD-Master -DBUILD_QT5=On -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Debug && time make -j 6 
(FreeCAD-Master is where I have the updated master branch or FreeCAD).

Recently this has failed. The local directory left empty and many files created in the source directory.
The fix: Add "-B ." to the cmake parameters.

Code: Select all

cmake ../FreeCAD-Master -DBUILD_QT5=On -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Debug -B .  && time make -j 6
Cmake version:

Code: Select all

$ rpm -qi cmake
Name        : cmake
Version     : 3.22.2
Release     : 1.fc35
Architecture: x86_64
Install Date: Mon 31 Jan 2022 12:46:23 AM IST
Group       : Unspecified
Size        : 24327186
License     : BSD and MIT and zlib
Signature   : RSA/SHA256, Wed 26 Jan 2022 09:46:48 AM IST, Key ID db4639719867c58f
Source RPM  : cmake-3.22.2-1.fc35.src.rpm
Build Date  : Tue 25 Jan 2022 06:22:07 PM IST
Build Host  : buildvm-x86-15.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.cmake.org
Bug URL     : https://bugz.fedoraproject.org/cmake
Summary     : Cross-platform make system
Description :
CMake is used to control the software compilation process using simple
platform and compiler independent configuration files. CMake generates
native makefiles and workspaces that can be used in the compiler
environment of your choice. CMake is quite sophisticated: it is possible
to support complex environments requiring system configuration, preprocessor
generation, code generation, and template instantiation.

Code: Select all

OS: Fedora Linux 35 (KDE Plasma) (KDE//usr/share/xsessions/plasmax11)
Word size of FreeCAD: 64-bit
Version: 0.20.28164 (Git)
Build type: Release
Branch: master
Hash: b98ada4c078aacff74177c69162109e483899f92
Python 3.10.2, Qt 5.15.2, Coin 4.0.0, OCC 7.5.0
Locale: C/Default (C)
Installed mods: 
  * Curves 0.3.0
  * CurvedShapes 1.0.0
  * A2plus 0.4.54b
  * lattice2 1.0.0
  * kicadStepUpMod 10.10.4
  * fasteners
  * Assembly4 0.11.10
  * fcgear
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Cmake updated - Out-of-source build failed [Fixed]

Post by Kunda1 »

Does the wiki need to be updated?
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
Post Reply