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
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
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