[vtk-developers] build error compiling PCL under MacOS Mojave
Edgar Grimberg
edgar.grimberg at gmail.com
Sat Dec 29 13:26:40 EST 2018
Hi,
Trying to compile PCL under MacOS Mojave, I am running into an error like:
*/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:313:9:
**error: **no member named 'signbit' in the global namespace*
using ::signbit;
* ~~^*
*/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:314:9:
**error: **no member named 'fpclassify' in the global namespace*
using ::fpclassify;
* ~~^*
*/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:315:9:
**error: **no member named 'isfinite' in the global namespace; did you mean
'finite'?*
using ::isfinite;
* ~~^*
*/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12:
note: *'finite' declared here
extern int finite(double)
The main reason for this is VTK introducing:
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
If I run the compilation command manually without the /usr/include folder,
it compiles fine.
I am using latest VTK from brew:
vtk: stable 8.1.2 (bottled), HEAD
Thanks,
Edgar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20181229/50d4f024/attachment.html>
More information about the vtk-developers
mailing list