I'm trying to compile on MacOS 12.6.2 according to this guide
I get the following error:
Code: Select all
[ 15%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/SoFCSelection.cpp.o
~/FreeCAD/freecad-source/src/Gui/SoFCSelection.cpp:385:28: error: implicit instantiation of undefined template 'std::array<std::pair<double, std::string>, 3>'
auto pts = schemaTranslatePoint(pt[0], pt[1], pt[2], 1e-7);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
1 error generated.
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/SoFCSelection.cpp.o] Error 1
make[1]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/all] Error 2
make: *** [all] Error 2
Code: Select all
#include <array>
The #include <array> also make a way past this errors:
Code: Select all
/Users/bj/FreeCAD/freecad-source/src/Mod/TechDraw/App/DrawProjGroup.cpp:923:17: error: type 'std::array<DrawProjGroupItem *, MAXPROJECTIONCOUNT>' does not provide a subscript operator
viewPtrs[i] = nullptr;
~~~~~~~~^~
/Users/bj/FreeCAD/freecad-source/src/Mod/TechDraw/App/DrawProjGroup.cpp:967:29: error: type 'std::array<DrawProjGroupItem *, MAXPROJECTIONCOUNT>' does not provide a subscript operator
viewPtrs[4] = oView;
~~~~~~~~^~
This is my cmake arguments:
Code: Select all
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DPYTHON_EXECUTABLE="/usr/local/bin/python3.10" \
-DPYTHON_INCLUDE_DIR="/usr/local/opt/python/Frameworks/Python.framework/Versions/3.10/include/python3.10" \
-DQt5_DIR="/usr/local/Cellar/qt@5/5.15.8_1/lib/cmake/Qt5" \
-DPySide2_DIR="/usr/local/Cellar/pyside@2/5.15.8/lib/cmake/PySide2-5.15.5" \
-DShiboken2_DIR="/usr/local/Cellar/shiboken2@5.15.5/5.15.5_1/lib/cmake/Shiboken2-5.15.5" \
../freecad-source