[vtkusers] VTK 8.1 in Ubuntu 16.04

Aida Ninyerola aida.ninyerola at gmail.com
Tue May 29 10:01:54 EDT 2018


Thanks to all for your quick responses!

The error disappeared by adding set(CMAKE_CXX_STANDARD 11) into my
CMakeLists.txt .

Thank your very much,
Aida

On 29 May 2018 at 14:21, Mike Chinander <chinander at gmail.com> wrote:

> Override and nullptr are features of c++ that were introduced in  c++11
> but it looks like whatever you are building didn't ask to use c++11
> features. What compiler and version are you using? Try adding the following
> to your CMakeLists.txt file for your project:
>
> set(CMAKE_CXX_STANDARD 11)
>
> You could also, use 14 instead of 11. I'm not sure if VTK 8.1 using c++14
> features or not. Your compilation of VTK 8.1 is most likely fine. It should
> probably be forcing CMAKE_CXX_STANDARD to be 11 though.
>
> --Mike Chinander
>
> On Tue, May 29, 2018 at 6:52 AM, 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
>>
>>
>
> _______________________________________________
> 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/147354c4/attachment.html>


More information about the vtkusers mailing list