# Issues Setting Up A Viame Build

**URL:** https://discourse.kitware.com/t/issues-setting-up-a-viame-build/1056
**Category:** VIAME & DIVE
**Created:** [July 7, 2023, 11:11pm UTC](https://discourse.kitware.com/t/issues-setting-up-a-viame-build/1056 "2023-07-07T23:11:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lee44a](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/l/e19b73/32.png) [@lee44a](https://discourse.kitware.com/u/lee44a)
#### Post date: [July 7, 2023, 11:11pm UTC](https://discourse.kitware.com/t/issues-setting-up-a-viame-build/1056/1 "2023-07-07T23:11:12Z")

</div>

Hello @jcfr,

I am having issues with following the quick build instructions for VIAME as described here: [GitHub - VIAME/VIAME: Video and Image Analytics for Multiple Environments](https://github.com/VIAME/VIAME#installations)  
I want to have a VIAME build with VIAME\_ENABLE\_SMQTK, YOLO, OPENCV, PYTORCH, VXL, and VIVIA enabled, and it seems I need to follow those steps as described in the above link.  
I have encountered many issues, and after getting compilers finally set up and working I am encountering this error:  
C:\VIAME\Proj\> cmake -DCMAKE\_BUILD\_TYPE:STRING=Release source  
– Selecting Windows SDK version 10.0.22621.0 to target Windows .  
CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:756 (message):  
Compiling the CUDA compiler identification source file  
“CMakeCUDACompilerId.cu” failed.

Compiler:

Build flags:

Id flags: --keep;–keep-dir;tmp -v

The output was:

1

MSBuild version 17.6.3+07e294721 for .NET Framework

Build started 7/7/2023 4:00:53 PM.

Project  
“C:\VIAME\Proj\CMakeFiles\3.27.0-rc4\CompilerIdCUDA\CompilerIdCUDA.vcxproj”  
on node 1 (default targets).

PrepareForBuild:

```
Creating directory "Debug\".
Creating directory "Debug\CompilerIdCUDA.tlog\".

```

InitializeBuildStatus:

```
Creating "Debug\CompilerIdCUDA.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

```

AddCudaCompileDeps:

```
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\cl.exe /E /nologo /showIncludes /TP /D __CUDACC__ /D __CUDACC_VER_MAJOR__ =12 /D __CUDACC_VER_MINOR__ =2 /D_MBCS /Iinclude /Ibin /Iinclude /I. /FIcuda_runtime.h /c C:\VIAME\Proj\CMakeFiles\3.27.0-rc4\CompilerIdCUDA\CMakeCUDACompilerId.cu

```

C:\Program Files\Microsoft Visual  
Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA  
12.2.targets(606,9): error : The CUDA Toolkit v12.2 directory ‘’ does not  
exist. Please verify the CUDA Toolkit is installed properly or define the  
CudaToolkitDir property to resolve this error.  
[C:\VIAME\Proj\CMakeFiles\3.27.0-rc4\CompilerIdCUDA\CompilerIdCUDA.vcxproj]

Done Building Project  
“C:\VIAME\Proj\CMakeFiles\3.27.0-rc4\CompilerIdCUDA\CompilerIdCUDA.vcxproj”  
(default targets) – FAILED.

Build FAILED.

“C:\VIAME\Proj\CMakeFiles\3.27.0-rc4\CompilerIdCUDA\CompilerIdCUDA.vcxproj”  
(default target) (1) →

(ValidateCudaBuild target) →

```
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 12.2.targets(606,9): error : The CUDA Toolkit v12.2 directory '' does not exist. Please verify the CUDA Toolkit is installed properly or define the CudaToolkitDir property to resolve this error. [C:\VIAME\Proj\CMakeFiles\3.27.0-rc4\CompilerIdCUDA\CompilerIdCUDA.vcxproj]

  0 Warning(s)
  1 Error(s)

```

Time Elapsed 00:00:00.73

Call Stack (most recent call first):  
C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE\_DETERMINE\_COMPILER\_ID\_BUILD)  
C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:53 (\_\_determine\_compiler\_id\_test)  
C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE\_DETERMINE\_COMPILER\_ID)  
CMakeLists.txt:26 (enable\_language)

– Configuring incomplete, errors occurred!

I think a possible issue could be that my computer doesn’t have a CUDA enable GPU card mine is Intel (R) UHD Graphics 620. I am not sure what I could do to change that.  
Let me know what solutions you would suggest, or if you need any additional information

---

<div class="post-metadata">

### Author: ![matt\_dawkins](https://discourse.kitware.com/user_avatar/discourse.kitware.com/matt_dawkins/32/523_2.png) [@matt\_dawkins](https://discourse.kitware.com/u/matt_dawkins)
#### Post date: [July 20, 2023, 6:46pm UTC](https://discourse.kitware.com/t/issues-setting-up-a-viame-build/1056/2 "2023-07-20T18:46:35Z")

</div>

Re: “I want to have a VIAME build with VIAME\_ENABLE\_SMQTK, YOLO, OPENCV, PYTORCH, VXL, and VIVIA enabled, and it seems I need to follow those steps as described in the above link.”

You do not need to do a build just have a build or installer with these settings, as the default binaries on [GitHub - VIAME/VIAME: Video and Image Analytics for Multiple Environments](http://github.com/VIAME/VIAME) page have all these settings enabled by default, including the windows ones.

Should you desire to do a build regardless of this, windows is more difficult than Linux. I would first check you are using the correct CUDA version specified in the build instructions, 11.6, 11.7 instead of v12.0+

The scripts located in [https://github.com/VIAME/VIAME/blob/main/cmake/build\_server\_windows.bat](https://github.com/VIAME/VIAME/blob/main/cmake/build_server_windows.bat) show how the dashboard servers perform a full windows build, if that is easier.
