Skip to content

Conversation

@kamjagin
Copy link

In OSX 10.9, libc++ is now the default standard library on Mac. libc++ is not compatible with CUDA so pcl fails to build unless the previous stdlib is specified explicitly

… is not compatible with CUDA so pcl fails to build unless the previous stdlib is specified explicitly
jspricke added a commit that referenced this pull request Jan 28, 2014
Fixed a build error on mac + cuda (only libstdc++ is supported by nvcc)
@jspricke jspricke merged commit dad8f33 into PointCloudLibrary:master Jan 28, 2014
@fran6co
Copy link
Contributor

fran6co commented Jan 31, 2014

This is really bad! You have to use stdc++ for every project that uses PCL in Mac and the same for the dependencies. I think it would be better to disable CUDA if using libc++ and enable it when using libstdc++.

@kamjagin
Copy link
Author

I agree - if one wants to compile without CUDA this is ugly. Maybe an additional CUDA-test in the if-clause for adding libstdc++ if CUDA is enabled and not touch anything otherwise?

@kamjagin
Copy link
Author

The reason why the libstdc++ flag is ugly to specify manually from command line is that the necessary flags on line 151 are only added if cxxflags is empty, so they must in that case also be included by anyone building on Mac with CUDA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants