# vs2019 build problem, please help

**URL:** <https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863>\
**Category:** Development\
**Tags:** build\
**Created:** [July 28, 2023, 7:31pm UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863 "2023-07-28T19:31:03Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [July 28, 2023, 7:31pm UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/1 "2023-07-28T19:31:03Z")

</div>

- Operating system: windows10 professional
- Slicer version: 5.2 I think
- Expected behavior:
- Actual behavior: got 8 errors while building(debug x64)
- BUILD WITH VS2019
- cmake :3.26.4
- Qt: 5.15.2

### Err Msg

```auto
Error	MSB8066	“D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-mkdir.rule;D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-download.rule;D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-update.rule;D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-patch.rule;D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-configure.rule;D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-build.rule;D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-generate_project_description.rule;D:\R\CMakeFiles\2a00df8f2ee7b3e66170519024eabeb5\ITK-install.rule;D:\R\CMakeFiles\685585194e4f07a5284e025cc2950b86\ITK-complete.rule;D:\R\CMakeFiles\b953c46a80b9fa9421ab3b55ff57190e\ITK.rule;D:\S\CMakeLists.txt”custom generation exited, code 1	ITK	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	
Error	MSB8066	“D:\R\CMakeFiles\56963f57fba68e2964c1355ce9fb4c7b\SimpleITK-mkdir.rule;D:\R\CMakeFiles\56963f57fba68e2964c1355ce9fb4c7b\SimpleITK-download.rule;D:\R\CMakeFiles\56963f57fba68e2964c1355ce9fb4c7b\SimpleITK-update.rule;D:\R\CMakeFiles\56963f57fba68e2964c1355ce9fb4c7b\SimpleITK-patch.rule;D:\R\CMakeFiles\56963f57fba68e2964c1355ce9fb4c7b\SimpleITK-configure.rule;D:\R\CMakeFiles\56963f57fba68e2964c1355ce9fb4c7b\SimpleITK-build.rule;D:\R\CMakeFiles\56963f57fba68e2964c1355ce9fb4c7b\SimpleITK-install.rule;D:\R\CMakeFiles\685585194e4f07a5284e025cc2950b86\SimpleITK-complete.rule;D:\R\CMakeFiles\b953c46a80b9fa9421ab3b55ff57190e\SimpleITK.rule;D:\S\CMakeLists.txt”custom generation exited, code 1	SimpleITK	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	
Error	MSB8066	“D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-mkdir.rule;D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-download.rule;D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-update.rule;D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-patch.rule;D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-configure.rule;D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-build.rule;D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-generate_project_description.rule;D:\R\CMakeFiles\a919682ba9a9b7a9c4eff3108a0c2533\SlicerExecutionModel-install.rule;D:\R\CMakeFiles\685585194e4f07a5284e025cc2950b86\SlicerExecutionModel-complete.rule;D:\R\CMakeFiles\b953c46a80b9fa9421ab3b55ff57190e\SlicerExecutionModel.rule;D:\S\CMakeLists.txt”custom generation exited, code 1	SlicerExecutionModel	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	
Error	MSB8066	“D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-mkdir.rule;D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-download.rule;D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-update.rule;D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-patch.rule;D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-configure.rule;D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-build.rule;D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-generate_project_description.rule;D:\R\CMakeFiles\8de523c90162fa6ec802ee5ccd4a8903\python-dicom-requirements-install.rule;D:\R\CMakeFiles\685585194e4f07a5284e025cc2950b86\python-dicom-requirements-complete.rule;D:\R\CMakeFiles\b953c46a80b9fa9421ab3b55ff57190e\python-dicom-requirements.rule;D:\S\CMakeLists.txt”custom generation exited, code 1	python-dicom-requirements	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	
Error	MSB8066	“D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-mkdir.rule;D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-download.rule;D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-update.rule;D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-patch.rule;D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-configure.rule;D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-build.rule;D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-forceconfigure.rule;D:\R\CTK-build\CMakeFiles\47b96cb8080aec385a18ae8753d6f6a1\CTK-install.rule;D:\R\CTK-build\CMakeFiles\2417c1e6ecc37b5c6621b44acea10d7e\CTK-complete.rule;D:\R\CTK-build\CMakeFiles\b3a155c1c60e235b2cd6682b7a62e794\CTK.rule;D:\R\CTK\CMakeLists.txt”custom generation exited, code 1 [D:\R\CTK-build\CTK.vcxproj]	CTK	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	
Error	MSB8066	“D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-mkdir.rule;D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-download.rule;D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-update.rule;D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-patch.rule;D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-configure.rule;D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-build.rule;D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-generate_project_description.rule;D:\R\CMakeFiles\affded9edbdd4b0823de4937f9352d02\CTK-install.rule;D:\R\CMakeFiles\685585194e4f07a5284e025cc2950b86\CTK-complete.rule;D:\R\CMakeFiles\b953c46a80b9fa9421ab3b55ff57190e\CTK.rule;D:\S\CMakeLists.txt”custom generation exited, code 1	CTK	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	
Error	MSB8066	“D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-mkdir.rule;D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-download.rule;D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-update.rule;D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-patch.rule;D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-configure.rule;D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-build.rule;D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-generate_project_description.rule;D:\R\CMakeFiles\e0d658c0435eb240d058300f3ecfeea6\python-scipy-install.rule;D:\R\CMakeFiles\685585194e4f07a5284e025cc2950b86\python-scipy-complete.rule;D:\R\CMakeFiles\b953c46a80b9fa9421ab3b55ff57190e\python-scipy.rule;D:\S\CMakeLists.txt”custom generation exited, code 1	python-scipy	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	
Error	MSB8066	“D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-mkdir.rule;D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-download.rule;D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-update.rule;D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-patch.rule;D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-configure.rule;D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-build.rule;D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-forceconfigure.rule;D:\R\CMakeFiles\4dc4d65868ae7c14fe3a4b6ad207d8ee\Slicer-install.rule;D:\R\CMakeFiles\685585194e4f07a5284e025cc2950b86\Slicer-complete.rule;D:\R\CMakeFiles\b953c46a80b9fa9421ab3b55ff57190e\Slicer.rule;D:\S\CMakeLists.txt”custom generation exited, code 1	Slicer	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241	

```

---

<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:** [July 28, 2023, 7:33pm UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/2 "2023-07-28T19:33:44Z")

</div>

You need to use 64-bit `Visual Studio 2022 v143 toolset` as described in the [build instructions](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/windows.html).

---

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [August 3, 2023, 4:36am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/3 "2023-08-03T04:36:43Z")

</div>

dear Andras Loass, I have installed vs2022, but there were still some problems, can I send you e-mal, coz the err message is kind of too big to post

---

<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:** [August 3, 2023, 4:37am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/4 "2023-08-03T04:37:20Z")

</div>

You can upload the build log somewhere and post the link here.

---

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [August 3, 2023, 5:00am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/5 "2023-08-03T05:00:24Z")

</div>

[https://hotfile.io/Jb85c96az8/err0803\_txt](https://hotfile.io/Jb85c96az8/err0803_txt)  
please check if you can download the log file

---

<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:** [August 3, 2023, 5:07am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/6 "2023-08-03T05:07:43Z")

</div>

Thanks for uploading the log, this was helpful.

After inspecting it, the first error is related to the download of the Python sources:

```plaintext
[...]
Performing download step (download, verify and extract) for 'python-source'
-- Downloading...
   dst='D:/R/Python-3.9.10.tgz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz'
-- [download 0% complete]
-- [download 1% complete]
[...]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
CMake Error at python-source-prefix/src/python-source-stamp/download-python-source.cmake:170 (message):
  Each download failed!

CUSTOMBUILD : error : downloading 'https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz' failed
          status_code: 92
          status_string: "Stream error in the HTTP/2 framing layer"
          log:
          --- LOG BEGIN ---
          timeout on name lookup is not supported
    Trying 151.101.108.223:443...

  Connected to www.python.org (151.101.108.223) port 443 (#0)

  schannel: disabled automatic use of client certificate

  ALPN: offers h2

  ALPN: offers http/1.1

  ALPN: server accepted h2

  Using HTTP2, server supports multiplexing

  Copying HTTP/2 data in stream buffer to connection buffer after upgrade:
  len=0
[...]
  schannel: failed to decrypt data, need more data
[...]
  [2626 bytes data]

  HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

  Connection #0 to host www.python.org left intact

```

---

<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:** [August 3, 2023, 5:20am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/7 "2023-08-03T05:20:32Z")

</div>

It turns out that the download of any archive over https is not working … (e.g download of `swigwin-4.0.2.zip` is also failing)

Could you try the following ?

### (1) SlicerCheckCMakeHTTPS

Can you run the following command ?

```auto
cmake -P D:/S/CMake/SlicerCheckCMakeHTTPS.cmake

```

The following output is expected:

```plaintext
-- Checking if CMake supports https
-- Checking if CMake supports https - ok

```

### (2) Download of files using the web browser

Can you download the following files, locally compute their checksum and confirm they match the one reported below ?

| Link | SHA512 |
| --- | --- |
| | |
| [https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz](https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz) | `3dc9e6a470a0922bad4856db02bc82cc4174f7a94e355fd0ed8cf9bbfd82dcf0b09d854aa482fe70ed441919a526d49e74658222279b5a25b4aa4fa171f65e9c` |
| [https://github.com/Slicer/SlicerBinaryDependencies/releases/download/swig/swigwin-4.0.2.zip](https://github.com/Slicer/SlicerBinaryDependencies/releases/download/swig/swigwin-4.0.2.zip) | `b8f105f9b9db6acc1f6e3741990915b533cd1bc206eb9645fd6836457fd30789b7229d2e3219d8e35f2390605ade0fbca493ae162ec3b4bc4e428b57155db03d` |

```auto

```

---

<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:** [August 3, 2023, 5:56am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/8 "2023-08-03T05:56:33Z")

</div>

### (3) SlicerCheckCMakeHTTPSDownload

Finally, you could try running the script `SlicerCheckCMakeHTTPSDownload.cmake` following the instructions linked below.

> <https://gist.github.com/jcfr/e9a281f71b48f52ca6a5ebb903533d62?permalink_comment_id=4650046#gistcomment-4650046>

The, consider reporting back your findings.

---

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [August 3, 2023, 6:19am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/9 "2023-08-03T06:19:04Z")

</div>

– Checking if CMake supports https  
CMake Error at /CMake/SlicerCheckCMakeHTTPS.cmake:33 (message):  
error: “Couldn’t resolve host name”  
Call Stack (most recent call first):  
/CMake/SlicerCheckCMakeHTTPS.cmake:43 (slicer\_check\_cmake\_https)

it didn’t work, I don’t understand, but I can download those packages in browser… what am I suppose to do now?

---

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [August 3, 2023, 6:31am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/10 "2023-08-03T06:31:19Z")

</div>

D:\S\CMake\>cmake -P SlicerCheckCMakeHTTPSDownload.cmake  
– Checking if CMake https download works for ‘[https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz](https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz)’  
CMake Error at SlicerCheckCMakeHTTPSDownload.cmake:55 (message):  
error: “Timeout was reached”  
Call Stack (most recent call first):  
SlicerCheckCMakeHTTPSDownload.cmake:69 (slicer\_check\_cmake\_https\_download)

---

<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:** [August 3, 2023, 7:46am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/11 "2023-08-03T07:46:37Z")

</div>

It seems there are issues\[1\]\[2\] with newer TLS protocols.

You could try to workaround the issue by downloading these files into the top-level build directory and attempt to resume the build.

Here are the files to download into `D:\R`

| URL | Checksum |
| --- | --- |
| [https://github.com/commontk/AppLauncher/releases/download/v${launcher\_version}/CTKAppLauncher-0.1.31-win-i386.tar.gz](https://github.com/commontk/AppLauncher/releases/download/v$%7Blauncher_version%7D/CTKAppLauncher-0.1.31-win-i386.tar.gz) | MD5: 3bbe3823b6950f342dd922fab32d643d |
| [https://github.com/jcfr/ResEdit/releases/download/v0.1.0-20140331-c157b7c/CTKResEdit-0.1.0-gc157-win-i386.tar.gz](https://github.com/jcfr/ResEdit/releases/download/v0.1.0-20140331-c157b7c/CTKResEdit-0.1.0-gc157-win-i386.tar.gz) | MD5: f59547c480420199081b94e96df292ec |
| [https://github.com/Slicer/Slicer-OpenSSL/releases/download/1.1.1g/OpenSSL\_1\_1\_1g-install-msvc1900-64.tar.gz](https://github.com/Slicer/Slicer-OpenSSL/releases/download/1.1.1g/OpenSSL_1_1_1g-install-msvc1900-64.tar.gz) | MD5: f89ea6a4fcfb279af30cbe01c1d7f879 |
| [https://github.com/Slicer/SlicerBinaryDependencies/releases/download/swig/swigwin-3.24.zip](https://github.com/Slicer/SlicerBinaryDependencies/releases/download/swig/swigwin-3.24.zip) | SHA512: b8f105f9b9db6acc1f6e3741990915b533cd1bc206eb9645fd6836457fd30789b7229d2e3219d8e35f2390605ade0fbca493ae162ec3b4bc4e428b57155db03d |
| [https://github.com/oneapi-src/oneTBB/releases/download/v2021.5.0/oneapi-tbb-2021.5.0-win.zip](https://github.com/oneapi-src/oneTBB/releases/download/v2021.5.0/oneapi-tbb-2021.5.0-win.zip) | SHA256: 096c004c7079af89fe990bb259d58983b0ee272afa3a7ef0733875bfe09fcd8e |
| [https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz](https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz) | SHA512 3dc9e6a470a0922bad4856db02bc82cc4174f7a94e355fd0ed8cf9bbfd82dcf0b09d854aa482fe70ed441919a526d49e74658222279b5a25b4aa4fa171f65e9c |

* * *

1. [China is now blocking all encrypted HTTPS traffic that uses TLS 1.3 and ESNI | ZDNET](https://www.zdnet.com/article/china-is-now-blocking-all-encrypted-https-traffic-using-tls-1-3-and-esni/) 

2. [Re: [TLS] Possible blocking of Encrypted SNI extension in China](https://mailarchive.ietf.org/arch/msg/tls/Dae-cukKMqfzmTT4Ksh1Bzlx7ws/)

---

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [August 4, 2023, 3:48am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/12 "2023-08-04T03:48:31Z")

</div>

([https://github.com/commontk/AppLauncher/releases/download/v${launcher\_version}/CTKAppLauncher-0.1.31-win-i386.tar.gz](https://github.com/commontk/AppLauncher/releases/download/v$%7Blauncher_version%7D/CTKAppLauncher-0.1.31-win-i386.tar.gz))  
I’m sorry but I can NOT download this file, the browser reads ‘Not Found’, is there any alternative way to download this package?thank you

---

<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:** [August 4, 2023, 4:03am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/13 "2023-08-04T04:03:42Z")

</div>

Look like I incorrectly composted the URL and forgot to replace `${launcher_version}` with `0.1.31`.

In this case, you should use:

- [https://github.com/commontk/AppLauncher/releases/download/v0.1.31/CTKAppLauncher-0.1.31-win-i386.tar.gz](https://github.com/commontk/AppLauncher/releases/download/v0.1.31/CTKAppLauncher-0.1.31-win-i386.tar.gz)

## Background

For future reference, the corresponding URLs have been put together looking at the external projects (see `External_*.cmake` files in [Slicer/SuperBuild](https://github.com/Slicer/Slicer/tree/main/SuperBuild)) downloading files.

Note that `PCRE` archive is not used on Windows. This can be confirmed by inspecting the `External_PCRE.cmake` file.

```bash
cd /path/to/src/Slicer/SuperBuild

$ ack "\sURL "
External_CTKAPPLAUNCHER.cmake
43: URL https://github.com/commontk/AppLauncher/releases/download/v${launcher_version}/${CTKAppLauncherFileName}

External_CTKResEdit.cmake
37: URL ${url}

External_Swig.cmake
32: URL https://github.com/Slicer/SlicerBinaryDependencies/releases/download/swig/swigwin-${SWIG_TARGET_VERSION}.zip
98: URL https://github.com/Slicer/SlicerBinaryDependencies/releases/download/swig/swig-${SWIG_TARGET_VERSION}.tar.gz

External_PCRE.cmake
54: URL https://github.com/Slicer/SlicerBinaryDependencies/releases/download/PCRE/pcre-${_version}.tar.gz

External_OpenSSL.cmake
154: URL ${OpenSSL_${OPENSSL_DOWNLOAD_VERSION}_URL}
307: URL ${OpenSSL_${OPENSSL_DOWNLOAD_VERSION}_${MSVC_VERSION}_URL}

External_tbb.cmake
42: URL https://github.com/oneapi-src/oneTBB/releases/download/v${tbb_ver}/${tbb_file}

External_python.cmake
66: URL ${_download_${Slicer_REQUIRED_PYTHON_VERSION}_url}

```

---

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [August 7, 2023, 1:06am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/14 "2023-08-07T01:06:54Z")

</div>

Dear Jcfr:  
I still got problems when doing the ‘ALL\_BUILD’, this time it stuck in ‘cloning to VTK…’ ,can you please check the log file, maybe I should download more packages before hand?  
[https://hotfile.io/X5bcW665z2/err0806\_txt](https://hotfile.io/X5bcW665z2/err0806_txt)

---

<div class="post-metadata">

**Author:** ![zswin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zswin/32/66887_2.png) [@zswin](https://discourse.slicer.org/u/zswin)\
**Post date:** [August 8, 2023, 9:22am UTC](https://discourse.slicer.org/t/vs2019-build-problem-please-help/30863/15 "2023-08-08T09:22:33Z")

</div>

[https://hotfile.io/R3s7la7fzf/err0808\_txt](https://hotfile.io/R3s7la7fzf/err0808_txt)

please help…
