yangfuyuan / ydlidar_sdk

ydlidar sdk(new version)
GNU General Public License v3.0
15 stars 5 forks source link

make fails with 'asm/ioctls.h file not found' on Mac #1

Open angsabrina opened 5 years ago

angsabrina commented 5 years ago
build SXA2QUY$ make
[  5%] Building CXX object CMakeFiles/ydlidar_driver_static.dir/Serial/impl/unix/unix_serial.cpp.o
/Users/SXA2QUY/LoL/Limits_of_Lidar/ydlidar_sdk/Serial/impl/unix/unix_serial.cpp:48:10: fatal error: 'asm/ioctls.h' file not found
#include <asm/ioctls.h>
         ^~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/ydlidar_driver_static.dir/Serial/impl/unix/unix_serial.cpp.o] Error 1
make[1]: *** [CMakeFiles/ydlidar_driver_static.dir/all] Error 2
make: *** [all] Error 2

I think it might be similar to this problem, https://github.com/intel-iot-devkit/mraa/issues/546, where ydlidar_sdk is not supported for Mac. Is this so? Thanks.

beautyfree commented 1 year ago

same on my side