[vtk-developers] libc++ problem on OSX

Biddiscombe, John A. biddisco at cscs.ch
Wed Sep 17 15:15:03 EDT 2014


Thanks to all of you,

In my cache there was a VTK_REQUIRED_OBJCXX_FLAGS libstdc++ setting. I put that right and now I’m past that problem.

Yours

JB

From: Robert Maynard <robert.maynard at kitware.com<mailto:robert.maynard at kitware.com>>
Date: Wednesday 17 September 2014 20:52
To: Sean McBride <sean at rogue-research.com<mailto:sean at rogue-research.com>>
Cc: cscs <biddisco at cscs.ch<mailto:biddisco at cscs.ch>>, VTK Developers <vtk-developers at vtk.org<mailto:vtk-developers at vtk.org>>
Subject: Re: [vtk-developers] libc++ problem on OSX

I completely forgot about VTK_REQUIRED_OBJCXX_FLAGS.

On Wed, Sep 17, 2014 at 2:38 PM, Sean McBride <sean at rogue-research.com<mailto:sean at rogue-research.com>> wrote:
On Wed, 17 Sep 2014 14:17:21 -0400, Robert Maynard said:

>If my memory is correct CMake doesn't have explicit global objc or objc++
>flag variables. Instead what you can try todo is to set the  COMPILE_FLAGS
> property on each mm file to be "-stdlib=libstdc++"

CMake doesn't (bug 4756) but VTK does: "VTK_REQUIRED_OBJCXX_FLAGS"

<http://public.kitware.com/Bug/view.php?id=4756>

VTK does work with libc++ and I have several dashboards that use it.  The link error does suggest however that some files are using libstdc++ and some others using libc++.  Maybe try adding -stdlib=libc++ to VTK_REQUIRED_OBJCXX_FLAGS also, though I don't believe I've had to do that...

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com<mailto:sean at rogue-research.com>
Rogue Research                        www.rogue-research.com<http://www.rogue-research.com>
Mac Software Developer              Montréal, Québec, Canada





More information about the vtk-developers mailing list