Code: Select all
[ 0%] Built target Driver
[ 0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace; did you mean 'greater'?
using ::isgreater;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: note: 'greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace; did you mean 'greater_equal'?
using ::isgreaterequal;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: note: 'greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace; did you mean 'less_equal'?
using ::islessequal;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:776:29: note: 'less_equal' declared here
struct _LIBCPP_TEMPLATE_VIS less_equal : binary_function<_Tp, _Tp, bool>
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected member name or ';' after declaration specifiers
static bool isnan(T x)
~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected member name or ';' after declaration specifiers
static bool isnan(T)
~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected unqualified-id
bool isnan(T x)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/all] Error 2
make: *** [all] Error 2
I have the same problem. Does anyone has a workable solution? If I remove the lineleonardshelby wrote: ↑Fri Nov 16, 2018 8:45 pmHere's the output of make. Are there any more ressources that help getting a working setup to compile FreeCAD on Mojave?
Code: Select all
[ 0%] Built target Driver [ 0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace using ::signbit; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace using ::fpclassify; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'? using ::isfinite; ~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here extern int finite(double) ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace using ::isinf; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace using ::isnan; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace using ::isnormal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace; did you mean 'greater'? using ::isgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: note: 'greater' declared here struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool> ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace; did you mean 'greater_equal'? using ::isgreaterequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: note: 'greater_equal' declared here struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool> ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace using ::isless; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace; did you mean 'less_equal'? using ::islessequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:776:29: note: 'less_equal' declared here struct _LIBCPP_TEMPLATE_VIS less_equal : binary_function<_Tp, _Tp, bool> ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace using ::islessgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected member name or ';' after declaration specifiers static bool isnan(T x) ~~~~~~~~~~~ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected ')' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: note: to match this '(' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected member name or ';' after declaration specifiers static bool isnan(T) ~~~~~~~~~~~ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected ')' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: note: to match this '(' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected unqualified-id bool isnan(T x) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35: In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72: /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected ')' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: note: to match this '(' /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o] Error 1 make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/all] Error 2 make: *** [all] Error 2
Code: Select all
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
Code: Select all
for i in `grep -Rl '\-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include'` ; do sed -e 's?-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include??' $i >/tmp/junk ; mv /tmp/junk $i ; done
If I knew how to make a cmake patch I wouldwmayer wrote:
federico.carminati wrote: ↑Tue Dec 11, 2018 9:40 amI managed to build FreeCAD on Mojave. After cmake I run
Really not elegant, but I think this is a cmake problem. best,Code: Select all
for i in `grep -Rl '\-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include'` ; do sed -e 's?-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include??' $i >/tmp/junk ; mv /tmp/junk $i ; done
Federico Carminati