vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

Cannot install ragel with VS2019

Open jepessen opened this issue 7 years ago • 2 comments

I'm trying to install ragel. At the moment I've both Visual Studio 2017 and 2019 installed on my PC.

With the following command:

./vcpkg install ragel:x64-windows

I obtain following result:

The following packages will be built and installed:
    ragel[core]:x64-windows
Starting package 1/1: ragel:x64-windows
Building package ragel[core]:x64-windows...
-- Downloading http://www.colm.net/files/ragel/ragel-6.10.tar.gz...
-- Extracting source D:/Projects/vcpkg/downloads/ragel-6.10.tar.gz
-- Applying patch D:/Projects/vcpkg/ports/ragel/0001-Remove-unistd.h-include-1.patch
-- Applying patch D:/Projects/vcpkg/ports/ragel/0002-Remove-unistd.h-include-2.patch
CMake Error at scripts/cmake/vcpkg_configure_cmake.cmake:116 (message):
  Unable to determine appropriate CMake MSBuild generator for:
  Windows-x64-v142.

  This is because CMake 3.12.4 does not currently have a 'Visual Studio 16
  2019' option.

  This can be worked around by either:

    1. Install Visual Studio 2017 Stable

Call Stack (most recent call first):
  ports/ragel/portfile.cmake:20 (vcpkg_configure_cmake)
  scripts/ports.cmake:71 (include)


Error: Building package ragel:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: ragel:x64-windows
  Vcpkg version: 2018.11.23-nohash

Additionally, attach any relevant sections from the log files above.

jepessen avatar Apr 04 '19 14:04 jepessen

It's not just ragel. While this get fixed I have a patch: vs2019.zip Also you need CMake which supports "Visual Studio 16 2019" generator in your PATH

ebinans avatar Apr 05 '19 06:04 ebinans

Thanks it seems to work now.

jepessen avatar Apr 05 '19 07:04 jepessen