# Building Error MSB8066

**URL:** https://discourse.slicer.org/t/building-error-msb8066/21136
**Category:** Development
**Tags:** build
**Created:** [December 19, 2021, 8:11pm UTC](https://discourse.slicer.org/t/building-error-msb8066/21136 "2021-12-19T20:11:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![siqueirl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/siqueirl/32/12320_2.png) [@siqueirl](https://discourse.slicer.org/u/siqueirl)
#### Post date: [December 19, 2021, 8:11pm UTC](https://discourse.slicer.org/t/building-error-msb8066/21136/1 "2021-12-19T20:11:19Z")

</div>

Hello everyone, I am trying to build slicer, but I am receiving the following error:

|Error|MSB8066|Custom build for ‘C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-mkdir.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-download.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-update.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-patch.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-configure.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-build.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-forceconfigure.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-install.rule;C:\D\S4R\CMakeFiles\d0fbb327fb5d8976f542b004b1325aa2\Slicer-complete.rule;C:\D\S4R\CMakeFiles\dbe9d635f197b17f63b9c895eaab2164\Slicer.rule;C:\D\S4\CMakeLists.txt’ exited with code 1.|Slicer|C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets|241||

I have seen answers regarding connection issues, and I have disabled my firewall, but the problem persists. Has anyone been able to solve this issue? Thank you!

---

<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:02pm UTC](https://discourse.slicer.org/t/building-error-msb8066/21136/2 "2021-12-20T14:02:01Z")

</div>

Could you provide the build output log in addition to just the error?

---

<div class="post-metadata">

### Author: ![siqueirl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/siqueirl/32/12320_2.png) [@siqueirl](https://discourse.slicer.org/u/siqueirl)
#### Post date: [December 20, 2021, 6:52pm UTC](https://discourse.slicer.org/t/building-error-msb8066/21136/3 "2021-12-20T18:52:17Z")

</div>

Thank you, here it is:

> Blockquote  
> The system is: Windows - 10.0.19043 - AMD64  
> Compiling the C compiler identification source file “CMakeCCompilerId.c” succeeded.  
> Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe  
> Build flags: ;;/DWIN32;/D\_WINDOWS;/W2;  
> Id flags:

The output was:  
0  
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework  
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/19/2021 7:00:48 PM.  
Project “C:\D\S4R\Slicer-build\CMakeFiles\3.22.1\CompilerIdC\CompilerIdC.vcxproj” on node 1 (default targets).  
PrepareForBuild:  
Creating directory “Debug".  
Creating directory “Debug\CompilerIdC.tlog".  
InitializeBuildStatus:  
Creating “Debug\CompilerIdC.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.  
ClCompile:  
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D \_MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /Fo"Debug\” /Fd"Debug\vc142.pdb” /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c  
CMakeCCompilerId.c  
Link:  
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:“.\CompilerIdC.exe” /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /manifest:embed /PDB:“.\CompilerIdC.pdb” /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:“.\CompilerIdC.lib” /MACHINE:X64 Debug\CMakeCCompilerId.obj  
CompilerIdC.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\3.22.1\CompilerIdC\CompilerIdC.exe  
PostBuildEvent:  
for %%i in (cl.exe) do @echo CMAKE\_C\_COMPILER=%%~$PATH:i  
:VCEnd  
CMAKE\_C\_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe  
FinalizeBuildStatus:  
Deleting file “Debug\CompilerIdC.tlog\unsuccessfulbuild”.  
Touching “Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate”.  
Done Building Project “C:\D\S4R\Slicer-build\CMakeFiles\3.22.1\CompilerIdC\CompilerIdC.vcxproj” (default targets).

Build succeeded.  
0 Warning(s)  
0 Error(s)

Time Elapsed 00:00:00.92

Compilation of the C compiler identification source “CMakeCCompilerId.c” produced “CompilerIdC.exe”

Compilation of the C compiler identification source “CMakeCCompilerId.c” produced “CompilerIdC.vcxproj”

The C compiler identification is MSVC, found in “C:/D/S4R/Slicer-build/CMakeFiles/3.22.1/CompilerIdC/CompilerIdC.exe”

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” succeeded.  
Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe  
Build flags: ;;/DWIN32;/D\_WINDOWS;/W2;/GR;/EHsc;  
Id flags:

The output was:  
0  
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework  
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/19/2021 7:00:49 PM.  
Project “C:\D\S4R\Slicer-build\CMakeFiles\3.22.1\CompilerIdCXX\CompilerIdCXX.vcxproj” on node 1 (default targets).  
PrepareForBuild:  
Creating directory “Debug".  
Creating directory “Debug\CompilerIdCXX.tlog".  
InitializeBuildStatus:  
Creating “Debug\CompilerIdCXX.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.  
ClCompile:  
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D \_MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /Fo"Debug\” /Fd"Debug\vc142.pdb” /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp  
CMakeCXXCompilerId.cpp  
Link:  
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:“.\CompilerIdCXX.exe” /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /manifest:embed /PDB:“.\CompilerIdCXX.pdb” /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:“.\CompilerIdCXX.lib” /MACHINE:X64 Debug\CMakeCXXCompilerId.obj  
CompilerIdCXX.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\3.22.1\CompilerIdCXX\CompilerIdCXX.exe  
PostBuildEvent:  
for %%i in (cl.exe) do @echo CMAKE\_CXX\_COMPILER=%%~$PATH:i  
:VCEnd  
CMAKE\_CXX\_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe  
FinalizeBuildStatus:  
Deleting file “Debug\CompilerIdCXX.tlog\unsuccessfulbuild”.  
Touching “Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate”.  
Done Building Project “C:\D\S4R\Slicer-build\CMakeFiles\3.22.1\CompilerIdCXX\CompilerIdCXX.vcxproj” (default targets).

Build succeeded.  
0 Warning(s)  
0 Error(s)

Time Elapsed 00:00:00.82

Compilation of the CXX compiler identification source “CMakeCXXCompilerId.cpp” produced “CompilerIdCXX.exe”

Compilation of the CXX compiler identification source “CMakeCXXCompilerId.cpp” produced “CompilerIdCXX.vcxproj”

The CXX compiler identification is MSVC, found in “C:/D/S4R/Slicer-build/CMakeFiles/3.22.1/CompilerIdCXX/CompilerIdCXX.exe”

Detecting C compiler ABI info compiled with the following output:  
Change Dir: C:/D/S4R/Slicer-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC\_03075.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30138 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCCompilerABI.c

cl /c /Zi /W2 /WX- /diagnostics:column /Od /Ob0 /D \_MBCS /D WIN32 /D \_WINDOWS /D “CMAKE\_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /Fo"cmTC\_03075.dir\Debug\" /Fd"cmTC\_03075.dir\Debug\vc142.pdb" /external:W2 /Gd /TC /errorReport:queue “C:\Program Files\CMake\share\cmake-3.22\Modules\CMakeCCompilerABI.c”

cmTC\_03075.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\Debug\cmTC\_03075.exe

Detecting CXX compiler ABI info compiled with the following output:  
Change Dir: C:/D/S4R/Slicer-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC\_f7ffe.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30138 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

CMakeCXXCompilerABI.cpp

cl /c /Zi /W2 /WX- /diagnostics:column /Od /Ob0 /D \_MBCS /D WIN32 /D \_WINDOWS /D “CMAKE\_INTDIR="Debug"” /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /GR /Fo"cmTC\_f7ffe.dir\Debug\" /Fd"cmTC\_f7ffe.dir\Debug\vc142.pdb" /external:W2 /Gd /TP /errorReport:queue “C:\Program Files\CMake\share\cmake-3.22\Modules\CMakeCXXCompilerABI.cpp”

cmTC\_f7ffe.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\Debug\cmTC\_f7ffe.exe

Determining if files stdint.h exist passed with the following output:  
Change Dir: C:/D/S4R/Slicer-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC\_70df8.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30138 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

HAVE\_STDINT\_H.c

cl /c /Zi /W2 /WX- /diagnostics:column /Od /Ob0 /D \_MBCS /D WIN32 /D \_WINDOWS /D “CMAKE\_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /Fo"cmTC\_70df8.dir\Debug\" /Fd"cmTC\_70df8.dir\Debug\vc142.pdb" /external:W2 /Gd /TC /errorReport:queue /bigobj “C:\D\S4R\Slicer-build\CMakeFiles\CheckIncludeFiles\HAVE\_STDINT\_H.c”

cmTC\_70df8.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\Debug\cmTC\_70df8.exe

Performing C SOURCE FILE Test C\_HAS\_WARNING-W3 succeeded with the following output:  
Change Dir: C:/D/S4R/Slicer-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC\_afd4c.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30138 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

src.c

cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D \_MBCS /D WIN32 /D \_WINDOWS /D “C\_HAS\_WARNING-W3” /D “CMAKE\_INTDIR="Debug"” /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /Fo"cmTC\_afd4c.dir\Debug\" /Fd"cmTC\_afd4c.dir\Debug\vc142.pdb" /external:W3 /Gd /TC /errorReport:queue /bigobj “C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\src.c”

cmTC\_afd4c.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\Debug\cmTC\_afd4c.exe

Source file was:  
int main(void) { return 0; }  
Performing C++ SOURCE FILE Test CXX\_HAS\_WARNING-W3 succeeded with the following output:  
Change Dir: C:/D/S4R/Slicer-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC\_1d894.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30138 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

src.cxx

cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D \_MBCS /D WIN32 /D \_WINDOWS /D “CXX\_HAS\_WARNING-W3” /D “CMAKE\_INTDIR="Debug"” /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /GR /Fo"cmTC\_1d894.dir\Debug\" /Fd"cmTC\_1d894.dir\Debug\vc142.pdb" /external:W3 /Gd /TP /errorReport:queue /bigobj /bigobj “C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\src.cxx”

cmTC\_1d894.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\Debug\cmTC\_1d894.exe

Source file was:  
int main() { return 0;}  
Performing C++ SOURCE FILE Test have\_avx\_extensions\_var succeeded with the following compile output:  
Change Dir: C:/D/S4R/Slicer-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC\_16b6c.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30138 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

src.cxx

cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D \_MBCS /D WIN32 /D \_WINDOWS /D have\_avx\_extensions\_var /D “CMAKE\_INTDIR="Debug"” /Gm- /EHsc /RTC1 /MDd /GS /arch:AVX /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /GR /Fo"cmTC\_16b6c.dir\Debug\" /Fd"cmTC\_16b6c.dir\Debug\vc142.pdb" /external:W3 /Gd /TP /errorReport:queue /bigobj /bigobj /bigobj “C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\src.cxx”

cmTC\_16b6c.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\Debug\cmTC\_16b6c.exe

…and run output:

Return value: 1  
Source file was:

```
#include <immintrin.h>
int main()
{
  __m256 a, b, c;
  const float src[8] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
  float dst[8];
  a = _mm256_loadu_ps( src );
  b = _mm256_loadu_ps( src );
  c = _mm256_add_ps( a, b );
  _mm256_storeu_ps( dst, c );

  for( int i = 0; i < 8; i++ ){
    if( ( src[i] + src[i] ) != dst[i] ){
      return -1;
    }
  }

  return 0;
}

```

Performing C++ SOURCE FILE Test have\_avx2\_extensions\_var succeeded with the following compile output:  
Change Dir: C:/D/S4R/Slicer-build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC\_67b43.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30138 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

src.cxx

cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D \_MBCS /D WIN32 /D \_WINDOWS /D have\_avx2\_extensions\_var /D “CMAKE\_INTDIR="Debug"” /Gm- /EHsc /RTC1 /MDd /GS /arch:AVX2 /fp:precise /Zc:wchar\_t /Zc:forScope /Zc:inline /GR /Fo"cmTC\_67b43.dir\Debug\" /Fd"cmTC\_67b43.dir\Debug\vc142.pdb" /external:W3 /Gd /TP /errorReport:queue /bigobj /bigobj /bigobj “C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\src.cxx”

cmTC\_67b43.vcxproj → C:\D\S4R\Slicer-build\CMakeFiles\CMakeTmp\Debug\cmTC\_67b43.exe

…and run output:

Return value: 1  
Source file was:

```
#include <immintrin.h>
int main()
{
  __m256i a, b, c;
  const int src[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
  int dst[8];
  a = _mm256_loadu_si256( (__m256i*)src );
  b = _mm256_loadu_si256( (__m256i*)src );
  c = _mm256_add_epi32( a, b );
  _mm256_storeu_si256( (__m256i*)dst, c );

  for( int i = 0; i < 8; i++ ){
    if( ( src[i] + src[i] ) != dst[i] ){
      return -1;
    }
  }

  return 0;
}

```

---

<div class="post-metadata">

### Author: ![pranjal.sahu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pranjal.sahu/32/15416_2.png) [@pranjal.sahu](https://discourse.slicer.org/u/pranjal.sahu)
#### Post date: [September 30, 2022, 6:00am UTC](https://discourse.slicer.org/t/building-error-msb8066/21136/4 "2022-09-30T06:00:29Z")

</div>

Did you figure out the issue ?  
Could you please share your findings here ?

Thank You

---

<div class="post-metadata">

### Author: ![siqueirl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/siqueirl/32/12320_2.png) [@siqueirl](https://discourse.slicer.org/u/siqueirl)
#### Post date: [September 30, 2022, 2:22pm UTC](https://discourse.slicer.org/t/building-error-msb8066/21136/5 "2022-09-30T14:22:56Z")

</div>

It has been a while, so I might not remember the fix for this one problem. Back then, I was building Slicer 4.x. I am currently building 5.X with VS2022, and I no longer have issues with it. Some of the previous problems were related to the git protocol as it was failing to download the packages, so it needs to be unchecked in CMake. Check your version of Qt to see if it matches what the building guide recommends.

---

<div class="post-metadata">

### Author: ![2733845631](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/2733845631/32/70054_2.png) [@2733845631](https://discourse.slicer.org/u/2733845631)
#### Post date: [April 15, 2024, 11:03am UTC](https://discourse.slicer.org/t/building-error-msb8066/21136/6 "2024-04-15T11:03:26Z")

</div>

Did you figure out the issue ?
