microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.26k stars 6.41k forks source link

[cuda] Build error command: ./vcpkg install pcl[core,cuda,opengl,qt,vtk]:x64-windows --recurse #21741

Closed eunwonki closed 2 years ago

eunwonki commented 2 years ago

Host Environment

To Reproduce Steps to reproduce the behavior: ./vcpkg install xxxx

Failure logs

Computing installation plan...
The following packages will be built and installed:
  * cuda[core]:x64-windows -> 10.1#8
  * curl[core,non-http,schannel,ssl,sspi]:x64-windows -> 7.80.0
  * double-conversion[core]:x64-windows -> 3.1.5#1
  * egl-registry[core]:x64-windows -> 2021-11-23
  * expat[core]:x64-windows -> 2.4.1
  * freeglut[core]:x64-windows -> 3.2.1#7
  * freetype[brotli,bzip2,core,png,zlib]:x64-windows -> 2.11.0#2
  * glew[core]:x64-windows -> 2.2.0
  * harfbuzz[core]:x64-windows -> 3.0.0
  * icu[core]:x64-windows -> 69.1#16
  * jasper[core]:x64-windows -> 2.0.33
  * jsoncpp[core]:x64-windows -> 1.9.5
  * libharu[core,notiffsymbols]:x64-windows -> 2017-08-15#10
  * libogg[core]:x64-windows -> 1.3.5
  * libtheora[core]:x64-windows -> 1.2.0alpha1-20170719#3
  * netcdf-c[core,dap,hdf5,nczarr,netcdf-4,platform-default-features]:x64-windows -> 4.8.1
  * opengl[core]:x64-windows -> 0.0#9
    pcl[core,cuda,opengl,qt,vtk]:x64-windows -> 1.12.0#1
  * pcre2[core]:x64-windows -> 10.39
  * pegtl-2[core]:x64-windows -> 2.8.3#1
  * proj4[core,tiff]:x64-windows -> 8.0.0
  * pugixml[core]:x64-windows -> 1.11.4#1
  * qt5-activeqt[core]:x64-windows -> 5.15.2#1
  * qt5-base[core]:x64-windows -> 5.15.2#16
  * qt5-declarative[core]:x64-windows -> 5.15.2#2
  * qt5-imageformats[core]:x64-windows -> 5.15.2#1
  * qt5-svg[core]:x64-windows -> 5.15.2#2
  * qt5-tools[core]:x64-windows -> 5.15.2#1
  * qt5-xmlpatterns[core]:x64-windows -> 5.15.2#1
  * sqlite3[core,tool]:x64-windows -> 3.36.0#1
  * utfcpp[core]:x64-windows -> 3.2.1
  * vcpkg-pkgconfig-get-modules[core]:x64-windows -> 2021-04-02#1
  * vtk[core,qt]:x64-windows -> 9.0.3-pv5.9.1#5
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 packages from C:\Users\non-setting\AppData\Local\vcpkg\archives in 5.126 ms. Use --debug to see more details.
Starting package 1/33: cuda:x64-windows
Building package cuda[core]:x64-windows...
-- Executing NVCC-NOTFOUND --version resulted in error: 1
CMake Error at ports/cuda/vcpkg_find_cuda.cmake:67 (message):
  Could not find CUDA.  Before continuing, please download and install CUDA
  (v10.1.0 or higher) from:

      https://developer.nvidia.com/cuda-downloads

Call Stack (most recent call first):
  ports/cuda/portfile.cmake:9 (vcpkg_find_cuda)
  scripts/ports.cmake:142 (include)

Error: Building package cuda:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `git pull` and `.\vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+cuda
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[cuda]+Build+error
including:
  package: cuda[core]:x64-windows -> 10.1#8
    vcpkg-tool version: 2021-11-19-dd4f5f501990cc475022b1677675c344a91b8192
    vcpkg-scripts version: 3a68454af 2021-11-27 (23 hours ago)

Additional context Add any other context about the problem here, such as what you have already tried to resolve the issue.

eunwonki commented 2 years ago

I resoved by this link (https://github.com/microsoft/vcpkg/issues/3609) It was cuda path issue. I install cuda and set cuda path on that file