Stuck compiling FreeCAD on Mac Catalina

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

I'm attempting to follow https://wiki.freecadweb.org/Compile_on_MacOS and have hacked my way through a thicket of unfound directories, but am now stuck.

Running the Cmake 3.21.0 Gui I get the following:

Code: Select all

CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


   Entering             /Users/ed/FreeCAD/FreeCAD-git/cMake/FreeCAD_Helpers
Install configuration: "Release"
   Returning to         /Users/ed/FreeCAD/FreeCAD-git
Compiler: AppleClang, version: 12.0.0.12000032
Force BOOST_PP_VARIADICS=1 for clang
prefix: /users/ed/FreeCAD/install/
bindir: bin
datadir: share
docdir: share/doc/FreeCAD
includedir: include
libdir: lib
cmake: 3.21.0
PyCXX found:
  Headers:  /Users/ed/FreeCAD/FreeCAD-git/src
  Sources:  /Users/ed/FreeCAD/FreeCAD-git/src/CXX
  Version:  6.2.8
CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OCC) does
  not match the name of the calling package (OpenCasCade).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cMake/FindOpenCasCade.cmake:120 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
  CMakeLists.txt:51 (SetupOpenCasCade)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OCE/OpenCASCADE version: 7.5.0
-- OCE/OpenCASCADE include directory: /usr/local/include/opencascade
-- OCE/OpenCASCADE shared libraries directory: /usr/local/lib
VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
Check for medfile (libmed and libmedc) ...
We guess that libmed was built using hdf5-serial version
Checking for one of the modules 'hdf5-serial'
Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.55") found components: filesystem program_options regex system thread 
Platform is 64-bit, set -D_OCC64
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Build
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/3rdParty
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh
Performing Test _flag_found
Performing Test _flag_found - Failed
CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/Internal/CheckSourceCompiles.cmake:121 (set):
  Policy CMP0126 is not set: set(CACHE) does not remove a normal variable of
  the same name.  Run "cmake --help-policy CMP0126" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, normal variable
  "_flag_found" will be removed from the current scope.
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/Internal/CheckCompilerFlag.cmake:71 (cmake_check_source_compiles)
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/CheckCXXCompilerFlag.cmake:40 (cmake_check_compiler_flag)
  src/3rdParty/salomesmesh/CMakeLists.txt:40 (check_cxx_compiler_flag)
This warning is for project developers.  Use -Wno-dev to suppress it.

Performing Test _flag_found
Performing Test _flag_found - Success
Performing Test _flag_found
Performing Test _flag_found - Success
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/3rdParty
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/3rdParty/lazy_loader
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/3rdParty
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Base
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Main
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Points
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Points/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Points
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Complete
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Test
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Image
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Image/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Image
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Mesh
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Mesh/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Mesh
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Part
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Part/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Part
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Material
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/PartDesign
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/PartDesign/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/PartDesign
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Raytracing
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Raytracing/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Raytracing
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Drawing
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Drawing/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Drawing
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Sketcher
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Sketcher/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Sketcher
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Robot
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Robot/App
Performing Test _flag_found
Performing Test _flag_found - Failed
CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/Internal/CheckSourceCompiles.cmake:121 (set):
  Policy CMP0126 is not set: set(CACHE) does not remove a normal variable of
  the same name.  Run "cmake --help-policy CMP0126" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, normal variable
  "_flag_found" will be removed from the current scope.
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/Internal/CheckCompilerFlag.cmake:71 (cmake_check_source_compiles)
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/CheckCXXCompilerFlag.cmake:40 (cmake_check_compiler_flag)
  src/Mod/Robot/App/CMakeLists.txt:129 (check_cxx_compiler_flag)
This warning is for project developers.  Use -Wno-dev to suppress it.

   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Robot
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/ReverseEngineering
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/ReverseEngineering/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/ReverseEngineering
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/MeshPart
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/MeshPart/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/MeshPart
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Draft
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Draft/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Draft
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Web
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Web/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Web
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Surface
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Surface/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Surface
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Start
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Start/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Start
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Idf
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Import
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Import/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Import
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Arch
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Assembly
Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0") found components: log 
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Assembly/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Assembly
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Fem
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Fem/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Fem
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/OpenSCAD
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Spreadsheet
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Spreadsheet/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Spreadsheet
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path/libarea
setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0") found components: python39 
found Boost: 1_75
boost-incude dirs are: /usr/local/include
boost-python lib is: 
boost_LIBRARY_DIRS is: /usr/local/lib
Boost_LIBRARIES is: Boost::python
area module (for Path Workbench) will be installed to: /users/ed/FreeCAD/install//FreeCAD.app/Contents/lib
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path/PathSimulator
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path/PathSimulator/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path/PathSimulator
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Path
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Show
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Measure
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Measure/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Measure
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/TechDraw
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/TechDraw/App
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod/TechDraw
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/AddonManager
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Mod/Tux
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Mod
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Ext
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Ext/freecad
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src/Ext
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/Doc
Note: Gui is not built. Documentation may lack some parts.
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Entering             /Users/ed/FreeCAD/FreeCAD-git/src/MacAppBundle
Checking for module 'icu-uc'
  No package 'icu-uc' found
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/src
   Returning to         /Users/ed/FreeCAD/FreeCAD-git
   Entering             /Users/ed/FreeCAD/FreeCAD-git/data
   Entering             /Users/ed/FreeCAD/FreeCAD-git/data/examples
   Returning to         /Users/ed/FreeCAD/FreeCAD-git/data
   Returning to         /Users/ed/FreeCAD/FreeCAD-git

==============
Summary report
==============

Build type:          Release
Compiler:            /Library/Developer/CommandLineTools/usr/bin/c++ (12.0.0.12000032)
Flags:               -Wall -Wextra -Wpedantic -Wno-write-strings  -Wno-undefined-var-template
Standard:            Requires C++17
Python:              3.9.6 [/usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9] []
PCL:                 not enabled
pybind11:            not enabled
Boost:               1.75.0 (1.75.0)
XercesC:             3.2.3 [/usr/local/lib/libxerces-c.dylib] [/usr/local/include]
ZLIB:                1.2.11
PyCXX:               6.2.8 [/Users/ed/FreeCAD/FreeCAD-git/src]
OCC:                 7.5.0 [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/local/lib] [/usr/local/include/opencascade]
SMESH:               build internal
 MEDFile:            4.0.0 [/usr/local/lib/libmedC.dylib;/usr/local/lib/libmed.dylib] [/usr/local/include]
 HDF5:               1.12.1
 VTK:                8.2.0
NETGEN:              not enabled
SWIG:                4.0.2
Eigen3               3.3.9
Qt5Core:             5.15.2
Qt5Network:          5.15.2
Qt5Xml:              5.15.2
Qt5XmlPatterns:      5.15.2
Qt5Widgets:          not needed
Qt5PrintSupport:     not needed
Qt5OpenGL:           not needed
Qt5Svg:              not needed
Qt5UiTools:          not needed
Qt5Concurrent:       not needed
Qt5WebKitWidgets:    not needed
Shiboken2:           not found
PySide2:             not found
PySide2Tools:        not found
Freetype:            2.11.0
OpenGL:              /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework
OpenGLU:             [/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework][/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework]
Coin3D:               [/usr/local/cellar/coin@4.0.0/4.0.0] [/usr/local/cellar/coin@4.0.0/4.0.0]
Pivy:                
SPNAV:               not found
Matplotlib:          not found
Rift:                not enabled (BUILD_VR)
Doxygen:             1.9.1
 Language:           English
 Coin3D_DOC:         not found
=================================================
Now run 'cmake --build /Users/ed/FreeCAD/build' to build FreeCAD
=================================================

Configuring done
If I run the cmake --build /Users/ed/FreeCAD/build the failure comes from

Code: Select all

ld: library not found for -licudata
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libSMESHDS.dylib] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMESHDS.dir/all] Error 2
make: *** [all] Error 2
consistent with the

Code: Select all

Checking for module 'icu-uc'
  No package 'icu-uc' found
error buried in the above.
Previously, the error messages told me what XXX_DIR to set to point the way, but not this time.
I suspect it's related to the /usr/local/Cellar/icu4c package.

My PREFIX_PATH (so far) is

Code: Select all

export PREFIX_PATH="/usr/local/opt/qt/lib/cmake/;/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/Cmake;/usr/local/Cellar/vtk@8.2.0/8.2.0_1/lib/cmake/vtk-8.2;/usr/local/Cellar/qt5152/5.15.2/lib/cmake;/usr/local/cellar/coin@4.0.0/4.0.0;/usr/local/cellar/boost-python3@1.75.0/1.75.0/lib/cmake;/usr/local/cellar/icu4c@67.1"


FWIW, here's the Changes file from the CMake Gui in case it helps

Code: Select all

Commandline options:
-DQt5Xml_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Xml" -DQt5Network_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Network" -DZLIB_LIBRARY_RELEASE:FILEPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libz.tbd" -DNetgen_DIR:PATH="Netgen_DIR-NOTFOUND" -DQt5Svg_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Svg" -DCMAKE_INSTALL_PREFIX:PATH="/users/ed/FreeCAD/install/" -DDOXYGEN_LANGUAGE:STRING="English" -DFREECAD_USE_EXTERNAL_KDL:BOOL="1" -DCMAKE_BUILD_TYPE:STRING="Release" -DNGLIB_INCLUDE_DIR:PATH="/usr/local/Cellar//nglib/v6.2.2007/Contents/Resources/include/include" -DBoost_PYTHON39_LIBRARY_RELEASE:STRING="/usr/local/opt/boost-python3@1.75.0/lib/libboost_python39-mt.dylib" -Dboost_python_DIR:PATH="/usr/local/cellar/boost-python3@1.75.0/1.75.0/lib/cmake" -DNGLIB_LIBOCC:FILEPATH="NGLIB_LIBOCC-NOTFOUND" -DQt5Widgets_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Widgets" -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-O2 -g -DNDEBUG" -DQt5Concurrent_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Concurrent" -DCOIN3D_INCLUDE_DIRS:PATH="/usr/local/cellar/coin@4.0.0/4.0.0" -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="10.15" -DQt5Core_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Core" -DBUILD_DYNAMIC_LINK_PYTHON:BOOL="0" -DCMAKE_AR:FILEPATH="/Library/Developer/CommandLineTools/usr/bin/ar" -DBUILD_INSPECTION:BOOL="0" -DNETGEN_DIR_include:PATH="/usr/local/include/netgen/include" -DCMAKE_INSTALL_RUNSTATEDIR:PATH="" -DFREECAD_ASSEMBLY_DEBUG_FACILITIES:BOOL="1" -DALLOW_SELF_SIGNED_CERTIFICATE:BOOL="0" -DBUILD_IMAGE:BOOL="1" -DBUILD_GUI:BOOL="0" -DQt5XmlPatterns:STRING="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5XmlPatterns" -DPKG_CONFIG_EXECUTABLE:FILEPATH="/usr/local/bin/pkg-config" -DQt5XmlPatterns_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5XmlPatterns" -DBUILD_QT5:BOOL="1" -DQt5WebKitWidgets_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5WebKitWidgets" -DVTK_DIR:PATH="/usr/local/Cellar/vtk@8.2.0/8.2.0_1/lib/cmake/vtk-8.2/" -D_Qt5UiTools_RELEASE_AGL_PATH:FILEPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AGL.framework" -DMEDFILE_INCLUDE_DIRS:PATH="/usr/local/include" -DOPENGL_gl_LIBRARY:FILEPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework" -DNGLIB_LIBINTERFACE:FILEPATH="NGLIB_LIBINTERFACE-NOTFOUND" -DBUILD_FEM_NETGEN:BOOL="0" -DQt5PrintSupport_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5PrintSupport" -DCOIN3D_LIBRARIES:FILEPATH="/usr/local/cellar/coin@4.0.0/4.0.0" -DBUILD_COMPLETE:BOOL="1" -D3DCONNEXIONCLIENT_FRAMEWORK:FILEPATH="3DCONNEXIONCLIENT_FRAMEWORK-NOTFOUND" -DFREECAD_CREATE_MAC_APP:BOOL="1" -DPYTHON_EXECUTABLE:FILEPATH="/usr/local/bin/python3" -DZLIB_INCLUDE_DIR:PATH="/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include" -DQt5UiTools_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5UiTools" -D_Qt5UiTools_RELEASE_Metal_PATH:FILEPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Metal.framework" -DQt5OpenGL_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5OpenGL" -DXercesC_LIBRARY_DEBUG:FILEPATH="XercesC_LIBRARY_DEBUG-NOTFOUND" -DQt5WebEngineWidgets_DIR:PATH="/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5WebEngineWidgets" -DBUILD_CLOUD:BOOL="0" -DBUILD_ASSEMBLY:BOOL="1" -DHDF5_DIR:PATH="HDF5_DIR-NOTFOUND" 


Cache file:
Qt5Xml_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Xml
Qt5Network_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Network
ZLIB_LIBRARY_RELEASE:FILEPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib/libz.tbd
Netgen_DIR:PATH=Netgen_DIR-NOTFOUND
Qt5Svg_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Svg
CMAKE_INSTALL_PREFIX:PATH=/users/ed/FreeCAD/install/
DOXYGEN_LANGUAGE:STRING=English
FREECAD_USE_EXTERNAL_KDL:BOOL=1
CMAKE_BUILD_TYPE:STRING=Release
NGLIB_INCLUDE_DIR:PATH=/usr/local/Cellar//nglib/v6.2.2007/Contents/Resources/include/include
Boost_PYTHON39_LIBRARY_RELEASE:STRING=/usr/local/opt/boost-python3@1.75.0/lib/libboost_python39-mt.dylib
boost_python_DIR:PATH=/usr/local/cellar/boost-python3@1.75.0/1.75.0/lib/cmake
NGLIB_LIBOCC:FILEPATH=NGLIB_LIBOCC-NOTFOUND
Qt5Widgets_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Widgets
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
Qt5Concurrent_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Concurrent
COIN3D_INCLUDE_DIRS:PATH=/usr/local/cellar/coin@4.0.0/4.0.0
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.15
Qt5Core_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5Core
BUILD_DYNAMIC_LINK_PYTHON:BOOL=0
CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar
BUILD_INSPECTION:BOOL=0
NETGEN_DIR_include:PATH=/usr/local/include/netgen/include
CMAKE_INSTALL_RUNSTATEDIR:PATH=
FREECAD_ASSEMBLY_DEBUG_FACILITIES:BOOL=1
ALLOW_SELF_SIGNED_CERTIFICATE:BOOL=0
BUILD_IMAGE:BOOL=1
BUILD_GUI:BOOL=0
Qt5XmlPatterns:STRING=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5XmlPatterns
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/local/bin/pkg-config
Qt5XmlPatterns_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5XmlPatterns
BUILD_QT5:BOOL=1
Qt5WebKitWidgets_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5WebKitWidgets
VTK_DIR:PATH=/usr/local/Cellar/vtk@8.2.0/8.2.0_1/lib/cmake/vtk-8.2/
_Qt5UiTools_RELEASE_AGL_PATH:FILEPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AGL.framework
MEDFILE_INCLUDE_DIRS:PATH=/usr/local/include
OPENGL_gl_LIBRARY:FILEPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework
NGLIB_LIBINTERFACE:FILEPATH=NGLIB_LIBINTERFACE-NOTFOUND
BUILD_FEM_NETGEN:BOOL=0
Qt5PrintSupport_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5PrintSupport
COIN3D_LIBRARIES:FILEPATH=/usr/local/cellar/coin@4.0.0/4.0.0
BUILD_COMPLETE:BOOL=1
3DCONNEXIONCLIENT_FRAMEWORK:FILEPATH=3DCONNEXIONCLIENT_FRAMEWORK-NOTFOUND
FREECAD_CREATE_MAC_APP:BOOL=1
PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3
ZLIB_INCLUDE_DIR:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include
Qt5UiTools_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5UiTools
_Qt5UiTools_RELEASE_Metal_PATH:FILEPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Metal.framework
Qt5OpenGL_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5OpenGL
XercesC_LIBRARY_DEBUG:FILEPATH=XercesC_LIBRARY_DEBUG-NOTFOUND
Qt5WebEngineWidgets_DIR:PATH=/usr/local/Cellar/qt5152/5.15.2/lib/cmake/Qt5WebEngineWidgets
BUILD_CLOUD:BOOL=0
BUILD_ASSEMBLY:BOOL=1
HDF5_DIR:PATH=HDF5_DIR-NOTFOUND
Ideas to get me over the last few hurdle?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Stuck compiling FreeCAD on Mac Catalina

Post by Kunda1 »

bump
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
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

Tried to delete duplicate.
Last edited by edwilliams16 on Mon Jul 26, 2021 12:09 am, edited 1 time in total.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

edwilliams16 wrote: Sun Jul 25, 2021 11:24 pm After a LOT of messing around, I have a cMake Configuration, that at least doesn't complain. In an hour or two, it'll be compiled.
I gave up on the cMake gui which seemed to create a never-ending tree of dependencies and went instead to https://github.com/ipatch/homebrew-us-0 ... s-by-macos
where at least I could see what was happening.
ipatch wrote: ping
Entries on CMAKE_PREFIX_PATH rarely seemed to succeed in finding the required .cmake configuration files
For instance, /usr/local/opt/qt5152/lib/cmake/Qt5 or /usr/local/opt/qt5152/lib/cmake is supposed to find the Qt5 dependencies, but I had to list all the subdirectories required by hand

Code: Select all

-DQt5Core_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Core" \
-DQt5Network_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Network" \
-DQt5Xml_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Xml" \
-DQt5XmlPatterns_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5XmlPatterns" \
-DQt5Widgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Widgets" \
-DQt5Concurrent_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Concurrent" \
-DQt5PrintSupport_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5PrintSupport" \
-DQt5OpenGL_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5OpenGL" \
-DQt5Svg_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Svg" \
-DQt5UiTools_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5UiTools" \
-DQt5WebEngineWidgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5WebEngineWidgets" \
Same problem with other items. I ended up with the command-line

Code: Select all

env \
CC="/usr/local/opt/ccache/libexec/cc" \
CXX="/usr/local/opt/ccache/libexec/c++" \
CCACHE_DIR="$HOME/.ccache/freecad"  \
cmake \
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG\
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG\
-DCMAKE_CXX_STANDARD=14 \
-DBUILD_ENABLE_CXX_STD:STRING=C++14 \
-Wno-deprecated-declarations \
-DHOMEBREW_PREFIX="/usr/local/" \
-DCMAKE_INSTALL_LIBDIR=lib\
-DCMAKE_FIND_FRAMEWORK=LAST \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-Wno-dev \
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk \
-DBUILD_QT5=ON \
-DUSE_PYTHON3=1\
-DPYTHON_EXECUTABLE="/usr/local/opt/python3.9/bin/python3" \
-DPYTHON_INCLUDE_DIR=$(/usr/local/opt/python3.9/bin/python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")  \
-DPYTHON_LIBRARY="/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib" \
-DBUILD_FEM_NETGEN=1 \
-DBUILD_FEM=1 \
-DBUILD_TECHDRAW=1 \
-DFREECAD_CREATE_MAC_APP=1 \
-DFREECAD_USE_EXTERNAL_KDL=ON \
-DVTK_DIR="/usr/local/opt/vtk@8.2.0/lib/cmake/vtk-8.2" \
-DCoin3D_DIR="/usr/local/opt/coin@4.0.0/lib/cmake/Coin-4.0.0" \
-DCOIN3D_INCLUDE_DIRS="/usr/local/Cellar/coin@4.0.0/4.0.0/include" \
-DCOIN3D_LIBRARIES="/usr/local/Cellar/coin@4.0.0/4.0.0/lib/libCoin.dylib" \
-DNetgen_DIR="/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/CMake" \
-Dboost_python_DIR="/usr/local/cellar/boost-python3\@1.75.0/1.75.0/lib/cmake" \
-DQt5Core_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Core" \
-DQt5Network_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Network" \
-DQt5Xml_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Xml" \
-DQt5XmlPatterns_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5XmlPatterns" \
-DQt5Widgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Widgets" \
-DQt5Concurrent_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Concurrent" \
-DQt5PrintSupport_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5PrintSupport" \
-DQt5OpenGL_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5OpenGL" \
-DQt5Svg_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Svg" \
-DQt5UiTools_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5UiTools" \
-DQt5WebEngineWidgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5WebEngineWidgets" \
-DCMAKE_PREFIX_PATH= \
"/usr/local/opt/qt5152/lib/cmake/Qt5; \
/usr/local/opt/nglib/Contents/Resources; \
/usr/local/Cellar/llvm/12.0.1/lib/cmake; \
/usr/local/opt/opencascade@7.5.0/lib/cmake; \
/usr/local/opt/med-file/share/cmake; \
/usr/local/opt/shiboken2/lib/cmake; \
/usr/local/opt/pyside2/lib/cmake; \
/usr/local/opt/coin@4.0.0/lib/cmake/Coin-4.0.0; \
/usr/local/cellar/boost/1.75.0/lib/cmake; \
/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/CMake;" \
-DCMAKE_BUILD_TYPE=Release \
-DFREECAD_CREATE_MAC_APP=OFF \
-DCMAKE_INSTALL_PREFIX=/Users/ed/freeCAD/freecad-install ../freecad-src
producing

Code: Select all

-- Compiler: AppleClang, version: 12.0.0.12000032
-- Force BOOST_PP_VARIADICS=1 for clang
-- prefix: /Users/ed/freeCAD/freecad-install
-- bindir: bin
-- datadir: share
-- docdir: share/doc/FreeCAD
-- includedir: include
-- libdir: lib-DCMAKE_FIND_FRAMEWORK=LAST
-- cmake: 3.21.0
-- PyCXX found:
--   Headers:  /Users/ed/FreeCAD/freecad-src/src
--   Sources:  /Users/ed/FreeCAD/freecad-src/src/CXX
--   Version:  6.2.8
-- -- Found OCE/OpenCASCADE version: 7.5.0
-- -- OCE/OpenCASCADE include directory: /usr/local/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: /usr/local/lib
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Check for medfile (libmed and libmedc) ...
-- We guess that libmed was built using hdf5-serial version
-- Checking for one of the modules 'hdf5-serial'
-- Found Boost: /usr/local/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.55") found components: filesystem program_options regex system thread 
-- Found Netgen: /usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/CMake
-- Found NETGEN version 6.2, calculated: 395735
-- Coin3D libraries found
-- Could NOT find Spnav (missing: SPNAV_LIBRARY SPNAV_INCLUDE_DIR) 
-- Shiboken2Config: Using default python: .cpython-39-darwin
-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/local/Cellar/python3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/include/python3.9'
-- SHIBOKEN_PYTHON_LIBRARIES computed to value: '-undefined dynamic_lookup'
-- libshiboken built for Release
-- PYTHON_CONFIG_SUFFIX: .cpython-39-darwin
-- libshiboken built for Release
-- ===============================================
PySide2 Python module found at /usr/local/lib/python3.9/site-packages/PySide2.
===============================================

-- Found Matplotlib: /usr/local/lib/python3.9/site-packages/matplotlib (found version "2.1.1")
-- Platform is 64-bit, set -D_OCC64
-- Performing Test _flag_found
-- Performing Test _flag_found - Failed
-- 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 - Failed
-- Performing Test _flag_found
-- Performing Test _flag_found - Failed
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Found Boost: /usr/local/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found version "1.76.0") found components: python39 
-- found Boost: 1_76
-- boost-incude dirs are: /usr/local/include
-- boost-python lib is: 
-- boost_LIBRARY_DIRS is: /usr/local/lib
-- Boost_LIBRARIES is: Boost::python
-- area module (for Path Workbench) will be installed to: lib-DCMAKE_FIND_FRAMEWORK=LAST
-- 
==============
Summary report
==============

-- Build type:          Release
-- Compiler:            /Library/Developer/CommandLineTools/usr/bin/c++ (12.0.0.12000032)
-- Flags:               -Wall -Wextra -Wpedantic -Wno-write-strings  -Wno-undefined-var-template
-- Standard:            Requires C++14
-- Python:              3.9.6 [/usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9] [.cpython-39-darwin]
-- PCL:                 not enabled
-- pybind11:            not enabled
-- Boost:               1.76.0 (1.76.0)
-- XercesC:             3.2.3 [/usr/local/lib/libxerces-c.dylib] [/usr/local/include]
-- ZLIB:                1.2.11
-- PyCXX:               6.2.8 [/Users/ed/FreeCAD/freecad-src/src]
-- OCC:                 7.5.0 [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/local/lib] [/usr/local/include/opencascade]
-- SMESH:               build internal
--  MEDFile:            4.0.0 [/usr/local/lib/libmedC.dylib;/usr/local/lib/libmed.dylib] [/usr/local/include]
--  HDF5:               1.12.1
--  VTK:                8.2.0
-- NETGEN:              6.2.2007 (6.2.2007) [-DNO_PARALLEL_THREADS;-DOCCGEOMETRY;-DNETGEN_VERSION=395735] [] [/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/include/include;/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/include] [nglib] [/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/include/include;/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/include]
-- SWIG:                4.0.2
-- Eigen3               3.3.9
-- Qt5Core:             5.15.2
-- Qt5Network:          5.15.2
-- Qt5Xml:              5.15.2
-- Qt5XmlPatterns:      5.15.2
-- Qt5Widgets:          5.15.2
-- Qt5PrintSupport:     5.15.2
-- Qt5OpenGL:           5.15.2
-- Qt5Svg:              5.15.2
-- Qt5UiTools:          5.15.2
-- Qt5Concurrent:       5.15.2
-- Qt5WebEngineWidgets: 5.15.2
-- Shiboken2:           5.15.2 [/usr/local/lib/cmake/Shiboken2-5.15.2] [/usr/local/include/shiboken2;/usr/local/Cellar/python3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/include/python3.9]
-- PySide2:             5.15.2 [/usr/local/include/PySide2]
-- PySide2Tools:        [/usr/local/bin/uic] [/usr/local/bin/rcc]
-- Freetype:            2.11.0
-- OpenGL:              /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework
-- OpenGLU:             [/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework][/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework]
-- Coin3D:              4.0.0 [/usr/local/Cellar/coin@4.0.0/4.0.0/lib/libCoin.dylib] [/usr/local/Cellar/coin@4.0.0/4.0.0/include]
-- Pivy:                0.6.5
-- SPNAV:               [SPNAV_LIBRARY-NOTFOUND] [SPNAV_INCLUDE_DIR-NOTFOUND]
-- Matplotlib:          2.1.1
-- Rift:                not enabled (BUILD_VR)
-- Doxygen:             1.9.1
--  Language:           English
--  Coin3D_DOC:         not found
=================================================
Now run 'cmake --build /Users/ed/FreeCAD/freecad-build2' to build FreeCAD
=================================================

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ed/FreeCAD/freecad-build2
I see

Code: Select all

-- Performing Test _flag_found
-- Performing Test _flag_found - Failed
-- 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 - Failed
-- Performing Test _flag_found
-- Performing Test _flag_found - Failed
which I think is complaining about non-existent compiler flags?? I'd like to add a c++17-extensions compiler flag somewhere to try to suppress a endless pages of warnings from opencascade

Otherwise, it can't find SPNAV - which I think is support for the 3dConnection Mouse, which I can certainly do without. Whether it messes up the build, I don't yet know.

On my last pass I got a

Code: Select all

dyld: Symbol not found: __ZN11SbProjector10tryProjectERK7SbVec2ffR7SbVec3f
  Referenced from: /Users/ed/FreeCAD/freecad-install/lib-DCMAKE_FIND_FRAMEWORK=LAST/libFreeCADGui.dylib
  Expected in: flat namespace
 in /Users/ed/FreeCAD/freecad-install/lib-DCMAKE_FIND_FRAMEWORK=LAST/libFreeCADGui.dylib
error trying to run the freeCAD with gui. FreeCADCmd maybe is OK

Code: Select all

FreeCAD 0.20, Libs: 0.20R25310 (Git)
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> 
but it would be good to know how to run a test suite.

Looking for help as I'm just stubbornly blundering around until I find the way...
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

Progress!! - latest compile ./Freecad starts up but complains "no module named startGui" I must be missing some package in the build. Ideas?

In the FreeCADCmd console:

Code: Select all

>>> import sys
>>> for i in sys.path:
...     print(i)
... 
/Users/ed/Library/Preferences/FreeCAD/Mod/Curves
/Users/ed/Library/Preferences/FreeCAD/Mod/CurvedShapes
/Users/ed/Library/Preferences/FreeCAD/Mod/fasteners
/Users/ed/Library/Preferences/FreeCAD/Mod/fcgear
/Users/ed/Library/Preferences/FreeCAD/Mod/MeshRemodel
/Users/ed/FreeCAD/freecad-install/Mod/Raytracing
/Users/ed/FreeCAD/freecad-install/Mod/Material
/Users/ed/FreeCAD/freecad-install/Mod/Import
/Users/ed/FreeCAD/freecad-install/Mod/Part
/Users/ed/FreeCAD/freecad-install/Mod/Tux
/Users/ed/FreeCAD/freecad-install/Mod/PartDesign
/Users/ed/FreeCAD/freecad-install/Mod/Measure
/Users/ed/FreeCAD/freecad-install/Mod/Points
/Users/ed/FreeCAD/freecad-install/Mod/AddonManager
/Users/ed/FreeCAD/freecad-install/Mod/Arch
/Users/ed/FreeCAD/freecad-install/Mod/Idf
/Users/ed/FreeCAD/freecad-install/Mod/Inspection
/Users/ed/FreeCAD/freecad-install/Mod/Image
/Users/ed/FreeCAD/freecad-install/Mod/Robot
/Users/ed/FreeCAD/freecad-install/Mod/Surface
/Users/ed/FreeCAD/freecad-install/Mod/OpenSCAD
/Users/ed/FreeCAD/freecad-install/Mod/Start
/Users/ed/FreeCAD/freecad-install/Mod/Sketcher
/Users/ed/FreeCAD/freecad-install/Mod/Show
/Users/ed/FreeCAD/freecad-install/Mod/MeshPart
/Users/ed/FreeCAD/freecad-install/Mod/Path
/Users/ed/FreeCAD/freecad-install/Mod/TechDraw
/Users/ed/FreeCAD/freecad-install/Mod/Web
/Users/ed/FreeCAD/freecad-install/Mod/Spreadsheet
/Users/ed/FreeCAD/freecad-install/Mod/Fem
/Users/ed/FreeCAD/freecad-install/Mod/Test
/Users/ed/FreeCAD/freecad-install/Mod/Drawing
/Users/ed/FreeCAD/freecad-install/Mod/ReverseEngineering
/Users/ed/FreeCAD/freecad-install/Mod/Draft
/Users/ed/FreeCAD/freecad-install/Mod/Mesh
/Users/ed/FreeCAD/freecad-install/Mod
/Users/ed/FreeCAD/freecad-install/Ext
/Users/ed/FreeCAD/freecad-install/MacOS
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python39.zip
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload
/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
/usr/local/Cellar/matplotlib/2.1.1/libexec/lib/python3.9/site-packages
/Users/ed/Library/Preferences/FreeCAD/Macro
/Users/ed/FreeCAD/freecad-install/Macro
/Users/ed/Library/Application Support/FreeCAD/Mod
So it looks like stuff should be there, but the Gui FreeCAD is unresponsive.

EDIT A clue: my install directory looks like this:

Code: Select all

iMac27:freecad-install ed$ ls -l
total 0
drwxr-xr-x   4 ed  staff   128 Jul 25 13:53 Ext
drwxr-xr-x   5 ed  staff   160 Jul 25 13:53 MacOS
drwxr-xr-x  32 ed  staff  1024 Jul 25 13:53 Mod
drwxr-xr-x  63 ed  staff  2016 Jul 25 13:53 lib-DCMAKE_FIND_FRAMEWORK=LAST
drwxr-xr-x  10 ed  staff   320 Jul 25 13:53 share
the lib-DCMAKE_FIND_FRAMEWORK=LAST directory contains all the .so libraries, suggesting the cMake script failed to figure out where they should go.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

edwilliams16 wrote: Mon Jul 26, 2021 12:06 am
[/code]
the lib-DCMAKE_FIND_FRAMEWORK=LAST directory contains all the .so libraries, suggesting the cMake script failed to figure out where they should go.
Since most people call lib directories "lib", I tried

Code: Select all

ln -s lib-DCMAKE_FIND_FRAMEWORK=LAST lib
FreeCAD now starts up in terminal session! But I get an error

Code: Select all

[79510:15619:0725/152939.031532:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
and the main top menu is unresponsive until I click out of FreeCAD and then return! Maybe this is something to do with how an app created in a terminal session relates to a clickable Mac app - which I don't yet know anything about.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

Fixing a missing space in the cmake command-line fixed the lib naming problem - but the top menu unresponsiveness and the kTransientFailure error remain. Here's the (almost) working cmake:

Code: Select all

env \
CC="/usr/local/opt/ccache/libexec/cc" \
CXX="/usr/local/opt/ccache/libexec/c++" \
CCACHE_DIR="$HOME/.ccache/freecad"  \
LIBRARY_PATH="/usr/local/opt/icu4c/lib" \
cmake \
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG\
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG\
-DCMAKE_CXX_STANDARD=14 \
-DBUILD_ENABLE_CXX_STD:STRING=C++14 \
-Wno-deprecated-declarations \
-Wc++17-extensions \
-DHOMEBREW_PREFIX="/usr/local/" \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_FIND_FRAMEWORK=LAST \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-Wno-dev \
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk \
-DBUILD_QT5=ON \
-DUSE_PYTHON3=1\
-DPYTHON_EXECUTABLE="/usr/local/opt/python3.9/bin/python3" \
-DPYTHON_INCLUDE_DIR=$(/usr/local/opt/python3.9/bin/python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")  \
-DPYTHON_LIBRARY="/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib" \
-DBUILD_FEM_NETGEN=1 \
-DBUILD_FEM=1 \
-DBUILD_TECHDRAW=1 \
-DFREECAD_CREATE_MAC_APP=1 \
-DFREECAD_USE_EXTERNAL_KDL=ON \
-DVTK_DIR="/usr/local/opt/vtk@8.2.0/lib/cmake/vtk-8.2" \
-DCoin3D_DIR="/usr/local/opt/coin@4.0.0/lib/cmake/Coin-4.0.0" \
-DCOIN3D_INCLUDE_DIRS="/usr/local/Cellar/coin@4.0.0/4.0.0/include" \
-DCOIN3D_LIBRARIES="/usr/local/Cellar/coin@4.0.0/4.0.0/lib/libCoin.dylib" \
-DNetgen_DIR="/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/CMake" \
-Dboost_python_DIR="/usr/local/cellar/boost-python3\@1.75.0/1.75.0/lib/cmake" \
-DQt5Core_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Core" \
-DQt5Network_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Network" \
-DQt5Xml_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Xml" \
-DQt5XmlPatterns_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5XmlPatterns" \
-DQt5Widgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Widgets" \
-DQt5Concurrent_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Concurrent" \
-DQt5PrintSupport_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5PrintSupport" \
-DQt5OpenGL_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5OpenGL" \
-DQt5Svg_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Svg" \
-DQt5UiTools_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5UiTools" \
-DQt5WebEngineWidgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5WebEngineWidgets" \
-DCMAKE_PREFIX_PATH= \
"/usr/local/opt/qt5152/lib/cmake/Qt5; \
/usr/local/opt/nglib/Contents/Resources; \
/usr/local/Cellar/llvm/12.0.1/lib/cmake; \
/usr/local/opt/opencascade@7.5.0/lib/cmake; \
/usr/local/opt/med-file/share/cmake; \
/usr/local/opt/shiboken2/lib/cmake; \
/usr/local/opt/pyside2/lib/cmake; \
/usr/local/opt/coin@4.0.0/lib/cmake/Coin-4.0.0; \
/usr/local/cellar/boost/1.75.0/lib/cmake; \
/usr/local/Cellar/nglib/v6.2.2007/Contents/Resources/CMake;" \
-DCMAKE_BUILD_TYPE=Release \
-DFREECAD_CREATE_MAC_APP=OFF \
-DCMAKE_INSTALL_PREFIX=/Users/ed/freeCAD/freecad-install ../freecad-src
Maybe I can get some help on this last issues...

EDIT:

For some reason I'd turned this off.

Code: Select all

-DFREECAD_CREATE_MAC_APP=ON
The resulting clickable app doesn't have the errors - but has no start page. I know I'm supposed to mess with QT_MAC_WANTS_LAYER somewhere, if I can figure out where.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

Built in this manner, the FreeCAD "app" is a binary, not a bash starting script. When I do

Code: Select all

import os
os.environ['QT_MAC_WANTS_LAYER']
it is undefined - which I believe is appropriate for Catalina.

So other than the start page being blank, where I presently have no ideas, I think I can say [solved] for getting FreeCAD compiled - though it was a lot of work beyond what I have seen documented.
User avatar
ipatch
Posts: 112
Joined: Wed Apr 08, 2020 3:40 pm
Location: dfw
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by ipatch »

been absent from the forums lately. spend more time over on github than most places. you can also find me on gitter and irc in the respected freecad channels. i'm in CST time zone. so if i don't respond right away then more than likely you've messaged me in off hours.

you can ping me with questions like these if you'd like. my username is ipatch at most places, except for twitter, there i'm @truckmonth

now, that's out of the way, your issues. saw you had an issue with linking / finding the icu4c library. that is a common issue when compiling freecad from source on macos. one of the work arounds i have discovered is to set the `LIBRARY_PATH` in the terminal/shell env that you're using to compile freecad, and that will allow the linker to utilize the versioned icu4c library that is provided by the homebrew-freecad tap. (i need to update the wiki, `compile with macos instructions`) and make section of common errors for people who are compiling from source.

also just glanced over your directory structure, and i'd make sure you have the below directory structure when compiling freecad from git source.

```
mkdir -p /some/path/on/fs/freecad-git
cd /some/path/on/fs/freecad-git
mkdir -p freecad-src
mkdir -p freecad-build
git clone "https://github.com/freecad/freecad" freecad-src
cd freecad-src
echo "not required, but i consider a best practice, create a new branch for building the freecad source,
that way you don't clutter the master branch, and if you need to modify the source you can in your own build branch while still pulling
in updated commits within the `master` branch and then merge them into your `build-branch`.
and if whatever reason you muck up your `build-branch` just delete it, go back to `master` make sure everything is
current with upstream, and create a new `build-branch`."
git checkout -b my.freecad.build
cd ..
cd freecad-build
echo "then proceed to run cmake followed by your chosen args
i (me personally, having been building freecad from git source for a while now, and have successfully built the cli version,
and the app bundle", obviously the `.app` bundle version is more resilient to homebrew updates, as freecad uses quite
a bit of dependencies to make it work, as you have discovered, thus if any of the the deps have been upgraded you will begin
to run into (no pun) runtime issues when running freecad, thus requiring a rebuild of freecad, but also possibly some of the
first level deps provided by freecad because one or more of their deps has been upgraded"
```

```
echo "set the path for `LIBRARY_PATH` environment variable"
export LIBRARY_PATH=""/usr/local/Cellar/icu4c@67.1/67.1/lib"
```

setting the above env var should fix the linking issues you were running into, as you described in one of your prior replies to this thread.

okay so once you've set the `LIBRARY_PATH` env var and your cmake configuration is finished. i would run the following commands

```
make -j8 install
echo "obviously use the number of cores provided by your cpu, so if you only have 2 cores, then use `make -j2`" but i'm going to presume your on some variant of an i7 cpu, in that case, use `-j8`
echo "another best practice i find is to use the `say` cmd to let me know the build/install tasks are done.
echo "so use an updated version of the cmd"
make -j8 install; say "make and install task are done"
```

okay so if all that goes well you should be able to test freecad, obviously it depends if you setup cmake to build an `.app` bundle or you disabled that flag and you're going to test freecad from a cli.

the `.app` bundled version can be launched from the cli as well as double clicking on it. me personally, i've run into several issues using the app bundled version of freecad, it's a lot of work to get setup. i've personally have had to modify some of the freecad source in order to successfully get a working `FreeCAD.app` bundle. i'm still in the process of updating (sending PRs to the homebrew-freecad tap) to get things going a little smoother. not quite there yet, unfortunately. so i'd make sure you get CLI version working first, and you get workbenches you plan on working with going first. and the proceed to build an apple bundle `.app` bundle version of freecad. and personally i've created a separate build and install path from my cli version of freecad just to keep things tidy.

---

also something to point out, a lot of the formula file provided by the homebrew-freecad tap are keg-only which means their binaries are not located within the `/usr/local/bin/` or `$brew_prefix/bin` depending on where your homebrew installation is located.

so make sure that all the `keg-only` deps of the homebrew-freecad tap on linked into homebrew's bin dir.

```
brew link freecad/freecad/qt5152 --force
```

the above cmd should give you the below output to let you know that things are linked. that is just one of the formula that come to mind that are not linked into the `$brew_prefix/bin` dir.

```
Warning: Already linked: /usr/local/Cellar/qt5152/5.15.2
To relink, run:
brew unlink qt5152 && brew link --force qt5152
```

you can also bolt on a `--verbose` flag to see what symlinks are being created within your `$brew_prefix/bin` dir.

and you can also `unlink` formula/packages for whatever reason, ie. the homebrew-freecad tap provides it's own version of python and if you run into issues where a completely separate cli app you're using provided by homebrew has runtime issues, than it may be because you have one of freecad deps linked as opposed to the homebrew-core dep linked into the `brew_prefix/bin` dir.

---

so make sure you get the cli version going, you can get all the workbenches launched after you get freecad going.

i believe on the first launch of freecad you will not see anything loaded, so you'll have to go to the preferences and select a default workbench to load. once again IMHO i set this to `part design` apply the settings, click okay. then close and relaunch freecad.

make sure can you load the part design work bench, create document, create a body, create a sketch within the body, perform a pad on the sketch or some other action on the sketch from the part design workbench. then make sure you can save your file. then i'd close freecad and see if you can open your file that you just saved.

i've noticed from time to time that part design and sketcher workbenches will work without any issues, but if some freecad dep is updated than they can stop working when freecad is relaunched, i've also run into an issue where one workbench will load but not another ie. the draft & arch workbenches use a lot of the same dependencies. and sometimes the part design & sketcher workbenches will work great, but the draft and arch workbenches won't load, or even crash freecad.

welcome to compiling freecad from source. where you can spend more time setting up your environment to hopefully build and install freecad than actually using freecad. if you don't have any specific reason for compiling freecad from source than i'd highly recommend using the conda prebuilt dmg's. if you have the time and you enjoy troubleshooting build, install, and runtime errors than by all means continue to try and build freecad from source, just be aware it can become a form of a time sink. best of luck.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Stuck compiling FreeCAD on Mac Catalina

Post by edwilliams16 »

ipatch wrote: Tue Jul 27, 2021 6:51 pm saw you had an issue with linking / finding the icu4c library. that is a common issue when compiling freecad from source on macos. one of the work arounds i have discovered is to set the `LIBRARY_PATH` in the terminal/shell env that you're using to compile freecad, and that will allow the linker to utilize the versioned icu4c library that is provided by the homebrew-freecad tap. (i need to update the wiki, `compile with macos instructions`) and make section of common errors for people who are compiling from source.
Thanks, I found that one on your https://github.com/ipatch/homebrew-us-0 ... s-by-macos page. I didn't spot that link that until day two!


ipatch wrote: Tue Jul 27, 2021 6:51 pm mkdir -p /some/path/on/fs/freecad-git
cd /some/path/on/fs/freecad-git
mkdir -p freecad-src
mkdir -p freecad-build
git clone "https://github.com/freecad/freecad" freecad-src
cd freecad-src
echo "not required, but i consider a best practice, create a new branch for building the freecad source,
that way you don't clutter the master branch, and if you need to modify the source you can in your own build branch while still pulling
in updated commits within the `master` branch and then merge them into your `build-branch`.
and if whatever reason you muck up your `build-branch` just delete it, go back to `master` make sure everything is
current with upstream, and create a new `build-branch`."
git checkout -b my.freecad.build
cd ..
cd freecad-build
echo "then proceed to run cmake followed by your chosen args
i (me personally, having been building freecad from git source for a while now, and have successfully built the cli version,
and the app bundle", obviously the `.app` bundle version is more resilient to homebrew updates, as freecad uses quite
a bit of dependencies to make it work, as you have discovered, thus if any of the the deps have been upgraded you will begin
to run into (no pun) runtime issues when running freecad, thus requiring a rebuild of freecad, but also possibly some of the
first level deps provided by freecad because one or more of their deps has been upgraded"
I also switched to this structure after finding your github page. Excellent idea starting a build-branch!
ipatch wrote: Tue Jul 27, 2021 6:51 pm make -j8 install
I'll adopt that. Is there a corresponding cmake switch?
ipatch wrote: Tue Jul 27, 2021 6:51 pm also something to point out, a lot of the formula file provided by the homebrew-freecad tap are keg-only which means their binaries are not located within the `/usr/local/bin/` or `$brew_prefix/bin` depending on where your homebrew installation is located.

so make sure that all the `keg-only` deps of the homebrew-freecad tap on linked into homebrew's bin dir.


brew link freecad/freecad/qt5152 --force
Is this why the

Code: Select all

-DCMAKE_PREFIX_PATH= \
"/usr/local/opt/qt5152/lib/cmake/Qt5; \
couldn't find anything? I had to point to all the .cmake files one by one.

Code: Select all

-DQt5Core_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Core" \
-DQt5Network_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Network" \
-DQt5Xml_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Xml" \
-DQt5XmlPatterns_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5XmlPatterns" \
-DQt5Widgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Widgets" \
-DQt5Concurrent_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Concurrent" \
-DQt5PrintSupport_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5PrintSupport" \
-DQt5OpenGL_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5OpenGL" \
-DQt5Svg_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5Svg" \
-DQt5UiTools_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5UiTools" \
-DQt5WebEngineWidgets_DIR="/usr/local/opt/qt5152/lib/cmake/Qt5WebEngineWidgets" \
This was incredibly tedious using the cmake gui - which would stop on the first error. I didn't learn about cmake -LH until later. Referring to the linux build page has useful clues.

ipatch wrote: Tue Jul 27, 2021 6:51 pm i believe on the first launch of freecad you will not see anything loaded, so you'll have to go to the preferences and select a default workbench to load. once again IMHO i set this to `part design` apply the settings, click okay. then close and relaunch freecad.
I tried this - still can't get the start page up.
ipatch wrote: Tue Jul 27, 2021 6:51 pm welcome to compiling freecad from source. where you can spend more time setting up your environment to hopefully build and install freecad than actually using freecad. if you don't have any specific reason for compiling freecad from source than i'd highly recommend using the conda prebuilt dmg's. if you have the time and you enjoy troubleshooting build, install, and runtime errors than by all means continue to try and build freecad from source, just be aware it can become a form of a time sink. best of luck.

For the work involved it's really beyond my needs. My problem is I don't give up easily enough. Thanks for the lengthy post!!
Post Reply