I followed the Compile on Linux guide and faced a problem with building FreeCAD. Firstly I created folders for both source code and future build.
Then I ran CMAKE to configure environment with this command:
Code: Select all
cmake ../freecad-source
Code: Select all
-- Compiler: GNU, version: 7.5.0
-- prefix: /usr/local
-- bindir: bin
-- datadir: share
-- docdir: share/doc/FreeCAD
-- includedir: include
-- libdir: lib
-- cmake: 3.10.2
-- PyCXX found:
-- Headers: /home/sapr/freecad-source/src
-- Sources: /home/sapr/freecad-source/src/CXX
-- Version: 7.1.7
-- -- OpenCASCADE Community Edition has been found.
-- -- Found OCE/OpenCASCADE version: 6.9.1
-- -- OCE/OpenCASCADE include directory: /usr/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory:
-- 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) ...
-- We guess that libmed was built using hdf5-openmpi version
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- regex
-- system
-- thread
-- date_time
-- chrono
-- atomic
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pivy'
====================
shiboken2 not found.
====================
==================
PySide2 not found.
==================
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'shiboken2'
=================================
shiboken Python module not found.
=================================
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide2'
================================
PySide2 Python module not found.
================================
-- Found Matplotlib: /usr/lib/python3/dist-packages/matplotlib (found version "2.1.1")
-- 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
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- [E57] Revison ID: E57Format-2.2.1-x86_64-linux-gcc7
-- [E57] Building static library
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
No header defined for python36; skipping header check
Call Stack (most recent call first):
src/Mod/Path/libarea/CMakeLists.txt:23 (find_package)
-- Could NOT find Boost
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
No header defined for python3; skipping header check
Call Stack (most recent call first):
src/Mod/Path/libarea/CMakeLists.txt:26 (find_package)
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- python3
-- found Boost: 1_65_1
-- boost-incude dirs are: /usr/include
-- boost-python lib is:
-- boost_LIBRARY_DIRS is: /usr/lib/x86_64-linux-gnu
-- Boost_LIBRARIES is: /usr/lib/x86_64-linux-gnu/libboost_python3.so
-- area module (for Path Workbench) will be installed to: lib
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Note: Doxygen docs will look better with graphviz's dot installed.
-- Coin3D doc is not installed
--
==============
Summary report
==============
-- Build type:
-- Compiler: /usr/bin/c++ (7.5.0)
-- Flags: -Wall -Wextra -Wno-write-strings
-- Standard: Requires C++17
-- Python: 3.6.9 [/usr/bin/python3] []
-- PCL: not enabled
-- pybind11: not enabled
-- Boost: 106501
-- XercesC: 3.2.0 [/usr/lib/x86_64-linux-gnu/libxerces-c.so] [/usr/include]
-- ZLIB: 1.2.11
-- PyCXX: 7.1.7 [/home/sapr/freecad-source/src]
-- OCC: 6.9.1 [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/lib/x86_64-linux-gnu/oce-0.17/../../../include/oce]
-- SMESH: 7.7.1.0 build internal
-- MEDFile: 3.0.6 [/usr/lib/x86_64-linux-gnu/libmedC.so] [/usr/include]
-- HDF5: 1.8.13
-- VTK: 7.1.1
-- NETGEN: not enabled
-- SWIG: 3.0.12
-- Eigen3 3.3.4
-- Qt5Core: 5.9.5
-- Qt5Network: 5.9.5
-- Qt5Xml: 5.9.5
-- Qt5XmlPatterns: 5.9.5
-- Qt5Widgets: 5.9.5
-- Qt5PrintSupport: 5.9.5
-- Qt5OpenGL: 5.9.5
-- Qt5Svg: 5.9.5
-- Qt5UiTools: 5.9.5
-- Qt5Concurrent: 5.9.5
-- Qt5WebKitWidgets: 5.212.0
-- Designer plugin: not built per user request (BUILD_DESIGNER_PLUGIN)
-- Shiboken2: [Shiboken2_DIR-NOTFOUND] []
-- PySide2: []
-- IncludeDir: Unable to find, python version mismatch?
-- PySide2Tools: [/usr/bin/pyuic5] [/usr/bin/pyrcc5]
-- Freetype: 2.8.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:
-- SPNAV: [/usr/lib/libspnav.so] [/usr/include]
-- Matplotlib: 2.1.1
-- Rift: not enabled (BUILD_VR)
-- Doxygen: 1.8.13
-- Language: English
-- Coin3D_DOC: not found
=================================================
Now run 'cmake --build /home/sapr/freecad-build' to build FreeCAD
=================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sapr/freecad-build
Code: Select all
make -j$(nproc --ignore=2)
Code: Select all
[ 0%] Linking CXX shared library ../../../lib/libMEFISTO2.so
/usr/bin/ld: cannot find -lTKVCAF
/usr/bin/ld: cannot find -lTKVCAF
collect2: error: ld returned 1 exit status
src/3rdParty/salomesmesh/CMakeFiles/MEFISTO2.dir/build.make:163: recipe for target 'lib/libMEFISTO2.so' failed
make[2]: *** [lib/libMEFISTO2.so] Error 1
CMakeFiles/Makefile2:366: recipe for target 'src/3rdParty/salomesmesh/CMakeFiles/MEFISTO2.dir/all' failed
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/MEFISTO2.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
So I wanted to know if anyone can explain what seems to be a problem here?
I'm actually new to both FreeCAD and Ubunthu/Linux so if I missed something important, please let me know
I'm using virtual machine with Ubunthu 18.04.6 LTS 64-Bit Oracle