udacity / SFND_Lidar_Obstacle_Detection

374 stars 523 forks source link

Make in MacOS Catalina fails #29

Closed hect1995 closed 3 years ago

hect1995 commented 4 years ago

I have followed all the steps but when doing the make I get this error.

MacBook-Pro-de-Hector-2:build hectoresteban$ make
Scanning dependencies of target environment
[ 25%] Building CXX object CMakeFiles/environment.dir/src/environment.cpp.o
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:42:
In file included from /usr/local/include/pcl-1.9/pcl/correspondence.h:46:
In file included from /usr/local/include/eigen3/Eigen/StdVector:14:
In file included from /usr/local/include/eigen3/Eigen/Core:96:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
           ^
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:42:
In file included from /usr/local/include/pcl-1.9/pcl/correspondence.h:46:
In file included from /usr/local/include/eigen3/Eigen/StdVector:14:
In file included from /usr/local/include/eigen3/Eigen/Core:96:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:320:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:321:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:322:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:323:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
using ::isgreater;
      ^~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:731:29: note: '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:42:
In file included from /usr/local/include/pcl-1.9/pcl/correspondence.h:46:
In file included from /usr/local/include/eigen3/Eigen/StdVector:14:
In file included from /usr/local/include/eigen3/Eigen/Core:96:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
using ::isgreaterequal;
      ^~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:760:29: note: '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:42:
In file included from /usr/local/include/pcl-1.9/pcl/correspondence.h:46:
In file included from /usr/local/include/eigen3/Eigen/StdVector:14:
In file included from /usr/local/include/eigen3/Eigen/Core:96:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:245:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:42:
In file included from /usr/local/include/pcl-1.9/pcl/correspondence.h:46:
In file included from /usr/local/include/eigen3/Eigen/StdVector:14:
In file included from /usr/local/include/eigen3/Eigen/Core:371:
/usr/local/include/eigen3/Eigen/src/Core/MathFunctions.h:719:16: error: no member named 'isfinite' in namespace 'std'; did you mean 'finite'?
    using std::isfinite;
          ~~~~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: note: 'finite' declared here
using ::isfinite;
        ^
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:42:
In file included from /usr/local/include/pcl-1.9/pcl/correspondence.h:46:
In file included from /usr/local/include/eigen3/Eigen/StdVector:14:
In file included from /usr/local/include/eigen3/Eigen/Core:371:
/usr/local/include/eigen3/Eigen/src/Core/MathFunctions.h:734:16: error: no member named 'isinf' in namespace 'std'
    using std::isinf;
          ~~~~~^
/usr/local/include/eigen3/Eigen/src/Core/MathFunctions.h:749:16: error: no member named 'isnan' in namespace 'std'
    using std::isnan;
          ~~~~~^
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:48:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/common/actor_map.h:40:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/point_cloud_handlers.h:41:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/point_cloud_geometry_handlers.h:50:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkFloatArray.h:29:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkGenericDataArrayLookupHelper.h:40:13: error: expected member name or ';' after declaration specifiers
static bool isnan(T x)
~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.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/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:48:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/common/actor_map.h:40:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/point_cloud_handlers.h:41:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/point_cloud_geometry_handlers.h:50:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkFloatArray.h:29:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkGenericDataArrayLookupHelper.h:40:13: error: expected ')'
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.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.2.0_10/include/vtk-8.2/vtkGenericDataArrayLookupHelper.h:40:13: note: to match this '('
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.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/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/environment.cpp:5:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/lidar.h:3:
In file included from /Users/hectoresteban/Documents/C++/SensorFusion/SFND_Lidar_Obstacle_Detection/src/sensors/../render/render.h:7:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/pcl_visualizer.h:48:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/common/actor_map.h:40:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/point_cloud_handlers.h:41:
In file included from /usr/local/include/pcl-1.9/pcl/visualization/point_cloud_geometry_handlers.h:50:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkFloatArray.h:29:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.2.0_10/include/vtk-8.2/vtkGenericDataArrayLookupHelper.h:49:15: error: expected member name or ';' after declaration specifiers
  static bool isnan(T)
  ~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:165:7: 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]: *** [CMakeFiles/environment.dir/src/environment.cpp.o] Error 1
make[1]: *** [CMakeFiles/environment.dir/all] Error 2
make: *** [all] Error 2
MacBook-Pro-de-Hector-2:build hectoresteban$ 
abhiojha8 commented 3 years ago

Please follow the updated installation instructions in the README. That should resolve this issue.

MayurHulke commented 2 years ago

Hi @abhiojha8 , I am facing the similar issue even with the updated instuctions.