PointCloudLibrary / PointCloudLibrary/pcl
m1 osx: gcc: can't find <mm_malloc.h>, clang: namespace "pcl" has no member "PointCloud"C/C++(135)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 4.7k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 6
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the write_pcd example and reproduce the reported GCC and Clang diagnostics on macOS 12.0.1 using PCL 1.12, paying attention to the <mm_malloc.h> and pcl::PointCloud errors. Done means the example compiles and runs with the documented compiler setup without undefined symbols.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100