PointCloudLibrary / PointCloudLibrary/pcl

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

Open
#5,021 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: bug status: triage
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.

截屏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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.