[vtk-developers] build error compiling PCL under MacOS Mojave

Edgar Grimberg edgar.grimberg at gmail.com
Sat Dec 29 20:02:46 EST 2018


After some investigation, it looks like the problem only manifests for
cmake generating Makefiles, but works fine for Xcode builder.

Edgar

On Sat, Dec 29, 2018 at 7:26 PM Edgar Grimberg <edgar.grimberg at gmail.com>
wrote:

> 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/20181230/44cd68b1/attachment.html>


More information about the vtk-developers mailing list