Ask Your Question

Building PCL on OSX 10.9

asked 2013-10-25 01:22:24 -0500

Artem gravatar image

After installing OSX 10.9, PCL does not build anymore. There were a few compilation and linking problems related to VTK 6.0, that I resolved somehow see this discussion. Now there is a compilation error

[ 21%] Building CXX object filters/CMakeFiles/pcl_filters.dir/src/extract_indices.cpp.o
In file included from /Users/user/Documents/temp/pcl/pcl/filters/src/extract_indices.cpp:41:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/impl/extract_indices.hpp:43:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/extract_indices.h:43:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/filter_indices.h:43:
In file included from /Users/user/Documents/temp/pcl/pcl/filters/include/pcl/filters/filter.h:43:
In file included from /Users/user/Documents/temp/pcl/pcl/common/include/pcl/pcl_base.h:45:
In file included from /Users/user/Documents/temp/pcl/pcl/common/include/pcl/pcl_macros.h:69:
In file included from /Applications/
In file included from /Applications/
In file included from /Applications/
In file included from /Applications/
/Applications/ error: cannot convert 'const pcl::Boundary' to
      'unsigned char' without a conversion operator
        _VSTD::memset(__first, (unsigned char)__value_, (size_t)(__n));

Any ideas how to resolve this?

edit retag flag offensive close merge delete


I also tried to compile the latest version of and with the vtk6-fixes branch, but then I get some eigen error ...

Hansg91 gravatar image Hansg91  ( 2013-10-26 00:31:24 -0500 )edit

The eigen issue has been solved here Regarding the rest, I'm getting the same errors as yourself above after upgrading to Mavericks. V frustrating...

Ivano gravatar image Ivano  ( 2013-10-26 04:04:55 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-10-26 05:03:19 -0500

Ivano gravatar image

By adding the two following lines in the file CMakeLists.txt

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")



I've managed to get PCL 1.7.1 built succesfully on OS 10.9. That should also work for the trunk.

It seems that these kind of issues boil down to the swap of defaults libstdc++ / libc++ in Xcode 5.0.1

edit flag offensive delete link more


Thanks Ivano! It did help to pass those errors. I got stuck with linking errors. Undefined symbols for architecture x86_64: "vtkObjectBase::PrintHeader(std::ostream&, vtkIndent)", referenced from: vtable for pcl::visualization::PointPickingCallback in point_picking_event.cpp.o vtable for pcl::visualization::PCLVisualizerInteractorStyle in interactor_style.cpp.o ...

Artem gravatar image Artem  ( 2013-10-26 12:01:56 -0500 )edit

What version of VTK did you install?

Artem gravatar image Artem  ( 2013-10-26 12:03:14 -0500 )edit

Adding -DBUILD_visualization=off allowed me successfuly built PCL. Did you have to turn visualisation off too?

Artem gravatar image Artem  ( 2013-10-26 12:20:57 -0500 )edit

Awesome. No, I didn't need the VTK I'm afraid. Anyway here ( you can find the new CUDA library for OS X 10.9 rolled out from NVIDIA just last night.

Ivano gravatar image Ivano  ( 2013-10-27 06:30:38 -0500 )edit

Just a small side question, did you manage to install qt? It doesnt compile for me.

Hansg91 gravatar image Hansg91  ( 2013-10-27 06:46:38 -0500 )edit

Nope, here is a discussion on this issue

Artem gravatar image Artem  ( 2013-10-27 08:42:26 -0500 )edit

I managed to compile Qt, using the patches from here:,69325

Hansg91 gravatar image Hansg91  ( 2013-10-28 09:23:44 -0500 )edit

Cool. Thanks!

Ivano gravatar image Ivano  ( 2013-10-28 21:35:40 -0500 )edit

answered 2014-11-19 17:59:55 -0500

pgorczak gravatar image

I could get the latest version to install on OS X Yosemite with brew install pcl --HEAD

Some more discussion in a related question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-10-25 01:22:24 -0500

Seen: 2,111 times

Last updated: Nov 19 '14