FreeCAD 0.20 compilation process in Ubuntu 20.

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
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

FreeCAD 0.20 compilation process in Ubuntu 20.

Post by Evgeniy »

I'm use this instructions part for "Debian and Ubuntu".
https://wiki.freecadweb.org/Compile_on_Linux

1. Clone sources from git

Code: Select all

sudo apt install git
git clone https://github.com/FreeCAD/FreeCAD.git freecad-source
All fine

2. Set dependices
Build tools:

Code: Select all

sudo apt install build-essential cmake cmake-curses-gui libtool lsb-release

Code: Select all

cmake is already the newest version (3.16.3-1ubuntu1).
libtool is already the newest version (2.4.6-14).
lsb-release is already the newest version (11.1.0ubuntu2).
cmake-curses-gui is already the newest version (3.16.3-1ubuntu1).
build-essential is already the newest version (12.8ubuntu1.1).
Phyton, Swig:

Code: Select all

sudo apt install python3 swig

Code: Select all

python3 is already the newest version (3.8.2-0ubuntu2).
swig is already the newest version (4.0.1-5build1).
Bost libraries:

Code: Select all

sudo apt install libboost-dev libboost-date-time-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

Code: Select all

libboost-dev is already the newest version (1.71.0.0ubuntu2).
libboost-filesystem-dev is already the newest version (1.71.0.0ubuntu2).
libboost-program-options-dev is already the newest version (1.71.0.0ubuntu2).
libboost-thread-dev is already the newest version (1.71.0.0ubuntu2).
libboost-date-time-dev is already the newest version (1.71.0.0ubuntu2).
libboost-graph-dev is already the newest version (1.71.0.0ubuntu2).
libboost-iostreams-dev is already the newest version (1.71.0.0ubuntu2).
libboost-python-dev is already the newest version (1.71.0.0ubuntu2).
libboost-regex-dev is already the newest version (1.71.0.0ubuntu2).
libboost-serialization-dev is already the newest version (1.71.0.0ubuntu2).
Libcoin for Debian Buster, Ubuntu 19.04 and newer

Code: Select all

sudo apt install libcoin-dev

Code: Select all

libcoin-dev is already the newest version (4.0.0+ds-1build1).
Several libraries that deal with mathematics, triangulated surfaces, sorting, meshes, computer vision, cartographic projections, 3D visualization, the X11 Window system, XML parsing, and Zip file reading:

Code: Select all

sudo apt install libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libopencv-dev libproj-dev libvtk7-dev libx11-dev libxerces-c-dev libzipios++-dev

Code: Select all

libeigen3-dev is already the newest version (3.3.7-2).
libgts-bin is already the newest version (0.7.6+darcs121130-4).
libgts-dev is already the newest version (0.7.6+darcs121130-4).
libkdtree++-dev is already the newest version (0.7.1+git20101123-5build1).
libmedc-dev is already the newest version (4.0.0+repack-9build1).
libopencv-dev is already the newest version (4.2.0+dfsg-5).
libproj-dev is already the newest version (6.3.1-1).
libvtk7-dev is already the newest version (7.1.1+dfsg2-2ubuntu1).
libxerces-c-dev is already the newest version (3.2.2+debian-1build3).
libzipios++-dev is already the newest version (0.1.5.9+cvs.2007.04.28-11build1).
libx11-dev is already the newest version (2:1.6.9-2ubuntu1.2).
QT5:

Code: Select all

sudo apt install qtbase5-dev qttools5-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5xmlpatterns5-dev libqt5x11extras5-dev libpyside2-dev libshiboken2-dev pyside2-tools pyqt5-dev-tools python3-dev python3-matplotlib python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets

Code: Select all

python3-dev is already the newest version (3.8.2-0ubuntu2).
libpyside2-dev is already the newest version (5.14.0-1~exp1ubuntu5).
libqt5opengl5-dev is already the newest version (5.12.8+dfsg-0ubuntu1).
libqt5svg5-dev is already the newest version (5.12.8-0ubuntu1).
libqt5webkit5-dev is already the newest version (5.212.0~alpha4-1ubuntu2).
libqt5x11extras5-dev is already the newest version (5.12.8-0ubuntu1).
libqt5xmlpatterns5-dev is already the newest version (5.12.8-0ubuntu1).
libshiboken2-dev is already the newest version (5.14.0-1~exp1ubuntu5).
pyqt5-dev-tools is already the newest version (5.14.1+dfsg-3build1).
pyside2-tools is already the newest version (5.14.0-1~exp1ubuntu5).
python3-matplotlib is already the newest version (3.1.2-1ubuntu4).
python3-pivy is already the newest version (0.6.5-1build2).
python3-pyside2.qtcore is already the newest version (5.14.0-1~exp1ubuntu5).
python3-pyside2.qtgui is already the newest version (5.14.0-1~exp1ubuntu5).
python3-pyside2.qtsvg is already the newest version (5.14.0-1~exp1ubuntu5).
python3-pyside2.qtwidgets is already the newest version (5.14.0-1~exp1ubuntu5).
qtbase5-dev is already the newest version (5.12.8+dfsg-0ubuntu1).
qttools5-dev is already the newest version (5.12.8-0ubuntu1).
python3-ply is already the newest version (3.11-3ubuntu0.1).
... try install 2uic ...

Code: Select all

sudo apt install python3-pyside2uic

Code: Select all

E: Unable to locate package python3-pyside2uic
... Ok install pyqt5-dev-tools

Code: Select all

sudo apt install pyqt5-dev-tools

Code: Select all

pyqt5-dev-tools is already the newest version (5.14.1+dfsg-3build1).
OpenCascade kernel For Debian Buster and Ubuntu 18.10 and newer:

Code: Select all

sudo apt install libocct*-dev occt-draw

Code: Select all

libocct-data-exchange-dev is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
libocct-draw-dev is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
libocct-foundation-dev is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
libocct-modeling-algorithms-dev is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
libocct-modeling-data-dev is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
libocct-ocaf-dev is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
libocct-visualization-dev is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
occt-draw is already the newest version (1:7.5.2+dfsg1-0~202107020155~ubuntu20.04.1).
3. Compile

Code: Select all

mkdir freecad-build
cd freecad-build
cmake ../freecad-source

Code: Select all

-- Compiler: GNU, version: 9.3.0
-- prefix: /usr/local
-- bindir: bin
-- datadir: share
-- docdir: share/doc/FreeCAD
-- includedir: include
-- libdir: lib
-- cmake: 3.16.3
-- PyCXX found:
--   Headers:  /home/workspace/freecad-source/src
--   Sources:  /home/workspace/freecad-source/src/CXX
--   Version:  6.2.8
CMake Error at cMake/FindOpenCasCade.cmake:101 (file):
  file STRINGS file "/usr/include/oce/Standard_Version.hxx" cannot be read.
Call Stack (most recent call first):
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)


CMake Error at cMake/FindOpenCasCade.cmake:104 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)


CMake Error at cMake/FindOpenCasCade.cmake:105 (file):
  file STRINGS file "/usr/include/oce/Standard_Version.hxx" cannot be read.
Call Stack (most recent call first):
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)


CMake Error at cMake/FindOpenCasCade.cmake:108 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)


CMake Error at cMake/FindOpenCasCade.cmake:109 (file):
  file STRINGS file "/usr/include/oce/Standard_Version.hxx" cannot be read.
Call Stack (most recent call first):
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)


CMake Error at cMake/FindOpenCasCade.cmake:112 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)


-- -- Found OCE/OpenCASCADE version: ..
-- -- OCE/OpenCASCADE include directory: /usr/include/oce
-- -- OCE/OpenCASCADE shared libraries directory: /usr/lib64
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- The imported target "vtkParseOGLExt" references the file
   "/usr/bin/vtkParseOGLExt-7.1"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- The imported target "pvtk" references the file
   "/usr/bin/pvtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkIOMPIParallel;vtkParallelMPI;vtkhdf5;vtkFiltersParallelDIY2;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Check for medfile (libmed and libmedc) ...
-- Found MEDFile: /usr/include  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- We guess that libmed was built using hdf5-openmpi version
-- Checking for one of the modules 'hdf5-openmpi'
-- Checking for one of the modules 'ompi-cxx'
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.55") found components: filesystem program_options regex system thread 
-- Found SWIG: /usr/bin/swig4.0 (found version "4.0.1") 
-- Found Eigen3: /usr/include/eigen3 (found suitable version "3.3.7", minimum required is "2.91.0") 
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.10.1") 
-- Checking for module 'Coin'
--   No package 'Coin' found
-- Coin3D libraries found
-- Could NOT find Spnav (missing: SPNAV_LIBRARY SPNAV_INCLUDE_DIR) 
-- Shiboken2Config: Using default python: .cpython-38-x86_64-linux-gnu
-- Found PythonInterp: /usr/bin/python3.8 (found suitable version "3.8.10", minimum required is "3") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable version "3.8.10", minimum required is "3") 
-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/include/python3.8'
-- SHIBOKEN_PYTHON_LIBRARIES computed to value: ''
-- libshiboken built for RelWithDebInfo
-- PYTHON_CONFIG_SUFFIX: .cpython-38-x86_64-linux-gnu
-- libshiboken built for RelWithDebInfo
-- ===============================================
PySide2 Python module found at /usr/lib/python3/dist-packages/PySide2.
===============================================

-- Found Matplotlib: /usr/lib/python3/dist-packages/matplotlib (found version "3.1.2")
-- Platform is 64-bit, set -D_OCC64
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- /home/workspace/freecad-build/src/Base/TypePy.cpp
-- /home/workspace/freecad-build/src/Base/BaseClassPy.cpp
-- /home/workspace/freecad-build/src/Base/BoundBoxPy.cpp
-- /home/workspace/freecad-build/src/Base/CoordinateSystemPy.cpp
-- /home/workspace/freecad-build/src/Base/PersistencePy.cpp
-- /home/workspace/freecad-build/src/Base/VectorPy.cpp
-- /home/workspace/freecad-build/src/Base/MatrixPy.cpp
-- /home/workspace/freecad-build/src/Base/RotationPy.cpp
-- /home/workspace/freecad-build/src/Base/PlacementPy.cpp
-- /home/workspace/freecad-build/src/Base/AxisPy.cpp
-- /home/workspace/freecad-build/src/Base/UnitPy.cpp
-- /home/workspace/freecad-build/src/Base/QuantityPy.cpp
-- /home/workspace/freecad-build/src/App/DocumentPy.cpp
-- /home/workspace/freecad-build/src/App/DocumentObjectPy.cpp
-- /home/workspace/freecad-build/src/App/ExtensionPy.cpp
-- /home/workspace/freecad-build/src/App/ExtensionContainerPy.cpp
-- /home/workspace/freecad-build/src/App/DocumentObjectExtensionPy.cpp
-- /home/workspace/freecad-build/src/App/GroupExtensionPy.cpp
-- /home/workspace/freecad-build/src/App/LinkBaseExtensionPy.cpp
-- /home/workspace/freecad-build/src/App/DocumentObjectGroupPy.cpp
-- /home/workspace/freecad-build/src/App/GeoFeaturePy.cpp
-- /home/workspace/freecad-build/src/App/GeoFeatureGroupExtensionPy.cpp
-- /home/workspace/freecad-build/src/App/OriginGroupExtensionPy.cpp
-- /home/workspace/freecad-build/src/App/PartPy.cpp
-- /home/workspace/freecad-build/src/App/ComplexGeoDataPy.cpp
-- /home/workspace/freecad-build/src/App/PropertyContainerPy.cpp
-- /home/workspace/freecad-build/src/App/MaterialPy.cpp
-- /home/workspace/freecad-build/src/Mod/Points/App/PointsPy.cpp
-- /home/workspace/freecad-build/src/Mod/Mesh/App/FacetPy.cpp
-- /home/workspace/freecad-build/src/Mod/Mesh/App/MeshFeaturePy.cpp
-- /home/workspace/freecad-build/src/Mod/Mesh/App/MeshPointPy.cpp
-- /home/workspace/freecad-build/src/Mod/Mesh/App/MeshPy.cpp
-- /home/workspace/freecad-build/src/Mod/Mesh/Gui/ViewProviderMeshPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ArcPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ArcOfConicPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ArcOfCirclePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ArcOfParabolaPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BodyBasePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ConicPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/CirclePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ArcOfEllipsePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/EllipsePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/HyperbolaPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ArcOfHyperbolaPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ParabolaPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/OffsetCurvePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometryPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometryExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometryIntExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometryStringExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometryBoolExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometryDoubleExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometryCurvePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BoundedCurvePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TrimmedCurvePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeometrySurfacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/LinePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/LineSegmentPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/PointPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BezierCurvePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BSplineCurvePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/PlanePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ConePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/CylinderPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/SpherePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ToroidPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BezierSurfacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BSplineSurfacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/OffsetSurfacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/PlateSurfacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/RectangularTrimmedSurfacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/SurfaceOfExtrusionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/SurfaceOfRevolutionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/PartFeaturePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/AttachExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Part2DObjectPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/AttachEnginePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeCompoundPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeCompSolidPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeEdgePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeFacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeShellPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeSolidPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeVertexPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/TopoShapeWirePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BRepOffsetAPI_MakeFillingPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/BRepFeat/MakePrismPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/ArcOfCircle2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/ArcOfConic2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/ArcOfEllipse2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/ArcOfHyperbola2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/ArcOfParabola2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/BezierCurve2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/BSplineCurve2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Circle2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Conic2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Ellipse2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Geometry2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Hyperbola2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Curve2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Line2dSegmentPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Line2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/OffsetCurve2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/Geom2d/Parabola2dPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeomPlate/BuildPlateSurfacePy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeomPlate/CurveConstraintPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/GeomPlate/PointConstraintPy.cpp
-- /home/workspace/freecad-build/src/Mod/Part/App/ShapeUpgrade/UnifySameDomainPy.cpp
-- /home/workspace/freecad-build/src/Mod/PartDesign/App/BodyPy.cpp
-- /home/workspace/freecad-build/src/Mod/PartDesign/App/FeaturePy.cpp
-- /home/workspace/freecad-build/src/Mod/PartDesign/Gui/ViewProviderPy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/SketchObjectSFPy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/SketchObjectPy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/SketchGeometryExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/ExternalGeometryExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/GeometryFacadePy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/ExternalGeometryFacadePy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/ConstraintPy.cpp
-- /home/workspace/freecad-build/src/Mod/Sketcher/App/SketchPy.cpp
-- /home/workspace/freecad-build/src/Mod/Robot/App/Robot6AxisPy.cpp
-- /home/workspace/freecad-build/src/Mod/Robot/App/TrajectoryPy.cpp
-- /home/workspace/freecad-build/src/Mod/Robot/App/WaypointPy.cpp
-- /home/workspace/freecad-build/src/Mod/Robot/App/RobotObjectPy.cpp
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- /home/workspace/freecad-build/src/Mod/Import/App/StepShapePy.cpp
-- /home/workspace/freecad-build/src/Mod/Fem/App/FemMeshPy.cpp
-- /home/workspace/freecad-build/src/Mod/Fem/App/FemPostPipelinePy.cpp
-- /home/workspace/freecad-build/src/Mod/Fem/Gui/ViewProviderFemMeshPy.cpp
-- /home/workspace/freecad-build/src/Mod/Spreadsheet/App/SheetPy.cpp
-- /home/workspace/freecad-build/src/Mod/Spreadsheet/App/PropertySheetPy.cpp
-- /home/workspace/freecad-build/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.cpp
-- /home/workspace/freecad-build/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.cpp
-- /home/workspace/freecad-build/src/Mod/Spreadsheet/Gui/SpreadsheetViewPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/CommandPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/PathPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/ToolPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/TooltablePy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/FeaturePathCompoundPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/AreaPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/FeatureAreaPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/VoronoiPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/VoronoiCellPy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/VoronoiEdgePy.cpp
-- /home/workspace/freecad-build/src/Mod/Path/App/VoronoiVertexPy.cpp
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: python38 
-- found Boost: 1_71
-- boost-incude dirs are: /usr/include
-- boost-python lib is: 
-- boost_LIBRARY_DIRS is: /usr/lib/x86_64-linux-gnu
-- Boost_LIBRARIES is: Boost::python
-- area module (for Path Workbench) will be installed to: lib
-- /home/workspace/freecad-build/src/Mod/Path/PathSimulator/App/PathSimPy.cpp
-- /home/workspace/freecad-build/src/Mod/Measure/App/MeasurementPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawPagePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewPartPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewSymbolPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawTemplatePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawParametricTemplatePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawSVGTemplatePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewClipPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewDimensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewDimExtentPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawHatchPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawGeomHatchPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewCollectionPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawProjGroupPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawProjGroupItemPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawViewAnnotationPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawLeaderLinePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawRichAnnoPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/GeomFormatPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/CenterLinePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/CosmeticEdgePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/CosmeticVertexPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawTilePy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawTileWeldPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/DrawWeldSymbolPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/App/CosmeticExtensionPy.cpp
-- /home/workspace/freecad-build/src/Mod/TechDraw/Gui/MDIViewPagePy.cpp
Created file /home/workspace/freecad-build/share/doc/FreeCAD/freecad.qch
-- Coin3D doc is not installed
-- /home/workspace/freecad-build/src/Gui/DocumentPy.cpp
-- /home/workspace/freecad-build/src/Gui/PythonWorkbenchPy.cpp
-- /home/workspace/freecad-build/src/Gui/ViewProviderPy.cpp
-- /home/workspace/freecad-build/src/Gui/ViewProviderDocumentObjectPy.cpp
-- /home/workspace/freecad-build/src/Gui/ViewProviderExtensionPy.cpp
-- /home/workspace/freecad-build/src/Gui/WorkbenchPy.cpp
-- /home/workspace/freecad-build/src/Gui/SelectionObjectPy.cpp
-- /home/workspace/freecad-build/src/Gui/LinkViewPy.cpp
-- /home/workspace/freecad-build/src/Gui/ViewProviderLinkPy.cpp
-- /home/workspace/freecad-build/src/Gui/AxisOriginPy.cpp
-- /home/workspace/freecad-build/src/Gui/CommandPy.cpp
-- 
==============
Summary report
==============

-- Build type:          
-- Compiler:            /usr/bin/c++ (9.3.0)
-- Flags:               -Wall -Wextra -Wno-write-strings 
-- Standard:            Requires C++17
-- Python:              3.8.10 [/usr/bin/python3.8] [.cpython-38-x86_64-linux-gnu]
-- PCL:                 not enabled
-- pybind11:            not enabled
-- Boost:               1.71.0 (1.71.0)
-- XercesC:             3.2.2 [/usr/lib/x86_64-linux-gnu/libxerces-c.so] [/usr/include]
-- ZLIB:                1.2.11
-- PyCXX:               6.2.8 [/home/workspace/freecad-source/src]
-- OCC:                 .. [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [/usr/lib64] [/usr/include/oce]
-- SMESH:               build internal
--  MEDFile:            4.0.0 [/usr/lib/x86_64-linux-gnu/libmedC.so] [/usr/include]
--  HDF5:               1.10.4
--  VTK:                7.1.1
-- NETGEN:              not enabled
-- SWIG:                4.0.1
-- Eigen3               3.3.7
-- Qt5Core:             5.12.8
-- Qt5Network:          5.12.8
-- Qt5Xml:              5.12.8
-- Qt5XmlPatterns:      5.12.8
-- Qt5Widgets:          5.12.8
-- Qt5PrintSupport:     5.12.8
-- Qt5OpenGL:           5.12.8
-- Qt5Svg:              5.12.8
-- Qt5UiTools:          5.12.8
-- Qt5Concurrent:       5.12.8
-- Qt5WebKitWidgets:    5.212.0
-- Shiboken2:           5.14.0 [/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.14.0] [/usr/include/shiboken2;/usr/include/python3.8]
-- PySide2:             5.14.0 [/usr/lib/../include/PySide2]
-- PySide2Tools:        [/usr/bin/pyuic5] [/usr/bin/pyrcc5]
-- Freetype:            2.10.1
-- OpenGL:              /usr/lib/x86_64-linux-gnu/libGL.so
-- OpenGLU:             [/usr/lib/x86_64-linux-gnu/libGLU.so][/usr/include]
-- Coin3D:              4.0.0 [/usr/lib/x86_64-linux-gnu/libCoin.so] [/usr/include]
-- Pivy:                0.6.5
-- SPNAV:               [SPNAV_LIBRARY-NOTFOUND] [SPNAV_INCLUDE_DIR-NOTFOUND]
-- Matplotlib:          3.1.2
-- Rift:                not enabled (BUILD_VR)
-- Doxygen:             1.8.17
--  Language:           English
--  Coin3D_DOC:         not found
=================================================
Now run 'cmake --build /home/workspace/freecad-build' to build FreeCAD
=================================================

-- Configuring incomplete, errors occurred!
See also "/home/workspace/freecad-build/CMakeFiles/CMakeOutput.log".
See also "/home/workspace/freecad-build/CMakeFiles/CMakeError.log".
Next...

Code: Select all

workspace@workspace-desktop:~/freecad-build$ make -j$(nproc --ignore=2)
make: *** No targets specified and no makefile found.  Stop.
Why do errors appear at the compilation stage of OpenCascade?
Whats wrong?
CMake Error at cMake/FindOpenCasCade.cmake:101 (file):
file STRINGS file "/usr/include/oce/Standard_Version.hxx" cannot be read.
Call Stack (most recent call first):
cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
CMakeLists.txt:51 (SetupOpenCasCade)
Last edited by Evgeniy on Sat Jul 17, 2021 10:13 pm, edited 1 time in total.
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Need Help with compilation FreeCAD 0.20 under Ubuntu 20.

Post by Evgeniy »

...
Sorry, i delete all files in folder freecad-build and start again from zero.

Code: Select all

cmake ../freecad-source
And all makes fine:

Code: Select all

-- Configuring done
-- Generating done
-- Build files have been written to: /home/workspace/freecad-build
Now i run

Code: Select all

make -j$(nproc --ignore=2)
and wait results...
Last edited by Evgeniy on Tue Jul 20, 2021 6:01 pm, edited 1 time in total.
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Need Help with compilation FreeCAD 0.20 under Ubuntu 20.

Post by Evgeniy »

"Just" five hours and first compilation is complete:

Code: Select all

[100%] Copying /home/workspace/freecad-source/data/examples/FemCalculixCantilever2D.FCStd to /home/workspace/freecad-build/data/examples/FemCalculixCantilever2D.FCStd
[100%] Copying /home/workspace/freecad-source/data/examples/FemCalculixCantilever3D.FCStd to /home/workspace/freecad-build/data/examples/FemCalculixCantilever3D.FCStd
[100%] Copying /home/workspace/freecad-source/data/examples/FemCalculixCantilever3D_newSolver.FCStd to /home/workspace/freecad-build/data/examples/FemCalculixCantilever3D_newSolver.FCStd
[100%] Built target Example_data
I had to rename FreeCAD to FreeCAD.sh to run an executable file in Ubuntu OS
OS: Ubuntu 20.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.25281 (Git)
Build type: Unknown
Branch: master
Hash: 6a76c7668dcf218d47c30e8d63ef5951bd369f25
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English (en_EU)
for run from shell prompt:

Code: Select all

freecad-build/bin$ ./FreeCAD.sh
And first BUG, when i try to open "Part Design" workbench i get error box: "PartDesignGui.so: file is so little..."
/home/workspace/freecad-build/Mod/PartDesign/PartDesignGui.so: file is so little...
Traceback (most recent call last):
File "<string>", line 53, in Initialize
That's normally? Or did I compile something wrong?
Syres
Veteran
Posts: 2902
Joined: Thu Aug 09, 2018 11:14 am

Re: Need Help with compilation FreeCAD 0.20 under Ubuntu 20.

Post by Syres »

Evgeniy wrote: Sat Jul 17, 2021 10:12 pm
Build type: Unknown


That's normally? Or did I compile something wrong?
Something's definitely wrong, the PartDesignGui.so file should be 4.5 Mb approx and I'm guessing yours is 1 Kb or less. Something that you'll need to do if you wish to use Sketcher at decent speed is to add -DCMAKE_BUILD_TYPE=Release to your cmake line i.e.

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Release ../freecad-source
I doubt that will fix your issue but I think you need to capture the whole of the make output from 0 to 100% in order to find an error/warning in that mass of text.
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Need Help with compilation FreeCAD 0.20 under Ubuntu 20.

Post by Evgeniy »

Syres wrote: Sun Jul 18, 2021 9:47 am Something's definitely wrong, the PartDesignGui.so file should be 4.5 Mb approx and I'm guessing yours is 1 Kb or less.
Hello!
I'm see it. But for unknown reason it size is = 0 bytes.

Syres wrote: Sun Jul 18, 2021 9:47 am Something that you'll need to do if you wish to use Sketcher at decent speed is to add -DCMAKE_BUILD_TYPE=Release to your cmake line i.e.
Just if this is a bug in the make file, it probably needs to be fixed. The "Sktech" workbench opens normally, the error is when opening "Part Design".
Syres wrote: Sun Jul 18, 2021 9:47 am I doubt that will fix your issue but I think you need to capture the whole of the make output from 0 to 100% in order to find an error/warning in that mass of text.
It's easy. The following compilations are performed in a few minutes, unlike the first one.

Code: Select all

[  1%] Built target SMDS
[  1%] Built target Driver
[  1%] Built target DriverSTL
[  1%] Built target SMESHDS
[  1%] Built target DriverUNV
[  2%] Built target DriverDAT
[  3%] Built target SMESH
[  3%] Built target MEFISTO2
[  5%] Built target StdMeshers
[  6%] Built target lazy_loader
[  6%] Automatic MOC for target FreeCADBase
[  6%] Built target FreeCADBase_autogen
[  9%] Built target FreeCADBase
[  9%] Generating version_check
git
/home/workspace/freecad-build/src/Build/Version.h.out written
[  9%] Generating Version.h
[  9%] Built target fc_version
[  9%] Automatic MOC for target FreeCADApp
[  9%] Built target FreeCADApp_autogen
[ 11%] Built target FreeCADApp
[ 11%] Automatic MOC for target FreeCADGui
[ 11%] Built target FreeCADGui_autogensomething... I don't want to wait for five hours of compilation again...
[ 21%] Built target FreeCADGui
[ 21%] Automatic MOC for target FreeCADGuiPy
[ 21%] Built target FreeCADGuiPy_autogen
[ 21%] Built target FreeCADGuiPy
[ 21%] Automatic MOC for target FreeCADMainPy
[ 21%] Built target FreeCADMainPy_autogen
[ 21%] Built target FreeCADMainPy
[ 21%] Automatic MOC for target FreeCADMainCmd
[ 21%] Built target FreeCADMainCmd_autogen
[ 21%] Built target FreeCADMainCmd
[ 21%] Automatic MOC for target FreeCADMain
[ 21%] Built target FreeCADMain_autogen
[ 21%] Linking CXX executable ../../bin/FreeCAD
[ 21%] Built target FreeCADMain
[ 21%] Automatic MOC for target Points
[ 21%] Built target Points_autogen
[ 21%] Built target Points
[ 21%] Automatic MOC for target PointsGui
[ 21%] Built target PointsGui_autogen
[ 21%] Built target PointsGui
[ 21%] Built target Test
[ 21%] Automatic MOC for target QtUnitGui
[ 21%] Built target QtUnitGui_autogen
[ 22%] Built target QtUnitGui
[ 22%] Built target ImageScripts
[ 22%] Automatic MOC for target Image
[ 22%] Built target Image_autogen
[ 22%] Built target Image
[ 22%] Automatic MOC for target ImageGui
[ 22%] Built target ImageGui_autogen
[ 23%] Built target ImageGui
[ 23%] Built target MeshScripts
[ 23%] Automatic MOC for target Mesh
[ 23%] Built target Mesh_autogen
[ 26%] Built target Mesh
[ 26%] Automatic MOC for target MeshGui
[ 26%] Built target MeshGui_autogen
[ 28%] Built target MeshGui
[ 29%] Built target PartScripts
[ 29%] Automatic MOC for target Part
[ 29%] Built target Part_autogen
[ 35%] Built target Part
[ 35%] Automatic MOC for target PartGui
[ 35%] Built target PartGui_autogen
[ 37%] Built target PartGui
[ 37%] Built target FluidMaterialLib
[ 40%] Built target MaterialLib
[ 40%] Built target MaterialToolsLib
[ 40%] Built target Material
[ 40%] Built target WizardShaft
[ 40%] Built target PartDesignHole
[ 42%] Built target PartDesignScripts
[ 42%] Automatic MOC for target PartDesign
[ 42%] Built target PartDesign_autogen
[ 43%] Built target PartDesign
[ 43%] Automatic MOC for target PartDesignGui
[ 43%] Built target PartDesignGui_autogen
[ 43%] Automatic MOC for target Sketcher
[ 43%] Built target Sketcher_autogen
[ 44%] Built target Sketcher
[ 44%] Automatic MOC for target SketcherGui
[ 44%] Built target SketcherGui_autogen
[ 46%] Built target SketcherGui
[ 48%] Built target PartDesignGui
[ 49%] Built target RaytracingScripts
[ 49%] Automatic MOC for target Raytracing
[ 49%] Built target Raytracing_autogen
[ 49%] Built target Raytracing
[ 49%] Automatic MOC for target RaytracingGui
[ 49%] Built target RaytracingGui_autogen
[ 49%] Built target RaytracingGui
[ 49%] Built target DrawingScripts
[ 49%] Automatic MOC for target Spreadsheet
[ 49%] Built target Spreadsheet_autogen
[ 50%] Built target Spreadsheet
[ 50%] Automatic MOC for target Drawing
[ 50%] Built target Drawing_autogen
[ 50%] Built target Drawing
[ 50%] Automatic MOC for target DrawingGui
[ 50%] Built target DrawingGui_autogen
[ 51%] Built target DrawingGui
[ 51%] Built target SketcherScripts
[ 52%] Built target RobotScripts
[ 52%] Automatic MOC for target Robot
[ 52%] Built target Robot_autogen
[ 54%] Built target Robot
[ 54%] Automatic MOC for target RobotGui
[ 54%] Built target RobotGui_autogen
[ 55%] Built target RobotGui
[ 55%] Built target ReverseEngineeringScripts
[ 55%] Automatic MOC for target ReverseEngineering
[ 55%] Built target ReverseEngineering_autogen
[ 55%] Built target ReverseEngineering
[ 55%] Automatic MOC for target ReverseEngineeringGui
[ 55%] Built target ReverseEngineeringGui_autogen
[ 55%] Built target ReverseEngineeringGui
[ 55%] Automatic MOC for target MeshPart
[ 55%] Built target MeshPart_autogen
[ 55%] Built target MeshPart
[ 55%] Automatic MOC for target MeshPartGui
[ 55%] Built target MeshPartGui_autogen
[ 55%] Built target MeshPartGui
[ 62%] Built target Draft
[ 62%] Automatic MOC for target DraftUtils
[ 62%] Built target DraftUtils_autogen
[ 62%] Built target DraftUtils
Возмоно во время сборки был какой-то сбой на компьютере и с официальныи релизом все ок.

[ 62%] Built target WebScripts
[ 62%] Automatic MOC for target Web
[ 62%] Built target Web_autogen
[ 62%] Built target Web
[ 63%] Automatic MOC for target WebGui
[ 63%] Built target WebGui_autogen
[ 63%] Built target WebGui
[ 63%] Built target SurfaceScripts
[ 63%] Automatic MOC for target Surface
[ 63%] Built target Surface_autogen
[ 63%] Built target Surface
[ 63%] Automatic MOC for target SurfaceGui
[ 63%] Built target SurfaceGui_autogen
[ 64%] Built target SurfaceGui
[ 64%] Built target StartTests
[ 64%] Built target StartScripts
[ 64%] Automatic MOC for target Start
[ 64%] Built target Start_autogen
[ 64%] Built target Start
[ 64%] Automatic MOC for target StartGui
[ 64%] Built target StartGui_autogen
[ 65%] Built target StartGui
[ 65%] Built target StartPage
[ 66%] Built target Idf
[ 66%] Built target ImportScripts
[ 67%] Built target ImportPy
[ 67%] Automatic MOC for target Import
[ 67%] Built target Import_autogen
[ 67%] Built target Import
Возмоно во время сборки был какой-то сбой на компьютере и с официальныи релизом все ок.

[ 67%] Automatic MOC for target ImportGui
[ 67%] Built target ImportGui_autogen
[ 67%] Built target ImportGui
[ 67%] Automatic MOC for target Inspection
[ 67%] Built target Inspection_autogen
[ 68%] Built target Inspection
[ 68%] Automatic MOC for target InspectionGui
[ 68%] Built target InspectionGui_autogen
[ 68%] Built target InspectionGui
[ 69%] Built target Arch
[ 71%] Built target FemGuiScriptsTarget
[ 79%] Built target FemScriptsTarget
[ 79%] Automatic MOC for target Fem
[ 79%] Built target Fem_autogen
[ 80%] Built target Fem
[ 80%] Built target FemPythonUi
[ 80%] Automatic MOC for target FemGui
[ 80%] Built target FemGui_autogen
[ 83%] Built target FemGui
[ 83%] Built target OpenSCADTests
[ 84%] Built target OpenSCAD
[ 84%] Built target SpreadsheetScripts
[ 84%] Automatic MOC for target SpreadsheetGui
[ 84%] Built target SpreadsheetGui_autogen
[ 84%] Built target SpreadsheetGui
[ 85%] Built target PathTests
[ 89%] Built target PathScripts
[ 89%] Automatic MOC for target area-native
[ 89%] Built target area-native_autogen
[ 89%] Built target area-native
[ 89%] Automatic MOC for target Path
[ 89%] Built target Path_autogen
[ 90%] Built target Path
[ 90%] Automatic MOC for target area
[ 90%] Built target area_autogen
[ 90%] Built target area
[ 90%] Automatic MOC for target PathSimulator
[ 90%] Built target PathSimulator_autogen
[ 91%] Built target PathSimulator
[ 91%] Automatic MOC for target PathGui
[ 91%] Built target PathGui_autogen
[ 91%] Built target PathGui
[ 91%] Built target Show
[ 91%] Automatic MOC for target Measure
[ 91%] Built target Measure_autogen
[ 91%] Built target Measure
[ 91%] Built target TDTestTarget
[ 92%] Built target TechDraw_Data
[ 92%] Automatic MOC for target TechDraw
[ 92%] Built target TechDraw_autogen
[ 95%] Built target TechDraw
[ 95%] Automatic MOC for target TechDrawGui
[ 95%] Built target TechDrawGui_autogen
[ 98%] Built target TechDrawGui
[ 98%] Built target AddonManager
[ 98%] Built target Tux
[ 98%] Built target FreeCADGui_Resources
[100%] Built target Stylesheets_data
[100%] Built target Example_data
It's strange, but it looks like there are no errors.
Last edited by Evgeniy on Sun Jul 18, 2021 11:56 am, edited 2 times in total.
Syres
Veteran
Posts: 2902
Joined: Thu Aug 09, 2018 11:14 am

Re: FreeCAD 0.20 compilation process in Ubuntu 20.

Post by Syres »

For me the root cause has got to be the OCC errors, unless it shows a version number in the cmake output rather than .. then I'm inclined to think it won't compile properly. Here's my output around the OCC part (ignore the fact I'm running an older version):

Code: Select all

-- -- Found OCE/OpenCASCADE version: 7.3.0
-- -- OCE/OpenCASCADE include directory: /usr/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: /usr/lib/x86_64-linux-gnu
and the end is error free:

Code: Select all

-- Configuring done
-- Generating done
-- Build files have been written to: /home/john/freecad-daily-build
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: FreeCAD 0.20 compilation process in Ubuntu 20.

Post by Evgeniy »

I'm recompile code, all fine. Since the compilation process is really long, i interrupted it a couple of times with Ctrl+C, perhaps this caused some kind of failure.

Yes, I did not specify the build type as "Relese", I did as in wikipedia without specifying the assembly type:
Building against Python 3 and Qt5
For 0.20_dev:
cmake ../freecad-source
After build i install build by

Code: Select all

sudo make install

Total size of all execution files is ~460 Mb. Not bad.
It would be nice if the Makefile had an "uninstall" target.
User avatar
Shalmeneser
Veteran
Posts: 9591
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: FreeCAD 0.20 compilation process in Ubuntu 20.

Post by Shalmeneser »

Thank you.
This post was SO helpfull. :P
Post Reply