pcl icon indicating copy to clipboard operation
pcl copied to clipboard

m1 osx: gcc: can't find <mm_malloc.h>, clang: namespace "pcl" has no member "PointCloud"C/C++(135)

Open HikariS97 opened this issue 4 years ago • 1 comments

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.

截屏2021-11-08 23 43 00 截屏2021-11-08 23 44 12

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

HikariS97 avatar Nov 08 '21 15:11 HikariS97

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

mvieth avatar Nov 10 '21 13:11 mvieth