# Unable to build from source on Ubuntu 18.04

**URL:** <https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470>\
**Category:** Development\
**Created:** [December 11, 2019, 3:41am UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470 "2019-12-11T03:41:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aamesAtTanzle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aamesattanzle/32/5415_2.png) [@aamesAtTanzle](https://discourse.slicer.org/u/aamesAtTanzle)\
**Post date:** [December 11, 2019, 3:41am UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/1 "2019-12-11T03:41:51Z")

</div>

Is anyone aware of issues building Slicer from source with the following error on Ubuntu 18.04 (and PopOS)?

/home/aames/projects/Slicer/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsCurveNode.cxx:31:10: fatal error: vtkFrenetSerretFrame.h: No such file or directory  
#include \<vtkFrenetSerretFrame.h\>  
^ ~~~~~~~~~~~~~~~~~~~~~~~  
compilation terminated.  
Modules/Loadable/Markups/MRML/CMakeFiles/vtkSlicerMarkupsModuleMRML.dir/build.make:148: recipe for target ‘Modules/Loadable/Markups/MRML/CMakeFiles/vtkSlicerMarkupsModuleMRML.dir/vtkMRMLMarkupsCurveNode.cxx.o’ failed

---

<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:** [December 11, 2019, 3:43am UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/2 "2019-12-11T03:43:31Z")

</div>

vtkFrenetSerretFrame comes from a VTK remote module, which should be downloaded automatically to (slicer-build-dir)/VTK/Remote/SplineDrivenImageSlicer.

---

<div class="post-metadata">

**Author:** ![aamesAtTanzle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aamesattanzle/32/5415_2.png) [@aamesAtTanzle](https://discourse.slicer.org/u/aamesAtTanzle)\
**Post date:** [December 11, 2019, 5:54pm UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/3 "2019-12-11T17:54:02Z")

</div>

I have discovered this text in the build scripts:

`Module_SplineDrivenImageSlicer:BOOL=ON`

I wonder if my local build of Slicer master branch (HEAD) is using an incompatible VTK.

Shouldn’t that cmake var be the following?

`VTK_MODULE_ENABLE_VTK_SplineDrivenImageSlicer:STRING=WANT`

---

<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:** [December 11, 2019, 6:25pm UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/4 "2019-12-11T18:25:09Z")

</div>

Are you trying to build Slicer with an externally built VTK?

---

<div class="post-metadata">

**Author:** ![aamesAtTanzle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aamesattanzle/32/5415_2.png) [@aamesAtTanzle](https://discourse.slicer.org/u/aamesAtTanzle)\
**Post date:** [December 11, 2019, 6:29pm UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/5 "2019-12-11T18:29:39Z")

</div>

It is using an internal VTK. The other VTK headers are being included from Slicer/.build/VTK/…

The .build folder is my cmake build folder. When I `git status` that VTK folder, I get:

`HEAD detached at 73e89e85c4`

---

<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:** [December 11, 2019, 6:30pm UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/6 "2019-12-11T18:30:37Z")

</div>

Has Slicer built VTK as part of the superbuild process?

---

<div class="post-metadata">

**Author:** ![aamesAtTanzle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aamesattanzle/32/5415_2.png) [@aamesAtTanzle](https://discourse.slicer.org/u/aamesAtTanzle)\
**Post date:** [December 11, 2019, 6:36pm UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/7 "2019-12-11T18:36:05Z")

</div>

That appears to be the case. I can find all of the VTK libs here:

`Slicer/.build/VTK-build/lib/libvtk ****** `

I loosely followed these instructions: [https://discourse.slicer.org/t/building-slicer-on-a-freshly-installed-ubuntu-18-04/5627](https://discourse.slicer.org/t/building-slicer-on-a-freshly-installed-ubuntu-18-04/5627)

In summary:

```
sudo apt install qtcreator qtdeclarative5-dev qtmultimedia5-dev qtbase5-private-dev libqt5xmlpatterns5-dev libqt5svg5-dev libqt5webenginewidgets5 qtwebengine5-dev qtscript5-dev qttools5-dev libxt-dev libqt5x11extras5-dev
sudo apt install git cmake
git clone --recursive https://github.com/Slicer/Slicer.git
cd Slicer
mkdir .build
cd .build
cmake -DQt5_DIR=/usr/lib/qt5 -DCMAKE_BUILD_TYPE:STRING=Debug -DSlicer_USE_PYTHONQT_WITH_TCL:BOOL=OFF -DSlicer_USE_SimpleITK:BOOL=OFF -DSlicer_USE_QtTesting:BOOL=OFF -DSlicer_BUILD_DataStore:BOOL=OFF -DSlicer_USE_SYSTEM_QT:BOOL=1 …/
make

```

I also applied the workaround at the bottom of that thread for fixing the system curl and OpenSSL.

Thank you so much for your time.

---

<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:** [December 11, 2019, 6:45pm UTC](https://discourse.slicer.org/t/unable-to-build-from-source-on-ubuntu-18-04/9470/8 "2019-12-11T18:45:09Z")

</div>

Is this the latest master version of Slicer? Have you started the build from scratch or you have built some Slicer version first and then updated Slicer and rebuilt?
