pelicanmapping / rocky

3D Geospatial SDK (C++17 / Vulkan / VSG)
MIT License
91 stars 15 forks source link

Can't build with VS2019 / vcpkg #3

Closed remoe closed 1 year ago

remoe commented 1 year ago

Can't build with VS2019 / vcpkg:

\src\rocky>bootstrap-vcpkg -S . -B _build -I _install -G "Visual Studio 16 2019" -A x64
Source location = \src\rocky
Build location = \src\rocky\_build
Install location = \src\rocky\_install
Compiler = Visual Studio 16 2019
Architecture = x64
Continue? [Y,N]?Y
-- Building with vcpkg toolchain.
-- Running vcpkg install
error: Unrecognized identifer name xbox. Add to override list in triplet file.
Detecting compiler hash for triplet x64-windows...
The following packages will be built and installed:
  * assimp[core]:x64-windows -> 5.2.5
  * boost-assert[core]:x64-windows -> 1.82.0#1
  * boost-config[core]:x64-windows -> 1.82.0#1
  * boost-core[core]:x64-windows -> 1.82.0#1
  * boost-move[core]:x64-windows -> 1.82.0#1
  * boost-smart-ptr[core]:x64-windows -> 1.82.0#1
  * boost-static-assert[core]:x64-windows -> 1.82.0#1
  * boost-throw-exception[core]:x64-windows -> 1.82.0#1
  * boost-type-traits[core]:x64-windows -> 1.82.0#1
  * boost-uninstall[core]:x64-windows -> 1.82.0#1
  * boost-vcpkg-helpers[core]:x64-windows -> 1.82.0#1
  * brotli[core]:x64-windows -> 1.0.9#5
  * bzip2[core,tool]:x64-windows -> 1.0.8#4
    cpp-httplib[core]:x64-windows -> 0.12.0#1 -- /src/rocky/vcpkg/ports\cpp-httplib
  * curl[core,non-http,schannel,ssl,sspi]:x64-windows -> 8.0.1
  * draco[core]:x64-windows -> 1.5.3
  * expat[core]:x64-windows -> 2.5.0#3
  * freexl[core]:x64-windows -> 1.0.6#2
    gdal[core,curl,default-features,expat,geos,gif,hdf5,iconv,jpeg,lerc,libkml,libspatialite,libxml2,lzma,netcdf,openjpeg,openssl,pcre2,png,postgresql,qhull,recommended-features,sqlite3,webp,zstd]:x64-windows -> 3.6.4
  * geos[core]:x64-windows -> 3.11.1
  * giflib[core]:x64-windows -> 5.2.1#3
    glm[core]:x64-windows -> 0.9.9.8#2
  * hdf5[core,cpp,szip,zlib]:x64-windows -> 1.14.0#1
  * json-c[core]:x64-windows -> 2022-06-26#3
  * kubazip[core]:x64-windows -> 0.2.4
  * lerc[core]:x64-windows -> 4.0#1
  * libgeotiff[core]:x64-windows -> 1.7.1#2
  * libiconv[core]:x64-windows -> 1.17#1
  * libjpeg-turbo[core]:x64-windows -> 2.1.5.1#1
  * libkml[core]:x64-windows -> 1.3.0#12
  * liblzma[core]:x64-windows -> 5.4.1#1
  * libpng[core]:x64-windows -> 1.6.39#1
  * libpq[core,lz4,openssl,zlib]:x64-windows -> 15.2#3
  * libspatialite[core,freexl,geocallbacks]:x64-windows -> 5.0.1#12
  * libwebp[core,libwebpmux,nearlossless,simd,unicode]:x64-windows -> 1.3.0
  * libxml2[core,http,iconv,lzma,zlib]:x64-windows -> 2.10.3#1
  * lz4[core]:x64-windows -> 1.9.4#1
  * minizip[core]:x64-windows -> 1.2.13#1
  * netcdf-c[core,dap,hdf5,nczarr,netcdf-4,platform-default-features]:x64-windows -> 4.8.1#3
    nlohmann-json[core]:x64-windows -> 3.11.2
  * openjpeg[core]:x64-windows -> 2.5.0
    openssl[core]:x64-windows -> 3.1.0#3
  * pcre2[core]:x64-windows -> 10.40#1
  * pkgconf[core]:x64-windows -> 1.8.0#5
  * poly2tri[core]:x64-windows -> 2020-07-21#3
    proj[core,net,tiff]:x64-windows -> 9.2.0
  * pugixml[core]:x64-windows -> 1.13.0
  * qhull[core]:x64-windows -> 8.0.2#4
  * rapidjson[core]:x64-windows -> 2023-04-27
    sqlite3[core,rtree,tool]:x64-windows -> 3.40.1#3
  * stb[core]:x64-windows -> 2023-04-11#1
  * szip[core]:x64-windows -> 2.1.1#11
  * tiff[core,jpeg,lzma,zip]:x64-windows -> 4.5.0#3
    tinyxml[core]:x64-windows -> 2.6.2#10
  * uriparser[core]:x64-windows -> 0.9.7
  * utfcpp[core]:x64-windows -> 3.2.3
  * vcpkg-cmake[core]:x64-windows -> 2022-12-22
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
  * vcpkg-cmake-get-vars[core]:x64-windows -> 2023-03-02
  * vcpkg-pkgconfig-get-modules[core]:x64-windows -> 2022-02-10#1
  * vcpkg-tool-meson[core]:x64-windows -> 0.63
    vsg[core]:x64-windows -> 1.0.5 -- /src/rocky/vcpkg/ports\vsg
    vsgimgui[core]:x64-windows -> 0.0.0 -- /src/rocky/vcpkg/ports\vsgimgui
    vsgxchange[core]:x64-windows -> 1.0.1 -- /src/rocky/vcpkg/ports\vsgxchange
  * vulkan[core]:x64-windows -> 1.1.82.1#6
    zlib[core]:x64-windows -> 1.2.13
  * zstd[core]:x64-windows -> 1.5.4#2
Additional packages (*) will be modified to complete this operation.
Restored 67 package(s) from C:\Users\NA\AppData\Local\vcpkg\archives in 17.54 s. Use --debug to see more details.
Installing 1/67 vcpkg-cmake-config:x64-windows...
Elapsed time to handle vcpkg-cmake-config:x64-windows: 14.39 ms
Installing 2/67 vcpkg-cmake:x64-windows...
Elapsed time to handle vcpkg-cmake:x64-windows: 20.48 ms
Installing 3/67 brotli:x64-windows...
Elapsed time to handle brotli:x64-windows: 106.5 ms
Installing 4/67 cpp-httplib:x64-windows...
Elapsed time to handle cpp-httplib:x64-windows: 23.54 ms
Installing 5/67 zstd:x64-windows...
Elapsed time to handle zstd:x64-windows: 66.51 ms
Installing 6/67 libwebp:x64-windows...
Elapsed time to handle libwebp:x64-windows: 142.4 ms
Installing 7/67 sqlite3:x64-windows...
Elapsed time to handle sqlite3:x64-windows: 71.65 ms
Installing 8/67 qhull:x64-windows...
Elapsed time to handle qhull:x64-windows: 135.2 ms
Installing 9/67 zlib:x64-windows...
Elapsed time to handle zlib:x64-windows: 36.12 ms
Installing 10/67 vcpkg-cmake-get-vars:x64-windows...
Elapsed time to handle vcpkg-cmake-get-vars:x64-windows: 22.53 ms
Installing 11/67 openssl:x64-windows...
Elapsed time to handle openssl:x64-windows: 366.6 ms
Installing 12/67 lz4:x64-windows...
Elapsed time to handle lz4:x64-windows: 43.38 ms
Installing 13/67 libpq:x64-windows...
Elapsed time to handle libpq:x64-windows: 1.235 s
Installing 14/67 libpng:x64-windows...
Elapsed time to handle libpng:x64-windows: 67.99 ms
Installing 15/67 bzip2:x64-windows...
Elapsed time to handle bzip2:x64-windows: 47.18 ms
Installing 16/67 pcre2:x64-windows...
Elapsed time to handle pcre2:x64-windows: 117.4 ms
Installing 17/67 openjpeg:x64-windows...
Elapsed time to handle openjpeg:x64-windows: 56.34 ms
Installing 18/67 vcpkg-tool-meson:x64-windows...
Elapsed time to handle vcpkg-tool-meson:x64-windows: 1.027 s
Installing 19/67 pkgconf:x64-windows...
Elapsed time to handle pkgconf:x64-windows: 54.41 ms
Installing 20/67 vcpkg-pkgconfig-get-modules:x64-windows...
Elapsed time to handle vcpkg-pkgconfig-get-modules:x64-windows: 23.54 ms
Installing 21/67 szip:x64-windows...
Elapsed time to handle szip:x64-windows: 50.56 ms
Installing 22/67 hdf5:x64-windows...
Elapsed time to handle hdf5:x64-windows: 401.5 ms
Installing 23/67 curl:x64-windows...
Elapsed time to handle curl:x64-windows: 106.1 ms
Installing 24/67 netcdf-c:x64-windows...
Elapsed time to handle netcdf-c:x64-windows: 81.05 ms
Installing 25/67 liblzma:x64-windows...
Elapsed time to handle liblzma:x64-windows: 76.71 ms
Installing 26/67 libiconv:x64-windows...
Elapsed time to handle libiconv:x64-windows: 79.8 ms
Installing 27/67 libxml2:x64-windows...
Elapsed time to handle libxml2:x64-windows: 199.9 ms
Installing 28/67 freexl:x64-windows...
Elapsed time to handle freexl:x64-windows: 35.3 ms
Installing 29/67 libjpeg-turbo:x64-windows...
Elapsed time to handle libjpeg-turbo:x64-windows: 96.67 ms
Installing 30/67 tiff:x64-windows...
Elapsed time to handle tiff:x64-windows: 72.56 ms
Installing 31/67 nlohmann-json:x64-windows...
Elapsed time to handle nlohmann-json:x64-windows: 91.47 ms
Installing 32/67 proj:x64-windows...
Elapsed time to handle proj:x64-windows: 366.2 ms
Installing 33/67 geos:x64-windows...
Elapsed time to handle geos:x64-windows: 897.9 ms
Installing 34/67 libspatialite:x64-windows...
Elapsed time to handle libspatialite:x64-windows: 232.5 ms
Installing 35/67 uriparser:x64-windows...
Elapsed time to handle uriparser:x64-windows: 54.73 ms
Installing 36/67 minizip:x64-windows...
Elapsed time to handle minizip:x64-windows: 64.87 ms
Installing 37/67 expat:x64-windows...
Elapsed time to handle expat:x64-windows: 57.6 ms
Installing 38/67 boost-uninstall:x64-windows...
Elapsed time to handle boost-uninstall:x64-windows: 36.08 ms
Installing 39/67 boost-vcpkg-helpers:x64-windows...
Elapsed time to handle boost-vcpkg-helpers:x64-windows: 31.49 ms
Installing 40/67 boost-config:x64-windows...
Elapsed time to handle boost-config:x64-windows: 377.8 ms
Installing 41/67 boost-static-assert:x64-windows...
Elapsed time to handle boost-static-assert:x64-windows: 34.38 ms
Installing 42/67 boost-type-traits:x64-windows...
Elapsed time to handle boost-type-traits:x64-windows: 311 ms
Installing 43/67 boost-assert:x64-windows...
Elapsed time to handle boost-assert:x64-windows: 47.61 ms
Installing 44/67 boost-throw-exception:x64-windows...
Elapsed time to handle boost-throw-exception:x64-windows: 44.52 ms
Installing 45/67 boost-move:x64-windows...
Elapsed time to handle boost-move:x64-windows: 90.66 ms
Installing 46/67 boost-core:x64-windows...
Elapsed time to handle boost-core:x64-windows: 169.5 ms
Installing 47/67 boost-smart-ptr:x64-windows...
Elapsed time to handle boost-smart-ptr:x64-windows: 210.7 ms
Installing 48/67 libkml:x64-windows...
Elapsed time to handle libkml:x64-windows: 971 ms
Installing 49/67 lerc:x64-windows...
Elapsed time to handle lerc:x64-windows: 53.88 ms
Installing 50/67 giflib:x64-windows...
Elapsed time to handle giflib:x64-windows: 45.96 ms
Installing 51/67 libgeotiff:x64-windows...
Elapsed time to handle libgeotiff:x64-windows: 84.38 ms
Installing 52/67 json-c:x64-windows...
Elapsed time to handle json-c:x64-windows: 85.48 ms
Installing 53/67 gdal:x64-windows...
Elapsed time to handle gdal:x64-windows: 1.886 s
Installing 54/67 glm:x64-windows...
Elapsed time to handle glm:x64-windows: 799.8 ms
Installing 55/67 tinyxml:x64-windows...
Elapsed time to handle tinyxml:x64-windows: 57.25 ms
Installing 56/67 vulkan:x64-windows...
Elapsed time to handle vulkan:x64-windows: 33.83 ms
Installing 57/67 vsg:x64-windows...
Elapsed time to handle vsg:x64-windows: 1.202 s
Installing 58/67 vsgimgui:x64-windows...
Elapsed time to handle vsgimgui:x64-windows: 170.8 ms
Installing 59/67 utfcpp:x64-windows...
Elapsed time to handle utfcpp:x64-windows: 44.56 ms
Installing 60/67 stb:x64-windows...
Elapsed time to handle stb:x64-windows: 66.17 ms
Installing 61/67 rapidjson:x64-windows...
Elapsed time to handle rapidjson:x64-windows: 76.89 ms
Installing 62/67 pugixml:x64-windows...
Elapsed time to handle pugixml:x64-windows: 70.7 ms
Installing 63/67 poly2tri:x64-windows...
Elapsed time to handle poly2tri:x64-windows: 51.74 ms
Installing 64/67 kubazip:x64-windows...
Elapsed time to handle kubazip:x64-windows: 41.91 ms
Installing 65/67 draco:x64-windows...
Elapsed time to handle draco:x64-windows: 988.2 ms
Installing 66/67 assimp:x64-windows...
Elapsed time to handle assimp:x64-windows: 808.8 ms
Installing 67/67 vsgxchange:x64-windows...
Elapsed time to handle vsgxchange:x64-windows: 160.3 ms
Total install time: 33.24 s
cpp-httplib provides CMake targets:

    # this is heuristically generated, and may not be correct
    find_package(httplib CONFIG REQUIRED)
    target_link_libraries(main PRIVATE httplib::httplib)

sqlite3 provides pkgconfig bindings.
sqlite3 provides CMake targets:

    find_package(unofficial-sqlite3 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3)

The package zlib is compatible with built-in CMake targets:

    find_package(ZLIB REQUIRED)
    target_link_libraries(main PRIVATE ZLIB::ZLIB)

The package openssl is compatible with built-in CMake targets:

    find_package(OpenSSL REQUIRED)
    target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)

The package nlohmann-json provides CMake targets:

    find_package(nlohmann_json CONFIG REQUIRED)
    target_link_libraries(main PRIVATE nlohmann_json::nlohmann_json)

The package nlohmann-json can be configured to not provide implicit conversions via a custom triplet file:

    set(nlohmann-json_IMPLICIT_CONVERSIONS OFF)

For more information, see the docs here:

    https://json.nlohmann.me/api/macros/json_use_implicit_conversions/

proj provides CMake targets:

    find_package(PROJ CONFIG REQUIRED)
    target_link_libraries(main PRIVATE PROJ::proj)

The package GDAL provides CMake targets:

    find_package(GDAL CONFIG REQUIRED)
    target_link_libraries(main PRIVATE GDAL::GDAL)

glm provides CMake targets:

    # this is heuristically generated, and may not be correct
    find_package(glm CONFIG REQUIRED)
    target_link_libraries(main PRIVATE glm::glm)

tinyxml provides CMake targets:

    # this is heuristically generated, and may not be correct
    find_package(tinyxml CONFIG REQUIRED)
    target_link_libraries(main PRIVATE unofficial-tinyxml::unofficial-tinyxml)

vsg provides CMake targets:

    # this is heuristically generated, and may not be correct
    find_package(vsg CONFIG REQUIRED)
    target_link_libraries(main PRIVATE vsg::vsg)

vsgimgui provides CMake targets:

    # this is heuristically generated, and may not be correct
    find_package(vsgImGui CONFIG REQUIRED)
    target_link_libraries(main PRIVATE vsgImGui::vsgImGui)

vsgxchange provides CMake targets:

    # this is heuristically generated, and may not be correct
    find_package(vsgXchange CONFIG REQUIRED)
    target_link_libraries(main PRIVATE vsgXchange::vsgXchange)

-- Running vcpkg install - done
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The CXX compiler identification is MSVC 19.29.30147.0
-- The C compiler identification is MSVC 19.29.30147.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at /vcpkg/scripts/buildsystems/vcpkg.cmake:852 (_find_package):
  Could not find a configuration file for package "PROJ" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    /src/rocky/_build/vcpkg_installed/x64-windows/share/proj/proj-config.cmake, version: 9.2.0 (MSVC_TOOLSET_VERSION = 143)

Call Stack (most recent call first):
  CMakeLists.txt:52 (find_package)

-- Configuring incomplete, errors occurred!
See also "/src/rocky/_build/CMakeFiles/CMakeOutput.log".
remoe commented 1 year ago

Had installed multiple Visual Studio: 2019 and 2022.

It builds after set the VCPKG_VISUAL_STUDIO_PATH environment value to VS2019:

set VCPKG_VISUAL_STUDIO_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community