build error compiling PCL under MacOS Mojave

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

build error compiling PCL under MacOS Mojave

Edgar Grimberg
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


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: build error compiling PCL under MacOS Mojave

Edgar Grimberg
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 <[hidden email]> 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


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtk-developers