[vtkusers] VTK 8.1 in Ubuntu 16.04

Mathieu Westphal mathieu.westphal at kitware.com
Tue May 29 08:04:44 EDT 2018


Dear Aida,

Please make sure you are building your project with C++11 activated.
One way to do that would be to add the following in your CMakeLists.txt

target_compile_features(target PUBLIC cxx_std_11)


Best regards,


Mathieu Westphal

On Tue, May 29, 2018 at 1:52 PM, Aida Ninyerola <aida.ninyerola at gmail.com>
wrote:

> Hi,
>
> I've built VTK 8.1 in Ubuntu 16.04 without problems. Now that I'm trying
> to build my project I've found a problem that I think could be related with
> VTK compilation.
>
> One it's a warning: /usr/local/include/vtk-8.1/vtkOStrStreamWrapper.h:45:25:
> warning: override controls (override/final) only available with -std=c++11
> or -std=gnu++11
>
> And the error appears as /usr/local/include/vtk-8.1/vtkWeakPointerBase.h:39:33:
> error: ‘nullptr’ was not declared in this scope
>
> I've tried to find a solution and all I found was related to c++11 but I'm
> afraid that my low level of C++ expertise doesn't allow me to correctly
> edit ccmake options to built VTK 8.1 with c++11 support (if this is the
> real problem).
>
> Is this error a result of an incorrect VTK compilation? How can I avoid
> this error?
>
> Many thanks,
> Aida
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180529/04663a22/attachment.html>


More information about the vtkusers mailing list