# Build Errors while building custom Slicer

**URL:** <https://discourse.slicer.org/t/build-errors-while-building-custom-slicer/21139>\
**Category:** Development\
**Tags:** build\
**Created:** [December 20, 2021, 4:19am UTC](https://discourse.slicer.org/t/build-errors-while-building-custom-slicer/21139 "2021-12-20T04:19:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Post date:** [December 20, 2021, 4:19am UTC](https://discourse.slicer.org/t/build-errors-while-building-custom-slicer/21139/1 "2021-12-20T04:19:02Z")

</div>

OS: Ubuntu 20.04  
Hi. I have built Slicer (v4.11.20210226) before successfully.  
Now, I want to build a custom Slicer with change in logo, style, etc. So, I followed the instructions given in [https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/](https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/) to customize the application. Then, I followed the general Slicer build instructions given in [GNU/Linux systems — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/linux.html#pre-requisites)

At the end of the build process, I am getting the following errors. Hence, I am unable to locate or run the executable file.

– Configuring incomplete, errors occurred!  
See also “/home/karthik/Custom-Slicer/CTFFR-rel/Slicer-build/CMakeFiles/CMakeOutput.log”.  
See also “/home/karthik/Custom-Slicer/CTFFR-rel/Slicer-build/CMakeFiles/CMakeError.log”.  
make[2]: \*\*\* [slicersources-build/CMakeFiles/Slicer.dir/build.make:127: slicersources-build/Slicer-prefix/src/Slicer-stamp/Slicer-configure] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:173: slicersources-build/CMakeFiles/Slicer.dir/all] Error 2  
make: \*\*\* [Makefile:84: all] Error 2

I am attaching the log files for reference.

> **[CMakeError.txt](https://drive.google.com/file/d/1_Dfnv7A_TIDaNpqqzlSoFKOX6RpOgmau/view?usp=sharing)**
>
> Google Drive file.

> **[CMakeOutput.txt](https://drive.google.com/file/d/1F8xST7uk7PdGCQZHp4EdgucNlVcyou2d/view?usp=sharing)**
>
> Google Drive file.

Please help me understand what these errors mean. My custom template directory is named CTFFR and the build directory is named CTFFR-rel.

Also, please give suggestions/instructions to build custom 3D Slicer.

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [December 20, 2021, 2:01pm UTC](https://discourse.slicer.org/t/build-errors-while-building-custom-slicer/21139/2 "2021-12-20T14:01:02Z")

</div>

This line:

```auto
c++: error: unrecognized command line option ‘-features=no%anachronisms’

```

indicates that there is some issue with your c++ compiler. Have you built cmake based applications on this machine before?

---

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Post date:** [December 21, 2021, 1:21am UTC](https://discourse.slicer.org/t/build-errors-while-building-custom-slicer/21139/3 "2021-12-21T01:21:37Z")

</div>

Yes. I have built 3D Slicer v4.11.20210226 and v4.13. It has been built successfully. The executable works. I have also built extensions on it and packaged them. They all work. But, when I followed the custom template to create a custom 3D Slicer with different logo and style, I am getting these errors.

Are the instructions given here [https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/](https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/) and [GNU/Linux systems — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/linux.html#pre-requisites) correct? Are there any other references?
