[SOLVED] error compiling FC0.21 daily on Mint 20.3 Cinnamon

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
easyw-fc
Veteran
Posts: 3629
Joined: Thu Jul 09, 2015 9:34 am

[SOLVED] error compiling FC0.21 daily on Mint 20.3 Cinnamon

Post by easyw-fc »

Hi, I'm trying to compile FC0.21 daily on Linux Mint 20.3 Cinnamon based on Ubuntu 20.04
following the compile on Linux wiki:
https://wiki.freecad.org/Compile_on_Linux
for Debian/Ubuntu
I did:

Code: Select all

sudo apt install cmake cmake-gui libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-serialization-dev libboost-thread-dev libcoin-dev libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev libopencv-dev libproj-dev libpyside2-dev libqt5opengl5-dev libqt5svg5-dev qtwebengine5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libshiboken2-dev libspnav-dev libvtk7-dev libx11-dev libxerces-c-dev libzipios++-dev occt-draw pyside2-tools python3-dev python3-matplotlib python3-packaging python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets python3-pyside2.qtnetwork python3-pyside2.qtwebengine python3-pyside2.qtwebenginecore python3-pyside2.qtwebenginewidgets python3-pyside2.qtwebchannel python3-markdown python3-git qtbase5-dev qttools5-dev swig pyside2-tools pyqt5-dev-tools
and then I've done:

Code: Select all

cd ~/Downloads
git clone https://github.com/FreeCAD/FreeCAD.git FreeCAD-src
mkdir FreeCAD-build
cd FreeCAD-build
cmake ../FreeCAD-src
I've got the following errors:

Code: Select all

-- Configuring done
CMake Error in src/Base/CMakeLists.txt:
  Imported target "Boost::filesystem" includes non-existent path
    "/include"
  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
  * The path was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and references files it does not
  provide.
here is my PATH var:

Code: Select all

echo $PATH
/sbin:/bin:/usr/bin:/usr/local/bin
EDIT: I've solved with:

Code: Select all

cmake -DBoost_NO_BOOST_CMAKE=TRUE ../FreeCAD-src
from:
https://stackoverflow.com/questions/301 ... stallation
Post Reply