m1 osx: gcc: can't find <mm_malloc.h>, clang: namespace "pcl" has no member "PointCloud"C/C++(135)
I installed PCL by "brew install pcl", my system version is: osx 12.0.1 I'm compling write_pcd example.
If I use clange as compiler, it can compile and work, but get some errors like this.
If I switch to gcc, then got "can't find <mm_malloc.h> error“ if I change the source code from <mm_malloc.h> to <sys/malloc.h>, I will get some undefined symbols error.
Expected behavior Work with PCL in my mba laptop.
Your Environment (please complete the following information):
- OS: osx 12.0.1
- Compiler: gcc 11.2 and clang 13.0
- PCL Version 1.12, HEAD
Sorry, the problems are not very clear. If you use Clang, can you compile and run successfully or do you get errors? You seem to use some IDE, which one is it? For GCC, the message about <mm_malloc.h>, are you sure that is an error or just a warning? Where do you change the source code to <sys/malloc.h>? What undefined symbols error do you get? Please describe the problems more detailed, subdivided into Clang and GCC, with many screenshots