This is my cmake command:
Code: Select all
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DHOMEBREW_PREFIX="$bp" \
-DUSE_PYTHON3=1 \
-DPYTHON_INCLUDE_DIR="$bp/Cellar/python@3.9/3.9.13/Frameworks/Python.framework/Versions/3.9/include/python3.9" \
-DPYTHON_LIBRARY="$bp/Cellar/python@3.9/3.9.13/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib" \
-DBUILD_QT5=1 \
-DBUILD_SMESH=1 \
-DBUILD_FEM_NETGEN=1 \
-DFREECAD_CREATE_MAC_APP=1 \
-DOCC_INCLUDE_DIR=$bp/Cellar/opencascade@7.5.3/7.5.3/include/opencascade \
-DOCE_DIR=$bp/Cellar/opencascade@7.5.3/7.5.3/include/opencascade \
-DOCC_LIBRARY=$bp/Cellar/opencascade@7.5.3/7.5.3/lib/libTKernel.so \
-DCMAKE_PREFIX_PATH="$bp/Cellar/qt@5/5.15.3/lib/cmake;$bp/Cellar/coin3d/4.0.0_3/lib/cmake;$bp/Cellar/pyside@2/5.15.3/lib/cmake;$bp/Cellar/llvm/13.0.1_1/lib/cmake;$bp/Cellar/vtk@8.2/8.2.0_8/lib/cmake;$bp/Cellar/nglib@6.2.2104/6.2.2104_1/Contents/Resources/CMake;" \
-DCMAKE_INSTALL_PREFIX="./.." ../freecad-source/
Code: Select all
==============
Summary report
==============
-- Build type: Release
-- Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ (13.1.6.13160021)
-- Flags: -Wall -Wextra -Wpedantic -Wno-write-strings -std=c++14 -Wno-undefined-var-template
-- Standard: Requires C++17
-- Python: 3.9.13 [/usr/local/Frameworks/Python.framework/Versions/3.9/bin/python3.9] [.abi3]
-- PCL: not enabled
-- pybind11: not enabled
-- Boost: 1.78.0 (1.78.0)
-- XercesC: 3.2.3 [/usr/local/lib/libxerces-c.dylib] [/usr/local/include]
-- ZLIB: 1.2.11
-- PyCXX: 6.2.8 [/Users/bj/FreeCAD/freecad-source/src]
-- OCC: 7.5.3 [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/Cellar/opencascade@7.5.3/7.5.3/lib] [/usr/local/Cellar/opencascade@7.5.3/7.5.3/include/opencascade]
-- SMESH: build internal
-- MEDFile: 4.1.0 [/usr/local/lib/libmedC.dylib;/usr/local/lib/libmed.dylib] [/usr/local/include]
-- HDF5: 1.12.2
-- VTK: 8.2.0
-- NETGEN: 6.2.2104 (6.2.2104) [-DNO_PARALLEL_THREADS;-DOCCGEOMETRY;-DNETGEN_VERSION=395832] [] [/usr/local/Cellar/nglib@6.2.2104/6.2.2104_1/Contents/Resources/include/include;/usr/local/Cellar/nglib@6.2.2104/6.2.2104_1/Contents/Resources/include] [nglib] [/usr/local/Cellar/nglib@6.2.2104/6.2.2104_1/Contents/Resources/include/include;/usr/local/Cellar/nglib@6.2.2104/6.2.2104_1/Contents/Resources/include]
-- SWIG: 4.0.2
-- Eigen3 3.4.0
-- Qt5Core: 5.15.3
-- Qt5Network: 5.15.3
-- Qt5Xml: 5.15.3
-- Qt5XmlPatterns: 5.15.3
-- Qt5Widgets: 5.15.3
-- Qt5PrintSupport: 5.15.3
-- Qt5OpenGL: 5.15.3
-- Qt5Svg: 5.15.3
-- Qt5UiTools: 5.15.3
-- Qt5Concurrent: 5.15.3
-- Qt5WebEngineWidgets: 5.15.8
-- Designer plugin: not built per user request (BUILD_DESIGNER_PLUGIN)
-- Shiboken2: 5.15.3 [/usr/local/Cellar/pyside@2/5.15.3/lib/cmake/Shiboken2-5.15.3] [/usr/local/Cellar/pyside@2/5.15.3/include/shiboken2;/usr/local/Cellar/python@3.9/3.9.13/Frameworks/Python.framework/Versions/3.9/include/python3.9]
-- PySide2: 5.15.3 [/usr/local/Cellar/pyside@2/5.15.3/include/PySide2]
-- PySide2Tools: [/usr/local/Cellar/qt@5/5.15.3/bin/uic] [/usr/local/Cellar/qt@5/5.15.3/bin/rcc]
-- Freetype: 2.12.0
-- OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework
-- OpenGLU: [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework][/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/OpenGL.framework]
-- Coin3D: 4.0.0 [/usr/local/lib/libCoin.dylib] [/usr/local/include]
-- Pivy:
-- SPNAV: [SPNAV_LIBRARY-NOTFOUND] [SPNAV_INCLUDE_DIR-NOTFOUND]
-- Matplotlib: 3.4.3
-- Rift: not enabled (BUILD_VR)
-- Doxygen: 1.9.4
-- Language: English
-- Coin3D_DOC: not found
Code: Select all
cmake --build ~/FreeCAD/build
Code: Select all
[ 9%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/Application.cpp.o
In file included from ~/FreeCAD/freecad-source/src/Gui/Application.cpp:43:
In file included from ~/FreeCAD/build/src/App/DocumentObjectPy.h:7:
In file included from ~/FreeCAD/build/src/App/ExtensionContainerPy.h:7:
In file included from ~/FreeCAD/build/src/App/PropertyContainerPy.h:7:
In file included from ~/FreeCAD/build/src/Base/PersistencePy.h:7:
In file included from ~/FreeCAD/build/src/Base/BaseClassPy.h:7:
In file included from ~/FreeCAD/freecad-source/src/Base/PyObjectBase.h:55:
In file included from ~/FreeCAD/freecad-source/src/CXX/Objects.hxx:42:
~/FreeCAD/freecad-source/src/CXX/Python3/Objects.hxx:1026:18: error: unknown type name 'Py_complex'; did you mean '_Complex'?
operator Py_complex() const
^~~~~~~~~~
_Complex
~/FreeCAD/freecad-source/src/CXX/Python3/Objects.hxx:1026:18: warning: '_Complex' is a C99 extension [-Wc99-extensions]
~/FreeCAD/freecad-source/src/CXX/Python3/Objects.hxx:1026:18: warning: plain '_Complex' requires a type specifier; assuming '_Complex double'
operator Py_complex() const
^
double
~/FreeCAD/freecad-source/src/CXX/Python3/Objects.hxx:1031:35: error: unknown type name 'Py_complex'; did you mean '_Complex'?
Complex &operator=( const Py_complex &v )
^~~~~~~~~~
_Complex
~/FreeCAD/freecad-source/src/CXX/Python3/Objects.hxx:1031:35: warning: '_Complex' is a C99 extension [-Wc99-extensions]
~/FreeCAD/freecad-source/src/CXX/Python3/Objects.hxx:1031:35: warning: plain '_Complex' requires a type specifier; assuming '_Complex double'
Complex &operator=( const Py_complex &v )
^
double
~/FreeCAD/freecad-source/src/CXX/Python3/Objects.hxx:1028:20: error: use of undeclared identifier 'PyComplex_AsCComplex'
This is on MacOS 12.3.1 and the source code is from cloning https://github.com/FreeCAD/FreeCAD.git today.