我正在Mac和Windows上编译点云库项目 我收到以下错误:
/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;
这是我编译项目的确切步骤
$> brew update
$> brew tap brewsci/science
$> brew options pcl
$> brew install pcl
$> cd ~
$> git clone https://github.com/udacity/SFND_Lidar_Obstacle_Detection.git
$> cd SFND_Lidar_Obstacle_Detection
$> mkdir build && cd build
$> cmake ..
$> make
我尝试将该地址中给定的文件从include更改为include,但是不允许我这样做,因为该文件是只读的。 这是我的CMakeLists.txt
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
add_definitions(-std=c++17)
set(CXX_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS, "${CXX_FLAGS}")
project(playback)
find_package(PCL 1.2 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")
add_executable (environment src/environment.cpp src/render/render.cpp src/processPointClouds.cpp)
target_link_libraries (environment ${PCL_LIBRARIES})
我尝试使用clang ++和g ++进行编译,但是没有发现任何区别!
答案 0 :(得分:0)
这是我编译项目的确切步骤
$> brew update
$> brew tap brewsci/science
$> brew options pcl
$> brew install pcl
$> cd ~
$> git clone https://github.com/udacity/SFND_Lidar_Obstacle_Detection.git
$> cd SFND_Lidar_Obstacle_Detection
$> mkdir build && cd build
$> cmake ..
$> make