# 3D Slicer Build Error with GCC 7 on Ubuntu 17.04

**URL:** https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082
**Category:** Development
**Created:** [February 13, 2018, 8:45pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082 "2018-02-13T20:45:21Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![AhmadHossam10](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ahmadhossam10/32/1246_2.png) [@AhmadHossam10](https://discourse.slicer.org/u/AhmadHossam10)
#### Post date: [February 13, 2018, 8:45pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/1 "2018-02-13T20:45:21Z")

</div>

I am trying to build 3D Slicer but an error occurs, cc1 : warnings are being treated as errors.  
I searched for -Werror flag to remove it but I didn’t find it. I edited my CmakeLists.txt and  
wrote SET(CMAKE\_CXX\_FLAGS “-Wno-error”) and SET(CMAKE\_C\_FLAGS “-Wno-error”) also it didn’t work.  
How can I solve this issue ?

 ![Screenshot%20from%202018-02-13%2016-41-13](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/7/1789216e0b4cb2eba6db263dbb937122ed7dc0e3.png)

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 13, 2018, 8:57pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/2 "2018-02-13T20:57:50Z")

</div>

Hi,

Thanks for the report.

On which operating system, using which compiler and with which options are you building ? Could you share the command line you used to configure and build the project ?

Also what are the values of the CXXFLAGS and CFLAGS environment variables ?

---

<div class="post-metadata">

### Author: ![AhmadHossam10](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ahmadhossam10/32/1246_2.png) [@AhmadHossam10](https://discourse.slicer.org/u/AhmadHossam10)
#### Post date: [February 13, 2018, 9:01pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/3 "2018-02-13T21:01:25Z")

</div>

Operating System : Ubuntu 17.10.1  
Compiler : GNU 7.2.0  
Cmake Command : cmake -DCMAKE\_BUILD\_TYPE:STRING=Debug -DQT\_QMAKE\_EXECUTABLE:FILEPATH=/usr/bin/qmake -DSlicer\_USE\_SYSTEM\_QT:BOOL=1 …/Slicer

Make Command : make -j4

Values of CXXFLAGS and CFLAGS are the same of the project I cloned only -WALL flag I removed

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 13, 2018, 9:36pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/4 "2018-02-13T21:36:11Z")

</div>

I was able to reproduce the error using Ubuntu 17.10 within a docker image, I will follow up with a fix.

---

<div class="post-metadata">

### Author: ![AhmadHossam10](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ahmadhossam10/32/1246_2.png) [@AhmadHossam10](https://discourse.slicer.org/u/AhmadHossam10)
#### Post date: [February 13, 2018, 9:41pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/5 "2018-02-13T21:41:49Z")

</div>

waiting for your fix I have been trying for 3 weeks to solve this error please help

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 13, 2018, 11:57pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/6 "2018-02-13T23:57:03Z")

</div>

Thanks for your patience. This issue is now fixed in [r26916](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=26916).

Please, update your source checkout and try to build again.

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 14, 2018, 12:11am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/7 "2018-02-14T00:11:13Z")

</div>

Now addressing remaining issues associated with DCMTK:

```auto
In file included from /usr/include/c++/7/cstdint:35:0,
                 from /home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/ofstdinc.h:279,
                 from /home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/oftypes.h:74,
                 from /home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/ofuuid.h:27,
                 from /home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/libsrc/ofuuid.cc:25:
/usr/include/c++/7/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^ ~~~~
In file included from /home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/ofuuid.h:27:0,
                 from /home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/libsrc/ofuuid.cc:25:
/home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/oftypes.h:111:9: error: 'int64_t' does not name a type; did you mean '__int64_t'?
 typedef int64_t Sint64;
         ^ ~~~~~~
         __int64_t
/home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/oftypes.h:125:9: error: 'uint64_t' does not name a type; did you mean '__uint64_t'?
 typedef uint64_t Uint64;
         ^ ~~~~~~~
         __uint64_t
/home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/oftypes.h:145:9: error: 'Sint64' does not name a type; did you mean 'Sint16'?
 typedef Sint64 OFintptr_t;
         ^ ~~~~~
         Sint16
/home/jcfr/Projects/Slicer-Qt4-VTK7-Ubuntu17.04-Release/DCMTK/ofstd/include/dcmtk/ofstd/oftypes.h:150:9: error: 'Uint64' does not name a type; did you mean 'Uint16'?
 typedef Uint64 OFuintptr_t;
         ^ ~~~~~
         Uint16

```

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 14, 2018, 2:45am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/8 "2018-02-14T02:45:34Z")

</div>

Build issue associated with DCMTK has been fixed in [r26920](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=26920)

This commit also updates the version of DCMTK used in Slicer to 3.6.3

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 14, 2018, 3:18am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/9 "2018-02-14T03:18:07Z")

</div>

@AhmadHossam10 To move forward, I suggest you build Slicer against Qt5 by passing `-DQt5_DIR:PATH=/path/to/lib/cmake/Qt5`

In few days, we will update the build system so that it defaults to Qt5 and support for Qt4 and C++98 will not actively be maintained and will be removed later this year.

In the mean time, here are few more errors related to ITK:

```auto
 #error This file requires compiler and library support \
  ^ ~~~~
In file included from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.hxx:34:0,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.h:226,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include/itkImageSeriesWriter.h:23,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/src/itkImageSeriesWriter.cxx:18:
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:57:36: error: 'true_type' in namespace 'std' does not name a type
     typedef ITK_STD_TR1_NAMESPACE::true_type TrueType;
                                    ^ ~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:58:36: error: 'false_type' in namespace 'std' does not name a type
     typedef ITK_STD_TR1_NAMESPACE::false_type FalseType;
                                    ^ ~~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h: In static member function 'static void itk::ImageAlgorithm::Copy(const itk::Image<TPixel1, VImageDimension>*, itk::Image<TPixel2, VImageDimension>*, const typename itk::Image<TPixel1, VImageDimension>::RegionType&, const typename itk::Image<TPixel2, VImageDimension>::RegionType&)':
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:104:61: error: 'is_convertible' is not a member of 'std'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:104:61: note: suggested alternative: '__convert_to_v'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
                                                             __convert_to_v
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:104:107: error: expected '(' before ',' token
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                                                                           ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:105:67: error: expected '(' before '>' token
                                    typename _ImageType2::PixelType>()
                                                                   ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:105:69: error: expected primary-expression before ')' token
                                    typename _ImageType2::PixelType>()
                                                                     ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h: In static member function 'static void itk::ImageAlgorithm::Copy(const itk::VectorImage<TPixel1, VImageDimension>*, itk::VectorImage<TPixel2, VImageDimension>*, const typename itk::VectorImage<TPixel1, VImageDimension>::RegionType&, const typename itk::VectorImage<TPixel2, VImageDimension>::RegionType&)':
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:125:61: error: 'is_convertible' is not a member of 'std'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:125:61: note: suggested alternative: '__convert_to_v'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
                                                             __convert_to_v
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:125:107: error: expected '(' before ',' token
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                                                                           ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:126:67: error: expected '(' before '>' token
                                    typename _ImageType2::PixelType>()
                                                                   ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:126:69: error: expected primary-expression before ')' token
                                    typename _ImageType2::PixelType>()
                                                                     ^
[908/2327] Linking CXX shared library lib/libITKPath-4.13.so.1
[909/2327] Building CXX object Modules/IO/ImageBase/src/CMakeFiles/ITKIOImageBase.dir/itkImageFileWriter.cxx.o
FAILED: Modules/IO/ImageBase/src/CMakeFiles/ITKIOImageBase.dir/itkImageFileWriter.cxx.o 
/usr/bin/c++ -DITKIOImageBase_EXPORTS -IModules/ThirdParty/KWIML/src -I/path/to/Slicer-Release/ITKv4/Modules/ThirdParty/KWIML/src -IModules/ThirdParty/KWSys/src -I/path/to/Slicer-Release/ITKv4/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/path/to/Slicer-Release/ITKv4/Modules/ThirdParty/VNL/src/vxl/vcl -I/path/to/Slicer-Release/ITKv4/Modules/ThirdParty/VNL/src/vxl/core -IModules/ThirdParty/VNL/src/vxl/v3p/netlib -IModules/ThirdParty/VNL/src/vxl/vcl -IModules/ThirdParty/VNL/src/vxl/core -I/path/to/Slicer-Release/ITKv4/Modules/ThirdParty/VNLInstantiation/include -IModules/Core/Common -I/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include -IModules/IO/ImageBase -I/path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include -IModules/ThirdParty/KWSys/src/KWSys -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++98 -MD -MT Modules/IO/ImageBase/src/CMakeFiles/ITKIOImageBase.dir/itkImageFileWriter.cxx.o -MF Modules/IO/ImageBase/src/CMakeFiles/ITKIOImageBase.dir/itkImageFileWriter.cxx.o.d -o Modules/IO/ImageBase/src/CMakeFiles/ITKIOImageBase.dir/itkImageFileWriter.cxx.o -c /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/src/itkImageFileWriter.cxx
In file included from /usr/include/c++/7/type_traits:35:0,
                 from /path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:24,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.hxx:34,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.h:226,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/src/itkImageFileWriter.cxx:18:
/usr/include/c++/7/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^ ~~~~
In file included from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.hxx:34:0,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/include/itkImageFileWriter.h:226,
                 from /path/to/Slicer-Release/ITKv4/Modules/IO/ImageBase/src/itkImageFileWriter.cxx:18:
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:57:36: error: 'true_type' in namespace 'std' does not name a type
     typedef ITK_STD_TR1_NAMESPACE::true_type TrueType;
                                    ^ ~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:58:36: error: 'false_type' in namespace 'std' does not name a type
     typedef ITK_STD_TR1_NAMESPACE::false_type FalseType;
                                    ^ ~~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h: In static member function 'static void itk::ImageAlgorithm::Copy(const itk::Image<TPixel1, VImageDimension>*, itk::Image<TPixel2, VImageDimension>*, const typename itk::Image<TPixel1, VImageDimension>::RegionType&, const typename itk::Image<TPixel2, VImageDimension>::RegionType&)':
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:104:61: error: 'is_convertible' is not a member of 'std'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:104:61: note: suggested alternative: '__convert_to_v'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
                                                             __convert_to_v
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:104:107: error: expected '(' before ',' token
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                                                                           ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:105:67: error: expected '(' before '>' token
                                    typename _ImageType2::PixelType>()
                                                                   ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:105:69: error: expected primary-expression before ')' token
                                    typename _ImageType2::PixelType>()
                                                                     ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h: In static member function 'static void itk::ImageAlgorithm::Copy(const itk::VectorImage<TPixel1, VImageDimension>*, itk::VectorImage<TPixel2, VImageDimension>*, const typename itk::VectorImage<TPixel1, VImageDimension>::RegionType&, const typename itk::VectorImage<TPixel2, VImageDimension>::RegionType&)':
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:125:61: error: 'is_convertible' is not a member of 'std'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:125:61: note: suggested alternative: '__convert_to_v'
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                             ^ ~~~~~~~~~~~~~
                                                             __convert_to_v
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:125:107: error: expected '(' before ',' token
                                    , ITK_STD_TR1_NAMESPACE::is_convertible<typename _ImageType1::PixelType,
                                                                                                           ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:126:67: error: expected '(' before '>' token
                                    typename _ImageType2::PixelType>()
                                                                   ^
/path/to/Slicer-Release/ITKv4/Modules/Core/Common/include/itkImageAlgorithm.h:126:69: error: expected primary-expression before ')' token
                                    typename _ImageType2::PixelType>()
                                                                     ^

```

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 14, 2018, 3:28am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/10 "2018-02-14T03:28:37Z")

</div>

ITK build error fixed in [r26922](http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=26922)

---

<div class="post-metadata">

### Author: ![AhmadHossam10](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ahmadhossam10/32/1246_2.png) [@AhmadHossam10](https://discourse.slicer.org/u/AhmadHossam10)
#### Post date: [February 14, 2018, 8:31am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/11 "2018-02-14T08:31:13Z")

</div>

I already use c++11 instead of c++98 by updating cmakelists.txt  
Thanks very much I will try and build again

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [February 14, 2018, 10:53am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/12 "2018-02-14T10:53:46Z")

</div>

In case it may be of helpful, Slicer builds nicely with Qt5 on Arch Linux using gcc 7.3.0, both in debug and release mode. If you get a working Qt5/VTK9 build, I would like to know if Volume Rendering works flawlessly on your machine, and the details of your GPU chip. TIA for providing the info.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 14, 2018, 1:18pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/13 "2018-02-14T13:18:15Z")

</div>

> [@chir.set](#):
>
> If you get a working Qt5/VTK9 build, I would like to know if Volume Rendering works flawlessly on your machine

Do you mean on Linux or on any computer? If you were interested in hearing about any computers with any OS then it is probably better to post this question as a new topic.

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [February 14, 2018, 2:28pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/14 "2018-02-14T14:28:17Z")

</div>

> [@AhmadHossam10](#):
>
> I already use c++11 instead of c++98 by updating cmakelists.txt

If you would like to build with C++11, the recommended and supported approach is this one:

```auto
cmake -DCMAKE_BUILD_TYPE:STRING=Debug \
  -DQt5_DIR:PATH=/path/to/lib/cmake/Qt5 …/Slicer

```

This will automatically set variables like `CMAKE_CXX_STANDARD` and download VTK9.

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [February 14, 2018, 3:34pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/15 "2018-02-14T15:34:52Z")

</div>

> [@lassoan](#):
>
> Do you mean on Linux or on any computer?

On Linux. As the OP uses Ubuntu 17.10, I thought it was understood.

---

<div class="post-metadata">

### Author: ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)
#### Post date: [February 15, 2018, 9:49pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/16 "2018-02-15T21:49:53Z")

</div>

@chir.set building on ubuntu 17.10, gcc 6.4, Qt5.10 (debug) I have no issue with the rendering. Tested on various nvidia gpu (760, 970, 1050).

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [February 16, 2018, 7:45am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/17 "2018-02-16T07:45:05Z")

</div>

> [@Davide\_Punzo](#):
>
> Tested on various nvidia gpu (760, 970, 1050).

One last question (going slightly off-topic) : are you using stock open source kernel module or Nvidia proprietary module ? Thanks.

---

<div class="post-metadata">

### Author: ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)
#### Post date: [February 16, 2018, 2:29pm UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/18 "2018-02-16T14:29:46Z")

</div>

I am currently using 384.111 installed from the ubuntu repository (which I guess are the Nvidia proprietary one)

---

<div class="post-metadata">

### Author: ![AhmadHossam10](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ahmadhossam10/32/1246_2.png) [@AhmadHossam10](https://discourse.slicer.org/u/AhmadHossam10)
#### Post date: [February 18, 2018, 12:22am UTC](https://discourse.slicer.org/t/3d-slicer-build-error-with-gcc-7-on-ubuntu-17-04/2082/19 "2018-02-18T00:22:23Z")

</div>

Everything is fixed except for an error in simpleITK there’s a file that’s not found. Would you please solve this issue ?

 ![Screenshot%20from%202018-02-18%2002-21-24](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/4/8446cb5f45d1d4ea9213341cfff49b77b77d16dd.png) ![Screenshot%20from%202018-02-18%2002-20-23](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/d/1dd3beb79c60da296eaee03250bddf48637fff3d.png)
