# SlicerCustomAppTemplate Build Error

**URL:** https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717
**Category:** Development
**Tags:** build, error, slicercat
**Created:** [February 9, 2023, 9:18am UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717 "2023-02-09T09:18:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kaubert](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kaubert/32/18283_2.png) [@Kaubert](https://discourse.slicer.org/u/Kaubert)
#### Post date: [February 9, 2023, 9:18am UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717/1 "2023-02-09T09:18:18Z")

</div>

Hi there,

I am having trouble building SlicerCustomAppTemplate while I am not encountering any errors when building the [latest version of Slicer](https://github.com/Slicer/Slicer).

Here is my configuration:

Windows 11  
Cmake 3.22.4  
Qt 5.15.2  
Visual Studio 2022

As defined [here](https://www.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/), I downloaded the source folder of SlicerCustomAppTemplate via :  
_pip install cookiecutter jinja2-github_  
_cookiecutter gh:KitwareMedical/SlicerCustomAppTemplate_

Here I do not change anything in the source folder.

To build I am following steps mentioned [Here](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/windows.html#configure-and-build-slicer).

Build error indicates inability to open ‘vtkSlicerSceneViewsModuleLogic.lib’

The Configuration, Generation and Build log files could be find [Here](https://isitwin2022-my.sharepoint.com/:f:/g/personal/kevin_aubert_isitwin_com/EjbbUg0E4z9Pl9gv6IFMhzEBt8PHIYvTQSPXRx3OuRDCaA?e=BV9zvv) as well as errors from Visual Studio.

Can you please help me to solve this error ?  
Thank you

---

<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 15, 2023, 6:19am UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717/2 "2023-02-15T06:19:41Z")

</div>

Have a look at the first error. All the other may be consequences of the first one.

As I see, this is the first error:

```auto
14> Syntax error in cmake code at
14>
14> C:/D/S5D/slicersources-build/CTKAppLauncherLib-prefix/tmp/CTKAppLauncherLib-cache-Debug.cmake:19
14>
14> when parsing string
14>
14> C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5
14>
14> Invalid escape sequence \Q

```

It means that somewhere you specified Qt path using Windows separators () instead of cross-platform separators (/). The backslash was interpreted somewhere as escape character, which caused the build error.

Try using `C:/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5` as Qt path.

---

<div class="post-metadata">

### Author: ![Kaubert](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kaubert/32/18283_2.png) [@Kaubert](https://discourse.slicer.org/u/Kaubert)
#### Post date: [February 15, 2023, 12:54pm UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717/3 "2023-02-15T12:54:42Z")

</div>

Dear Lassoan,

Thank you for your response !  
I’m now able to build SlicerCAT in 5.2.1 version without errors.

Best regards,  
Kevin

---

<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 22, 2023, 2:14pm UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717/6 "2023-02-22T14:14:23Z")

</div>

> [@Kaubert](#):
>
> Build error indicates inability to open ‘vtkSlicerSceneViewsModuleLogic.lib’

This was tentatively addressed in [Slicer@d4723511c](https://github.com/Slicer/Slicer/commit/d4723511cc7d19d8ed1f447a13f749a18e317baf) integrated through [PR-6790](https://github.com/Slicer/Slicer/pull/6790), as we are also experiencing a similar error in a custom application when doing a clean build, I am looking into this.

---

<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 23, 2023, 4:48am UTC](https://discourse.slicer.org/t/slicercustomapptemplate-build-error/27717/7 "2023-02-23T04:48:06Z")

</div>

This should be fixed in [PR-6834](https://github.com/Slicer/Slicer/pull/6834) that will be integrated shortly.
