text:
[gstreamer] Build error

Package: gstreamer[core,plugins-base]:x64-windows -> 1.20.5#11
Host Environment

Host: x64-windows
Compiler: MSVC 19.29.30151.0
vcpkg-tool version: 2023-08-09-9990a4c9026811a312cb2af78bf77f3d9d288416
vcpkg-scripts version: 927bc12e3 2023-08-29 (29 minutes ago)

To Reproduce
vcpkg install --recurse opencv[gstreamer,ffmpeg,python]:x64-windows
Failure logs
-- Using cached gstreamer-gstreamer-1.20.5.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/gstreamer/src/1.20.5-a6a8a0db6f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/gstreamer-gstreamer-1.20.5.tar.gz
-- Applying patch fix-clang-cl.patch
-- Applying patch fix-clang-cl-gstreamer.patch
-- Applying patch fix-clang-cl-base.patch
-- Applying patch fix-clang-cl-good.patch
-- Applying patch fix-clang-cl-bad.patch
-- Applying patch fix-clang-cl-ugly.patch
-- Applying patch gstreamer-disable-no-unused.patch
-- Applying patch srtp_fix.patch
-- Applying patch fix-bz2-windows-debug-dependency.patch
-- Applying patch plugin-base-disable-no-unused.patch
-- Using source at C:/vcpkg/buildtrees/gstreamer/src/1.20.5-a6a8a0db6f.clean
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows-dbg
-- Using cached mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at C:/vcpkg/downloads/tools/msys2/6f3fa1a12ef85a6f
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: C:/vcpkg/downloads/tools/python/python-3.11.4-x64/python.exe C:/vcpkg/installed/x64-windows/tools/meson/meson.py -Dgpl=disabled -Dlibav=disabled -Dnls=disabled -Dges=disabled -Dbase=enabled -Dgst-plugins-base:gl-graphene=disabled -Dgst-plugins-base:alsa=disabled -Dgst-plugins-base:ogg=disabled -Dgst-plugins-base:opus=disabled -Dgst-plugins-base:pango=disabled -Dgst-plugins-base:vorbis=disabled -Dgst-plugins-base:x11=disabled -Dgst-plugins-base:xshm=disabled -Dgood=disabled -Dgst-plugins-good:bz2=disabled -Dgst-plugins-good:cairo=disabled -Dgst-plugins-good:flac=disabled -Dgst-plugins-good:gdk-pixbuf=disabled -Dgst-plugins-good:jpeg=disabled -Dgst-plugins-good:mpg123=disabled -Dgst-plugins-good:png=disabled -Dgst-plugins-good:speex=disabled -Dgst-plugins-good:taglib=disabled -Dgst-plugins-good:vpx=disabled -Dugly=disabled -Dgst-plugins-ugly:x264=disabled -Dbad=disabled -Dgst-plugins-bad:aes=disabled -Dgst-plugins-bad:assrender=disabled -Dgst-plugins-bad:bz2=disabled -Dgst-plugins-bad:chromaprint=disabled -Dgst-plugins-bad:closedcaption=disabled -Dgst-plugins-bad:colormanagement=disabled -Dgst-plugins-bad:dash=disabled -Dgst-plugins-bad:dc1394=disabled -Dgst-plugins-bad:dtls=disabled -Dgst-plugins-bad:faad=disabled -Dgst-plugins-bad:fdkaac=disabled -Dgst-plugins-bad:fluidsynth=disabled -Dgst-plugins-bad:libde265=disabled -Dgst-plugins-bad:microdns=disabled -Dgst-plugins-bad:modplug=disabled -Dgst-plugins-bad:openal=disabled -Dgst-plugins-bad:openh264=disabled -Dgst-plugins-bad:openjpeg=disabled -Dgst-plugins-bad:openmpt=disabled -Dgst-plugins-bad:opus=disabled -Dgst-plugins-bad:smoothstreaming=disabled -Dgst-plugins-bad:sndfile=disabled -Dgst-plugins-bad:soundtouch=disabled -Dgst-plugins-bad:srt=disabled -Dgst-plugins-bad:srtp=disabled -Dgst-plugins-bad:webp=disabled -Dgst-plugins-bad:webrtc=disabled -Dgst-plugins-bad:wildmidi=disabled -Dgst-plugins-bad:x11=disabled -Dgst-plugins-bad:x265=disabled -Dgst-plugins-bad:asio=disabled -Dpython=disabled -Dlibnice=disabled -Ddevtools=disabled -Drtsp_server=disabled -Domx=disabled -Dvaapi=disabled -Dsharp=disabled -Drs=disabled -Dgst-examples=disabled -Dtls=disabled -Dqt5=disabled -Dtests=disabled -Dexamples=disabled -Dintrospection=disabled -Dorc=disabled -Ddoc=disabled -Dgtk_doc=disabled -Dgstreamer:check=disabled -Dgstreamer:libunwind=disabled -Dgstreamer:libdw=disabled -Dgstreamer:dbghelp=disabled -Dgstreamer:bash-completion=disabled -Dgstreamer:coretracers=disabled -Dgstreamer:benchmarks=disabled -Dgstreamer:gst_debug=true -Dgst-plugins-base:gl_winsys=win32 -Dgst-plugins-base:gl_platform=wgl -Dgst-plugins-base:cdparanoia=disabled -Dgst-plugins-base:libvisual=disabled -Dgst-plugins-base:theora=disabled -Dgst-plugins-base:tremor=disabled -Dgst-plugins-base:xvideo=disabled -Dgst-plugins-good:aalib=disabled -Dgst-plugins-good:directsound=auto -Dgst-plugins-good:dv=disabled -Dgst-plugins-good:dv1394=disabled -Dgst-plugins-good:gtk3=disabled -Dgst-plugins-good:jack=disabled -Dgst-plugins-good:lame=disabled -Dgst-plugins-good:libcaca=disabled -Dgst-plugins-good:oss=disabled -Dgst-plugins-good:oss4=disabled -Dgst-plugins-good:osxaudio=auto -Dgst-plugins-good:osxvideo=auto -Dgst-plugins-good:pulse=auto -Dgst-plugins-good:qt5=disabled -Dgst-plugins-good:shout2=disabled -Dgst-plugins-good:soup=disabled -Dgst-plugins-good:twolame=disabled -Dgst-plugins-good:waveform=auto -Dgst-plugins-good:wavpack=disabled -Dgst-plugins-ugly:a52dec=disabled -Dgst-plugins-ugly:amrnb=disabled -Dgst-plugins-ugly:amrwbdec=disabled -Dgst-plugins-ugly:cdio=disabled -Dgst-plugins-ugly:dvdread=disabled -Dgst-plugins-ugly:mpeg2dec=disabled -Dgst-plugins-ugly:sidplay=disabled -Dgst-plugins-bad:aom=disabled -Dgst-plugins-bad:avtp=disabled -Dgst-plugins-bad:androidmedia=auto -Dgst-plugins-bad:applemedia=auto -Dgst-plugins-bad:asio-sdk-path= -Dgst-plugins-bad:bluez=disabled -Dgst-plugins-bad:bs2b=disabled -Dgst-plugins-bad:curl=disabled -Dgst-plugins-bad:curl-ssh2=disabled -Dgst-plugins-bad:d3dvideosink=auto -Dgst-plugins-bad:d3d11=auto -Dgst-plugins-bad:decklink=disabled -Dgst-plugins-bad:directfb=disabled -Dgst-plugins-bad:directsound=auto -Dgst-plugins-bad:dts=disabled -Dgst-plugins-bad:dvb=auto -Dgst-plugins-bad:faac=disabled -Dgst-plugins-bad:fbdev=auto -Dgst-plugins-bad:flite=disabled -Dgst-plugins-bad:gl=auto -Dgst-plugins-bad:gme=disabled -Dgst-plugins-bad:gs=disabled -Dgst-plugins-bad:gsm=disabled -Dgst-plugins-bad:ipcpipeline=auto -Dgst-plugins-bad:iqa=disabled -Dgst-plugins-bad:kate=disabled -Dgst-plugins-bad:kms=disabled -Dgst-plugins-bad:ladspa=disabled -Dgst-plugins-bad:ldac=disabled -Dgst-plugins-bad:lv2=disabled -Dgst-plugins-bad:mediafoundation=auto -Dgst-plugins-bad:mpeg2enc=disabled -Dgst-plugins-bad:mplex=disabled -Dgst-plugins-bad:msdk=disabled -Dgst-plugins-bad:musepack=disabled -Dgst-plugins-bad:neon=disabled -Dgst-plugins-bad:nvcodec=enabled -Dgst-plugins-bad:onnx=disabled -Dgst-plugins-bad:openaptx=disabled -Dgst-plugins-bad:opencv=disabled -Dgst-plugins-bad:openexr=disabled -Dgst-plugins-bad:openni2=disabled -Dgst-plugins-bad:opensles=disabled -Dgst-plugins-bad:qroverlay=disabled -Dgst-plugins-bad:resindvd=disabled -Dgst-plugins-bad:rsvg=disabled -Dgst-plugins-bad:rtmp=disabled -Dgst-plugins-bad:sbc=disabled -Dgst-plugins-bad:sctp=auto -Dgst-plugins-bad:shm=disabled -Dgst-plugins-bad:spandsp=disabled -Dgst-plugins-bad:svthevcenc=disabled -Dgst-plugins-bad:teletext=disabled -Dgst-plugins-bad:tinyalsa=disabled -Dgst-plugins-bad:transcode=disabled -Dgst-plugins-bad:ttml=disabled -Dgst-plugins-bad:uvch264=disabled -Dgst-plugins-bad:va=disabled -Dgst-plugins-bad:voaacenc=disabled -Dgst-plugins-bad:voamrwbenc=disabled -Dgst-plugins-bad:vulkan=auto -Dgst-plugins-bad:wasapi=auto -Dgst-plugins-bad:wasapi2=auto -Dgst-plugins-bad:wayland=auto -Dgst-plugins-bad:winks=disabled -Dgst-plugins-bad:winscreencap=auto -Dgst-plugins-bad:zbar=disabled -Dgst-plugins-bad:zxing=disabled -Dgst-plugins-bad:wpe=disabled -Dgst-plugins-bad:magicleap=disabled -Dgst-plugins-bad:v4l2codecs=disabled -Dgst-plugins-bad:isac=disabled --buildtype plain --backend ninja --wrap-mode nodownload --libdir lib --native C:/vcpkg/buildtrees/gstreamer/meson-x64-windows-dbg.log -Ddebug=true --prefix C:/vcpkg/packages/gstreamer_x64-windows/debug --includedir ../include -Dcmake_prefix_path=['C:/vcpkg/installed/x64-windows/debug','C:/vcpkg/installed/x64-windows','C:/vcpkg/installed/x64-windows/share'] C:/vcpkg/buildtrees/gstreamer/src/1.20.5-a6a8a0db6f.clean
    Working Directory: C:/vcpkg/buildtrees/gstreamer/x64-windows-dbg
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\gstreamer\config-x64-windows-dbg-meson-log.txt.log
      C:\vcpkg\buildtrees\gstreamer\config-x64-windows-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_meson.cmake:431 (vcpkg_execute_required_process)
  ports/gstreamer/portfile.cmake:146 (vcpkg_configure_meson)
  scripts/ports.cmake:147 (include)

C:\vcpkg\buildtrees\gstreamer\config-x64-windows-dbg-meson-log.txt.log
Build started at 2023-08-29T10:49:18.643694
Main binary: C:\vcpkg\downloads\tools\python\python-3.11.4-x64\python.exe
Build Options: -Dgpl=disabled -Dlibav=disabled -Dnls=disabled -Dges=disabled -Dbase=enabled -Dgst-plugins-base:gl-graphene=disabled -Dgst-plugins-base:alsa=disabled -Dgst-plugins-base:ogg=disabled -Dgst-plugins-base:opus=disabled -Dgst-plugins-base:pango=disabled -Dgst-plugins-base:vorbis=disabled -Dgst-plugins-base:x11=disabled -Dgst-plugins-base:xshm=disabled -Dgood=disabled -Dgst-plugins-good:bz2=disabled -Dgst-plugins-good:cairo=disabled -Dgst-plugins-good:flac=disabled -Dgst-plugins-good:gdk-pixbuf=disabled -Dgst-plugins-good:jpeg=disabled -Dgst-plugins-good:mpg123=disabled -Dgst-plugins-good:png=disabled -Dgst-plugins-good:speex=disabled -Dgst-plugins-good:taglib=disabled -Dgst-plugins-good:vpx=disabled -Dugly=disabled -Dgst-plugins-ugly:x264=disabled -Dbad=disabled -Dgst-plugins-bad:aes=disabled -Dgst-plugins-bad:assrender=disabled -Dgst-plugins-bad:bz2=disabled -Dgst-plugins-bad:chromaprint=disabled -Dgst-plugins-bad:closedcaption=disabled -Dgst-plugins-bad:colormanagement=disabled -Dgst-plugins-bad:dash=disabled -Dgst-plugins-bad:dc1394=disabled -Dgst-plugins-bad:dtls=disabled -Dgst-plugins-bad:faad=disabled -Dgst-plugins-bad:fdkaac=disabled -Dgst-plugins-bad:fluidsynth=disabled -Dgst-plugins-bad:libde265=disabled -Dgst-plugins-bad:microdns=disabled -Dgst-plugins-bad:modplug=disabled -Dgst-plugins-bad:openal=disabled -Dgst-plugins-bad:openh264=disabled -Dgst-plugins-bad:openjpeg=disabled -Dgst-plugins-bad:openmpt=disabled -Dgst-plugins-bad:opus=disabled -Dgst-plugins-bad:smoothstreaming=disabled -Dgst-plugins-bad:sndfile=disabled -Dgst-plugins-bad:soundtouch=disabled -Dgst-plugins-bad:srt=disabled -Dgst-plugins-bad:srtp=disabled -Dgst-plugins-bad:webp=disabled -Dgst-plugins-bad:webrtc=disabled -Dgst-plugins-bad:wildmidi=disabled -Dgst-plugins-bad:x11=disabled -Dgst-plugins-bad:x265=disabled -Dgst-plugins-bad:asio=disabled -Dpython=disabled -Dlibnice=disabled -Ddevtools=disabled -Drtsp_server=disabled -Domx=disabled -Dvaapi=disabled -Dsharp=disabled -Drs=disabled -Dgst-examples=disabled -Dtls=disabled -Dqt5=disabled -Dtests=disabled -Dexamples=disabled -Dintrospection=disabled -Dorc=disabled -Ddoc=disabled -Dgtk_doc=disabled -Dgstreamer:check=disabled -Dgstreamer:libunwind=disabled -Dgstreamer:libdw=disabled -Dgstreamer:dbghelp=disabled -Dgstreamer:bash-completion=disabled -Dgstreamer:coretracers=disabled -Dgstreamer:benchmarks=disabled -Dgstreamer:gst_debug=true -Dgst-plugins-base:gl_winsys=win32 -Dgst-plugins-base:gl_platform=wgl -Dgst-plugins-base:cdparanoia=disabled -Dgst-plugins-base:libvisual=disabled -Dgst-plugins-base:theora=disabled -Dgst-plugins-base:tremor=disabled -Dgst-plugins-base:xvideo=disabled -Dgst-plugins-good:aalib=disabled -Dgst-plugins-good:directsound=auto -Dgst-plugins-good:dv=disabled -Dgst-plugins-good:dv1394=disabled -Dgst-plugins-good:gtk3=disabled -Dgst-plugins-good:jack=disabled -Dgst-plugins-good:lame=disabled -Dgst-plugins-good:libcaca=disabled -Dgst-plugins-good:oss=disabled -Dgst-plugins-good:oss4=disabled -Dgst-plugins-good:osxaudio=auto -Dgst-plugins-good:osxvideo=auto -Dgst-plugins-good:pulse=auto -Dgst-plugins-good:qt5=disabled -Dgst-plugins-good:shout2=disabled -Dgst-plugins-good:soup=disabled -Dgst-plugins-good:twolame=disabled -Dgst-plugins-good:waveform=auto -Dgst-plugins-good:wavpack=disabled -Dgst-plugins-ugly:a52dec=disabled -Dgst-plugins-ugly:amrnb=disabled -Dgst-plugins-ugly:amrwbdec=disabled -Dgst-plugins-ugly:cdio=disabled -Dgst-plugins-ugly:dvdread=disabled -Dgst-plugins-ugly:mpeg2dec=disabled -Dgst-plugins-ugly:sidplay=disabled -Dgst-plugins-bad:aom=disabled -Dgst-plugins-bad:avtp=disabled -Dgst-plugins-bad:androidmedia=auto -Dgst-plugins-bad:applemedia=auto -Dgst-plugins-bad:asio-sdk-path= -Dgst-plugins-bad:bluez=disabled -Dgst-plugins-bad:bs2b=disabled -Dgst-plugins-bad:curl=disabled -Dgst-plugins-bad:curl-ssh2=disabled -Dgst-plugins-bad:d3dvideosink=auto -Dgst-plugins-bad:d3d11=auto -Dgst-plugins-bad:decklink=disabled -Dgst-plugins-bad:directfb=disabled -Dgst-plugins-bad:directsound=auto -Dgst-plugins-bad:dts=disabled -Dgst-plugins-bad:dvb=auto -Dgst-plugins-bad:faac=disabled -Dgst-plugins-bad:fbdev=auto -Dgst-plugins-bad:flite=disabled -Dgst-plugins-bad:gl=auto -Dgst-plugins-bad:gme=disabled -Dgst-plugins-bad:gs=disabled -Dgst-plugins-bad:gsm=disabled -Dgst-plugins-bad:ipcpipeline=auto -Dgst-plugins-bad:iqa=disabled -Dgst-plugins-bad:kate=disabled -Dgst-plugins-bad:kms=disabled -Dgst-plugins-bad:ladspa=disabled -Dgst-plugins-bad:ldac=disabled -Dgst-plugins-bad:lv2=disabled -Dgst-plugins-bad:mediafoundation=auto -Dgst-plugins-bad:mpeg2enc=disabled -Dgst-plugins-bad:mplex=disabled -Dgst-plugins-bad:msdk=disabled -Dgst-plugins-bad:musepack=disabled -Dgst-plugins-bad:neon=disabled -Dgst-plugins-bad:nvcodec=enabled -Dgst-plugins-bad:onnx=disabled -Dgst-plugins-bad:openaptx=disabled -Dgst-plugins-bad:opencv=disabled -Dgst-plugins-bad:openexr=disabled -Dgst-plugins-bad:openni2=disabled -Dgst-plugins-bad:opensles=disabled -Dgst-plugins-bad:qroverlay=disabled -Dgst-plugins-bad:resindvd=disabled -Dgst-plugins-bad:rsvg=disabled -Dgst-plugins-bad:rtmp=disabled -Dgst-plugins-bad:sbc=disabled -Dgst-plugins-bad:sctp=auto -Dgst-plugins-bad:shm=disabled -Dgst-plugins-bad:spandsp=disabled -Dgst-plugins-bad:svthevcenc=disabled -Dgst-plugins-bad:teletext=disabled -Dgst-plugins-bad:tinyalsa=disabled -Dgst-plugins-bad:transcode=disabled -Dgst-plugins-bad:ttml=disabled -Dgst-plugins-bad:uvch264=disabled -Dgst-plugins-bad:va=disabled -Dgst-plugins-bad:voaacenc=disabled -Dgst-plugins-bad:voamrwbenc=disabled -Dgst-plugins-bad:vulkan=auto -Dgst-plugins-bad:wasapi=auto -Dgst-plugins-bad:wasapi2=auto -Dgst-plugins-bad:wayland=auto -Dgst-plugins-bad:winks=disabled -Dgst-plugins-bad:winscreencap=auto -Dgst-plugins-bad:zbar=disabled -Dgst-plugins-bad:zxing=disabled -Dgst-plugins-bad:wpe=disabled -Dgst-plugins-bad:magicleap=disabled -Dgst-plugins-bad:v4l2codecs=disabled -Dgst-plugins-bad:isac=disabled -Ddebug=true '-Dcmake_prefix_path=['"'"'C:/vcpkg/installed/x64-windows/debug'"'"','"'"'C:/vcpkg/installed/x64-windows'"'"','"'"'C:/vcpkg/installed/x64-windows/share'"'"']' -Dprefix=C:/vcpkg/packages/gstreamer_x64-windows/debug -Dincludedir=../include -Dlibdir=lib -Dbackend=ninja -Dbuildtype=plain -Dwrap_mode=nodownload '--native-file C:/vcpkg/buildtrees/gstreamer/meson-x64-windows-dbg.log'
Python system: Windows
The Meson build system
Version: 0.62.1
Source dir: C:\vcpkg\buildtrees\gstreamer\src\1.20.5-a6a8a0db6f.clean
Build dir: C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg
Build type: native build
Project name: gstreamer-full
Project version: 1.20.5
Sanity testing C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
Is cross compiler: False.
Sanity check compiler command line: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe sanitycheckc.c /Fesanitycheckc.exe /MDd -nologo -DWIN32 -D_WINDOWS -W3 -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 -IC:/vcpkg/installed/x64-windows/include /nologo /showIncludes /utf-8 /link -machine:x64 -debug -INCREMENTAL /LIBPATH:C:/vcpkg/installed/x64-windows/debug/lib
Sanity check compile stdout:
sanitycheckc.c

-----
Sanity check compile stderr:

-----
Running test binary command: C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-private\sanitycheckc.exe
C compiler for the host machine: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe (msvc 19.29.30151 "Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30151 for x64")
C linker for the host machine: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/link.exe link 14.29.30151.0
Sanity testing C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
Is cross compiler: False.
Sanity check compiler command line: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe sanitycheckc.c /Fesanitycheckc.exe /MDd /nologo /showIncludes /utf-8 /link
Sanity check compile stdout:
sanitycheckc.c

-----
Sanity check compile stderr:

-----
Running test binary command: C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-private\sanitycheckc.exe
C compiler for the build machine: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe (msvc 19.29.30151 "Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30151 for x64")
C linker for the build machine: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/link.exe link 14.29.30151.0
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte
Unusable script 'C:/vcpkg/downloads/tools/python/python-3.11.4-x64/python.exe'
Program python found: YES (C:/vcpkg/downloads/tools/python/python-3.11.4-x64/python.exe)
Running command: C:/vcpkg/downloads/tools/python/python-3.11.4-x64/python.exe -c
import os
assert('GST_ENV' not in os.environ)

--- stdout ---

--- stderr ---

Running command: C:/vcpkg/downloads/tools/python/python-3.11.4-x64/python.exe -c import shutil; shutil.copy("scripts/git-hooks/multi-pre-commit.hook", ".git/hooks/pre-commit")
--- stdout ---

--- stderr ---
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "shutil.py", line 419, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "shutil.py", line 258, in copyfile
    with open(dst, 'wb') as fdst:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.git/hooks/pre-commit'

Program uname found: NO
Running compile:
Working directory:  C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-private\tmptofun6ln
Command line:  C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -IC:/vcpkg/installed/x64-windows/include C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-private\tmptofun6ln\testfile.c /FoC:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-private\tmptofun6ln\output.obj /nologo /showIncludes /utf-8 /c -nologo -DWIN32 -D_WINDOWS -W3 -utf-8 -MP -D_DEBUG -MDd -Z7 -Ob0 -Od -RTC1 /nologo /showIncludes /utf-8 /c /Od /Oi- /utf-8

Code:
 extern int i;
int i;

Compiler stdout:
 testfile.c

Compiler stderr:

Compiler for C supports arguments /utf-8: YES

Executing subproject win-flex-bison-binaries

Project name: win-flex-bison-binary
Project version: 2.5.18
'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte
Unusable script 'C:\\vcpkg\\downloads\\tools\\python\\python-3.11.4-x64\\python.exe'
Message: Downloading and extracting win-flex-bison binaries...
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
Running command: C:\vcpkg\downloads\tools\python\python-3.11.4-x64\python.exe C:\vcpkg\buildtrees\gstreamer\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\download-binary.py 2.5.18 095cf65cb3f12ee5888022f93109acbe6264e5f18f6ffce0bda77feb31b65bd8
--- stdout ---

--- stderr ---
Traceback (most recent call last):
  File "C:\vcpkg\buildtrees\gstreamer\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\download-binary.py", line 5, in <module>
    import ssl
  File "ssl.py", line 100, in <module>
    import _ssl             # if we can't import it, let the error propagate
    ^^^^^^^^^^^
ImportError: DLL load failed while importing _ssl: The specified procedure could not be found.

Message:

..\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\meson.build:12:2: ERROR: Problem encountered: Traceback (most recent call last):
  File "C:\vcpkg\buildtrees\gstreamer\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\download-binary.py", line 5, in <module>
    import ssl
  File "ssl.py", line 100, in <module>
    import _ssl             # if we can't import it, let the error propagate
    ^^^^^^^^^^^
ImportError: DLL load failed while importing _ssl: The specified procedure could not be found.

C:\vcpkg\buildtrees\gstreamer\config-x64-windows-dbg-out.log
WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: https://mesonbuild.com/Builtin-options.html#build-type-options
The Meson build system
Version: 0.62.1
Source dir: C:\vcpkg\buildtrees\gstreamer\src\1.20.5-a6a8a0db6f.clean
Build dir: C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg
Build type: native build
Project name: gstreamer-full
Project version: 1.20.5
C compiler for the host machine: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe (msvc 19.29.30151 "Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30151 for x64")
C linker for the host machine: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/link.exe link 14.29.30151.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (C:/vcpkg/downloads/tools/python/python-3.11.4-x64/python.exe)
Program uname found: NO
Compiler for C supports arguments /utf-8: YES

Executing subproject win-flex-bison-binaries

win-flex-bison-binaries| Project name: win-flex-bison-binary
win-flex-bison-binaries| Project version: 2.5.18
win-flex-bison-binaries| Message: Downloading and extracting win-flex-bison binaries...
win-flex-bison-binaries| WARNING: You should add the boolean check kwarg to the run_command call.
win-flex-bison-binaries| It currently defaults to false,
win-flex-bison-binaries| but it will default to true in future releases of meson.
win-flex-bison-binaries| See also: https://github.com/mesonbuild/meson/issues/9300
win-flex-bison-binaries| Message:

..\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\meson.build:12:2: ERROR: Problem encountered: Traceback (most recent call last):
  File "C:\vcpkg\buildtrees\gstreamer\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\download-binary.py", line 5, in <module>
    import ssl
  File "ssl.py", line 100, in <module>
    import _ssl             # if we can't import it, let the error propagate
    ^^^^^^^^^^^
ImportError: DLL load failed while importing _ssl: The specified procedure could not be found.

A full log can be found at C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-logs\meson-log.txt

PS G:\vcpkg> ./vcpkg version
vcpkg package management program version 2023-08-09-9990a4c9026811a312cb2af78bf77f3d9d288416

See LICENSE.txt for license information.

Sorry I didn't repro your issue.
PS G:\vcpkg> ./vcpkg install --recurse opencv[gstreamer,ffmpeg,python]:x64-windows
Computing installation plan...
The following packages will be built and installed:
  * dirent:x64-windows -> 1.23.2#3
  * expat:x64-windows -> 2.5.0#3
  * ffmpeg[avcodec,avdevice,avfilter,avformat,core,swresample,swscale]:x64-windows -> 5.1.2#7
  * flatbuffers:x64-windows -> 23.5.26
  * gettext:x64-windows -> 0.21.1#3
  * gettext-libintl:x64-windows -> 0.21.1#1
  * glib:x64-windows -> 2.76.3#3
  * gstreamer[core,plugins-base]:x64-windows -> 1.20.5#11
  * libiconv:x64-windows -> 1.17#1
    opencv[core,default-features,ffmpeg,gstreamer,python]:x64-windows -> 4.8.0
  * opencv4[core,default-features,dnn,ffmpeg,gstreamer,jpeg,png,python,quirc,tiff,webp]:x64-windows -> 4.8.0#5
  * pcre2[core,jit,platform-default-features]:x64-windows -> 10.42
  * protobuf:x64-windows -> 3.21.12
  * python3:x64-windows -> 3.11.4#4
  * quirc:x64-windows -> 1.1#3
  * vcpkg-get-python-packages:x64-windows -> 2023-07-28
  * vcpkg-msbuild:x64-windows -> 2023-08-08

...

Installing 10/17 gstreamer:x64-windows...
Building gstreamer[core,plugins-base]:x64-windows...
-- Downloading https://gitlab.freedesktop.org//gstreamer/gstreamer/-/archive/1.20.5/gstreamer-1.20.5.tar.gz -> gstreamer-gstreamer-1.20.5.tar.gz...
-- Extracting source G:/vcpkg/downloads/gstreamer-gstreamer-1.20.5.tar.gz
-- Applying patch fix-clang-cl.patch
-- Applying patch fix-clang-cl-gstreamer.patch
-- Applying patch fix-clang-cl-base.patch
-- Applying patch fix-clang-cl-good.patch
-- Applying patch fix-clang-cl-bad.patch
-- Applying patch fix-clang-cl-ugly.patch
-- Applying patch gstreamer-disable-no-unused.patch
-- Applying patch srtp_fix.patch
-- Applying patch fix-bz2-windows-debug-dependency.patch
-- Applying patch plugin-base-disable-no-unused.patch
-- Using source at G:/vcpkg/buildtrees/gstreamer/src/1.20.5-a6a8a0db6f.clean
-- Using cached win_flex_bison-2.5.25.zip.
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows-dbg
-- Using cached mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at G:/vcpkg/downloads/tools/msys2/6f3fa1a12ef85a6f
-- Configuring x64-windows-dbg done
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Package x64-windows-dbg
-- Package x64-windows-rel
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-allocators-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-app-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-audio-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-controller-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-fft-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-gl-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-gl-prototypes-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-net-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-pbutils-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-plugins-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-riff-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-rtp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-rtsp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-sdp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-tag-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-video-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-allocators-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-app-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-audio-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-controller-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-fft-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-gl-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-gl-prototypes-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-net-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-pbutils-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-plugins-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-riff-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-rtp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-rtsp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-sdp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-tag-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-video-1.0.pc
-- Installing: G:/vcpkg/packages/gstreamer_x64-windows/share/gstreamer/copyright
-- Performing post-build validation
Stored binaries in 1 destinations in 4.5 s.

...

Installing 17/17 opencv:x64-windows...
Building opencv[core,default-features,ffmpeg,gstreamer,python]:x64-windows...
-- Installing: G:/vcpkg/packages/opencv_x64-windows/share/opencv/OpenCVConfig.cmake
-- Installing: G:/vcpkg/packages/opencv_x64-windows/share/opencv/OpenCVConfig-version.cmake
-- Installing: G:/vcpkg/packages/opencv_x64-windows/share/opencv/OpenCVModules.cmake
-- Installing: G:/vcpkg/packages/opencv_x64-windows/share/opencv/OpenCVModules-release.cmake
-- Installing: G:/vcpkg/packages/opencv_x64-windows/share/opencv/OpenCVModules-debug.cmake
-- Performing post-build validation
Stored binaries in 1 destinations in 79.5 ms.
Elapsed time to handle opencv:x64-windows: 829 ms
Total install time: 38 min
opencv provides CMake targets:

    # this is heuristically generated, and may not be correct
    find_package(OpenCV CONFIG REQUIRED)
    # note: 10 additional targets are not displayed.
    target_link_libraries(main PRIVATE opencv_ml opencv_dnn opencv_core opencv_flann)

..\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\meson.build:12:2: ERROR: Problem encountered: Traceback (most recent call last):
  File "C:\vcpkg\buildtrees\gstreamer\src\1.20.5-a6a8a0db6f.clean\subprojects\win-flex-bison-binaries\download-binary.py", line 5, in <module>
    import ssl
  File "ssl.py", line 100, in <module>
    import _ssl             # if we can't import it, let the error propagate
    ^^^^^^^^^^^
ImportError: DLL load failed while importing _ssl: The specified procedure could not be found.

A full log can be found at C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-logs\meson-log.txt

Could you please provide the complete error log? C:\vcpkg\buildtrees\gstreamer\x64-windows-dbg\meson-logs\meson-log.txt

I get the same issue on my machine when I'm trying to installl gstreamer.
I'm using VS2022 17.7.2 and the same vcpkg version as MonicaLio0311 (see above).
PS D:\dev\gst\vcpkg> .\vcpkg.exe version
vcpkg package management program version 2023-08-09-9990a4c9026811a312cb2af78bf77f3d9d288416

See LICENSE.txt for license information.

I have reproduced the issue both with the vcpkg repo from a few days ago
commit 436a061a544c124200200517b9ee55c5bb1b7a26 (HEAD -> master, origin/master, origin/HEAD)
Author: Weihang Ding <798047000@qq.com>
Date:   Sat Aug 26 03:43:10 2023 +0800

and with the latest commit of vcpkg from today
commit 927bc12e31148b0d44ae9d174b96c20e3bcf08eb (HEAD -> master, origin/master, origin/HEAD)
Author: jim wang <122244446+jimwang118@users.noreply.github.com>
Date:   Tue Aug 29 15:20:42 2023 +0800

Attached is the log file from vcpkg/buildtrees/gstreamer/x64-windows-dbg/meson-logs
meson-log.txt

You can try to reinstall python3 and openssl, then install gstreamer again.
./vcpkg remove python3 openssl gstreamer --triplet=x64-windows --recurse
./vcpkg install python3 openssl gstreamer --triplet=x64-windows --recurse

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.

I reproduced the problem today, foe anyone that don't want to loose more than an hour trying to fix by manually looking a dll dependency, and trying t oadd variable path, ...
You can just
vcpkg install gstreamer[core,dtls,gpl,libav,libde265,mpg123,speex,vpx,taglib,webp,faad,openh264,openmpt,plugins-base,plugins-bad,plugins-good,plugins-ugly,openjpeg,jpeg,png,x265,x265]:x64-windows --editable --recurse
Thank you for your work gstreamer, but a litle page on the github or website "how to vcpkg install gstreamer for dummy" with just a single line
vcpkg install gstreamer[core,dtls,gpl,libav,libde265,mpg123,speex,vpx,taglib,webp,faad,openh264,openmpt,plugins-base,plugins-bad,plugins-good,plugins-ugly,openjpeg,jpeg,png,x265,x265]:x64-windows --editable --recurse
would have been gret

[sad]   Ture Fronczek-Munter reacted to your message:

From: Samael @.>
Sent: Saturday, March 23, 2024 11:01:34 AM
To: microsoft/vcpkg @.>
Cc: Ture Fronczek-Munter @.>; Comment @.>
Subject: [External]Re: [microsoft/vcpkg] [gstreamer] Build error (Issue #33434)
I reproduced the problem today, foe anyone that don't want to loose more than an hour trying to fix by manually looking a dll dependency, and trying t oadd variable path, ...
You can just
vcpkg install gstreamer[core,dtls,gpl,libav,libde265,mpg123,speex,vpx,taglib,webp,faad,openh264,openmpt,plugins-base,plugins-bad,plugins-good,plugins-ugly,openjpeg,jpeg,png,x265,x265]:x64-windows --editable --recurse
Thank you for your work gstreamer, but a litle page on the github or website "how to vcpkg install gstreamer for dummy" with just a single line
vcpkg install gstreamer[core,dtls,gpl,libav,libde265,mpg123,speex,vpx,taglib,webp,faad,openh264,openmpt,plugins-base,plugins-bad,plugins-good,plugins-ugly,openjpeg,jpeg,png,x265,x265]:x64-windows --editable --recurse
would have been gret
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vcpkg/issues/33434#issuecomment-2016451259, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOXWVCIDOXTZXAC24OM4PETYZVOI5AVCNFSM6AAAAAA4CQXJESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGQ2TCMRVHE.
You are receiving this because you commented.Message ID: @.***>

PS G:\vcpkg> ./vcpkg version
vcpkg package management program version 2024-03-14-7d353e869753e5609a1f1a057df3db8fd356e49d

See LICENSE.txt for license information.

I can't reproduce this issue...
PS G:\vcpkg> ./vcpkg install gstreamer[core,dtls,gpl,libav,libde265,mpg123,speex,vpx,taglib,webp,faad,openh264,openmpt,plugins-base,plugins-bad,plugins-good,plugins-ugly,openjpeg,jpeg,png,x265,x265]:x64-windows --editable --recurse
Computing installation plan...
The following packages will be rebuilt:
    gstreamer[core,dtls,faad,gpl,jpeg,libav,libde265,mpg123,openh264,openjpeg,openmpt,plugins-bad,plugins-base,plugins-good,plugins-ugly,png,speex,taglib,vpx,webp,x265]:x64-windows@1.22.5#8

...

-- Using cached gstreamer-gstreamer-1.22.5.tar.gz.
-- Extracting source G:/vcpkg/downloads/gstreamer-gstreamer-1.22.5.tar.gz
-- Applying patch fix-clang-cl.patch
-- Applying patch fix-clang-cl-gstreamer.patch
-- Applying patch fix-clang-cl-base.patch
-- Applying patch fix-clang-cl-good.patch
-- Applying patch fix-clang-cl-bad.patch
-- Applying patch fix-clang-cl-ugly.patch
-- Applying patch gstreamer-disable-no-unused.patch
-- Applying patch srtp_fix.patch
-- Applying patch fix-bz2-windows-debug-dependency.patch
-- Applying patch base-must-be-enabled.patch
-- Applying patch no-downloads.patch
-- Applying patch plugin-base-disable-no-unused.patch
-- Using source at G:/vcpkg/buildtrees/gstreamer/src/1.22.5-415fd60d58
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows-dbg
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.1.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.10-4-x86_64.pkg.tar.zst.
-- Using msys root at G:/vcpkg/downloads/tools/msys2/fdbea3694fb5c0d4
-- Configuring x64-windows-dbg done
-- Configuring x64-windows-rel
-- Configuring x64-windows-rel done
-- Package x64-windows-dbg
-- Package x64-windows-rel
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-allocators-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-app-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-audio-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-bad-audio-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-codecparsers-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-controller-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-cuda-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-d3d11-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-fft-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-gl-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-gl-prototypes-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-insertbin-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-mpegts-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-net-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-pbutils-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-photography-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-play-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-player-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-plugins-bad-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-plugins-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-riff-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-rtp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-rtsp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-sctp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-sdp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-tag-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-transcoder-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-video-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/lib/pkgconfig/gstreamer-webrtc-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-allocators-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-app-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-audio-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-bad-audio-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-codecparsers-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-controller-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-cuda-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-d3d11-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-fft-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-gl-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-gl-prototypes-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-insertbin-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-mpegts-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-net-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-pbutils-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-photography-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-play-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-player-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-plugins-bad-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-plugins-base-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-riff-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-rtp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-rtsp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-sctp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-sdp-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-tag-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-transcoder-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-video-1.0.pc
-- Fixing pkgconfig file: G:/vcpkg/packages/gstreamer_x64-windows/debug/lib/pkgconfig/gstreamer-webrtc-1.0.pc
-- Installing: G:/vcpkg/packages/gstreamer_x64-windows/share/gstreamer/copyright
-- Performing post-build validation
Elapsed time to handle gstreamer:x64-windows: 12 min
Total install time: 31 min
gstreamer provides pkg-config modules:

    # Streaming media framework
    gstreamer-1.0

    # Allocators implementation
    gstreamer-allocators-1.0

    # Helper functions and base classes for application integration
    gstreamer-app-1.0

    # Audio helper functions and base classes
    gstreamer-audio-1.0

    # Bad audio library for GStreamer elements
    gstreamer-bad-audio-1.0

    # Base classes for GStreamer elements
    gstreamer-base-1.0

    # Bitstream parsers for GStreamer elements
    gstreamer-codecparsers-1.0

    # Dynamic parameter control for GStreamer elements
    gstreamer-controller-1.0

    # Unstable library to work with CUDA inside GStreamer
    gstreamer-cuda-1.0

    # GStreamer Direct3D11 library
    gstreamer-d3d11-1.0

    # FFT implementation
    gstreamer-fft-1.0

    # Streaming media framework, OpenGL plugins libraries
    gstreamer-gl-1.0

    # Streaming media framework, OpenGL plugins libraries (OpenGL Prototypes)
    gstreamer-gl-prototypes-1.0

    # Bin to automatically and insertally link elements
    gstreamer-insertbin-1.0

    # GStreamer MPEG-TS support
    gstreamer-mpegts-1.0

    # Network-enabled GStreamer plug-ins and clocking
    gstreamer-net-1.0

    # General utility functions
    gstreamer-pbutils-1.0

    # High level API for transcoding using GStreamer
    gstreamer-photography-1.0

    # GStreamer Player convenience library
    gstreamer-play-1.0

    # GStreamer Player convenience library
    gstreamer-player-1.0

    # Streaming media framework, bad plugins libraries
    gstreamer-plugins-bad-1.0

    # Streaming media framework, base plugins libraries
    gstreamer-plugins-base-1.0

    # RIFF helper functions
    gstreamer-riff-1.0

    # RTP base classes and helper functions
    gstreamer-rtp-1.0

    # RTSP base classes and helper functions
    gstreamer-rtsp-1.0

    # SCTP helper functions
    gstreamer-sctp-1.0

    # SDP helper functions
    gstreamer-sdp-1.0

    # Tag base classes and helper functions
    gstreamer-tag-1.0

    # High level API for transcoding using GStreamer
    gstreamer-transcoder-1.0

    # Video base classes and helper functions
    gstreamer-video-1.0

    # GStreamer WebRTC support
    gstreamer-webrtc-1.0

authors: MonicaLiu0311 andreicipia maximeduvey ture-f-munter


text:
[arrow] 14.0.2 unable to detect the active compiler's information

Operating system
Linux
Compiler
glibc 2.28
Steps to reproduce the behavior
14.0.1 SHA 2d8202f06d45f4220fa8aa0fc222d1d8221fd144, builds correctly on Linux-ARM64 armv8a-glibc2.28 (
Linux, version 6.1.8-v8.1.el8.altarch.1)

14.0.2 SHA d6341bc4de5c5f71ffcd129b952a42e823b21bb4 has error:

error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.

Failure logs
-- Configuring arm64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: /bin/cmake /Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/scripts/detect_compiler -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/packages/detect_compiler_arm64-linux -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=arm64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON "-DVCPKG_CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=1" -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= "-DVCPKG_C_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=1" -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=arm64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg -DZ_VCPKG_ROOT_DIR=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg -D_VCPKG_INSTALLED_DIR=/Developer/teamcity/work/e7a9578bd49a8fa6/Components/Library/Version/Linux-ARM64 -DVCPKG_MANIFEST_INSTALL=OFF
Working Directory: /Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/arm64-linux-rel
Error code: 1
See logs for more information:
/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-CMakeCache.txt.log
/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-out.log
/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:344 (vcpkg_execute_required_process)
scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
scripts/ports.cmake:170 (include)
Additional context
config-arm64-linux-rel-err.log:
CMake Error at CMakeLists.txt:11 (enable_language):
  The CMAKE_C_COMPILER:

    aarch64-linux-gnu-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

I'm observing a similar issue on a different project:
[cmake] Detecting compiler hash for triplet arm64-linux...
[cmake] error: while detecting compiler information:
[cmake] The log file content at "/tmp/vcpkg/buildtrees/detect_compiler/stdout-arm64-linux.log" is:
[cmake] -- Configuring arm64-linux-rel
[cmake] CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
[cmake]     Command failed: /usr/bin/cmake /tmp/vcpkg/scripts/detect_compiler -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/vcpkg/packages/detect_compiler_arm64-linux -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/tmp/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=arm64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/tmp/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=arm64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=/tmp/vcpkg -DZ_VCPKG_ROOT_DIR=/tmp/vcpkg -D_VCPKG_INSTALLED_DIR=/workspaces/abc/build/vcpkg_installed -DVCPKG_MANIFEST_INSTALL=OFF
[cmake]     Working Directory: /tmp/vcpkg/buildtrees/detect_compiler/arm64-linux-rel
[cmake]     Error code: 1
[cmake]     See logs for more information:
[cmake]       /tmp/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-CMakeCache.txt.log
[cmake]       /tmp/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-out.log
[cmake]       /tmp/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-err.log
[cmake]
[cmake] Call Stack (most recent call first):
[cmake]   scripts/cmake/vcpkg_configure_cmake.cmake:344 (vcpkg_execute_required_process)
[cmake]   scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
[cmake]   scripts/ports.cmake:170 (include)
[cmake]
[cmake]
[cmake] error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.
[cmake] -- Running vcpkg install - failed
[cmake] CMake Error at /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
[cmake]   vcpkg install failed.  See logs for more information:
[cmake]   /workspaces/abc/build/vcpkg-manifest-install.log
[cmake] Call Stack (most recent call first):
[cmake]   /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:148 (include)
[cmake]   CMakeLists.txt:3 (project)
[cmake]
[cmake]
[cmake] CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_TOOLCHAIN_FILE:STRING=/tmp/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET:STRING=x64-linux-release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/aarch64-alpine-linux-musl-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/aarch64-alpine-linux-musl-g++ -S/workspaces/abc -B/workspaces/abc/build -G Ninja exited with code: 1

As you can see, the compiler detection fails on arm64/aarch64, even when CMAKE_C_COMPILER and CMAKE_CXX_COMPILER are explicitly specified.
$ cat /tmp/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-out.log
-- Cross compiling arm64 on host aarch64, use cross compiler: aarch64-linux-gnu-g++/aarch64-linux-gnu-gcc
-- The C compiler identification is unknown
-- Configuring incomplete, errors occurred!

$ cat /tmp/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-err.log
CMake Error at CMakeLists.txt:11 (enable_language):
  The CMAKE_C_COMPILER:

    aarch64-linux-gnu-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

I suspect that the regression was introduced in https://github.com/microsoft/vcpkg/pull/35084.

If you install Ninja, the error will probably go away

If you install Ninja, the error will probably go away

Ninja is installed. The same build succeeds when vcpkg is switched from HEAD to the 2023.07.21 branch.

So you have an aarch64 host, but no  aarch64-linux-gnu-gcc executable in the PATH?

So you have an aarch64 host, but no aarch64-linux-gnu-gcc executable in the PATH?

Yes, that’s an alpine container image.

As you can see, the compiler detection fails on arm64/aarch64, even when CMAKE_C_COMPILER and CMAKE_CXX_COMPILER are explicitly specified.

This was the ninja error. Did you retry?
scripts/toolchains/linux.cmake doesn't override CMAKE_xxx_COMPILER if it is already defined.

Ok, now it makes sense. detect_compiler failed because I didn't have aarch64-linux-gnu-gcc, but it shouldn't matter because I specify CMAKE_xxx_COMPILER explicitly anyway. And then, I got that error about ninja which I mistakenly correlated with the detect_compiler failure. Sorry for hijacking the issue, it looked relevant at the first sight.

I suspect that the regression was introduced in https://github.com/microsoft/vcpkg/pull/35084.

I also ran into this error for compiling GDAL in a docker container (for python wheel builds), and applying a patch that essentially reverts https://github.com/microsoft/vcpkg/pull/35084 seems to have fixed the issue.

The real question seems to be: "Why does this fail?"
if(NOT DEFINED CMAKE_C_COMPILER)
    set(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc")
endif()

It is supposed to only change the compiler if it is not already set. Does this run before CMake checks for the compiler?

The real question seems to be: "Why does this fail?"

Which failure do you refer to? The variable is set successfully. However, configuration must fail if ninja or that compiler are missing.

It is supposed to only change the compiler if it is not already set. Does this run before CMake checks for the compiler?

Yes. On first run. This is how CMake toolchain file processing works.

The real question is why not just use gcc? The default guess is not a good guess when the image needs aarch64-alpine-linux-musl-gcc.
I have an idea what to change for hosts which are reported as aarch64. But it would be nice to not have to touch it again for arm32, and I don't those systems' identifier.

I think just fixing aarch64 is good already.
It is way more used nowadays, and a fix for that would be a good example for someone wanting to fix 32 bit arm.
Just for reference, relatively weird systems like Alpine aren't the only ones with the problem. Fedora also doesn't have aarch64-linux-gnu-gcc in its PATH. Pretty sure that is a Debian (and therefore also Ubuntu) specific thing.

Embarrassing error message!

I think this has been fixed by https://github.com/microsoft/vcpkg/pull/38113 in the meantime (in any case, with a recent vcpkg checkout, the issue I mentioned above about installing GDAL is resolved)

source: gharchive/issue

authors: JulianGro azolotko davesworking dg0yt jorisvandenbossche sfhacker

repo: microsoft/vcpkg

license: MIT

license_type: permissive

license_source: github-api


text:
The find_package directive using cmake in vs2022 cannot find the package

Describe the bug
I want to use the protobuf package in my C++ project, and I have downloaded the binary executable of protoc from github, on the WIndows platform. I according to the contents of the https://github.com/protocolbuffers/protobuf/blob/main/src/README.md, The protobuf package is installed by running vcpkg install protobuf:x64-windows. But I used the CMake find_package directive in vs2022 to look up the protobuf package and couldn't find it.
Environment

OS: WIndows
Compiler: Visual Studio 2022，MSVC

To Reproduce

vcpkg install protobuf:x64-windows

Create a cmake project in vs2022 using the cmake project template and add the following to the cmakelists.txt.

cmake_minimum_required (VERSION 3.8)

if (POLICY CMP0141)
  cmake_policy(SET CMP0141 NEW)
  set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()

project ("testProtobuf")

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(protobuf CONFIG REQUIRED)

add_executable (testProtobuf "testProtobuf.cpp" "testProtobuf.h")

target_link_libraries(testProtobuf PRIVATE
	protobuf::libprotoc
	protobuf::libprotobuf
	protobuf::libprotobuf-lite
)

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET testProtobuf PROPERTY CXX_STANDARD 20)
endif()

3.Add the path to vcpkg.cmake in the cmake default file.

4.Build project.
Expected behavior
I hope it finds the prorobuf package correctly and builds the project successfully.
Failure logs
This is the output of cmake when I build
1> 已为配置“x64-debug”启动 CMake 生成。
1> 环境设置:
1>     asl.log=Destination=file
1>     CommandPromptType=Native
1>     DevEnvDir=D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\
1>     ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
1>     EXTERNAL_INCLUDE=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um
1>     Framework40Version=v4.0
1>     FrameworkDir=C:\Windows\Microsoft.NET\Framework64\
1>     FrameworkDir64=C:\Windows\Microsoft.NET\Framework64\
1>     FrameworkVersion=v4.0.30319
1>     FrameworkVersion64=v4.0.30319
1>     HTMLHelpDir=C:\Program Files (x86)\HTML Help Workshop
1>     INCLUDE=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um
1>     is_x64_arch=true
1>     LIB=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\lib\x64;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64
1>     LIBPATH=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\lib\x64;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
1>     NETFXSDKDir=C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\
1>     Path=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\VCPackages;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;D:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\;C:\Program Files (x86)\HTML Help Workshop;D:\Program Files\Microsoft Visual Studio\2022\Community\Team Tools\DiagnosticsHub\Collector;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files (x86)\Windows Kits\10\bin\\x64;D:\Program Files\Microsoft Visual Studio\2022\Community\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\;D:\VulkanSDK\1.3.283.0\Bin;D:\VMware Pro\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\Bandizip\;D:\ffmpegCommandTools\bin;C:\Users\sj2003\AppData\Local\Programs\Python\Python312;C:\Users\sj2003\AppData\Local\Programs\Python\Python312\Scripts;D:\Git\cmd;C:\Program Files\dotnet\;D:\Program Files\CMake\bin;D:\Program Files\Microsoft VS Code\bin;D:\Program Files\Go\bin;D:\MySQL\mysql-8.0.28-winx64\bin;D:\QT6\Tools\mingw1120_64\bin;C:\Program Files\PowerShell\7\;C:\Users\sj2003\.dotnet\tools;C:\Users\sj2003\AppData\Local\ActiveState\StateTool\release\bin;C:\Users\sj2003\AppData\Local\activestate\cache\bin;C:\Users\sj2003\AppData\Local\Programs\Python\Launcher\;C:\Users\sj2003\AppData\Local\Microsoft\WindowsApps;D:\NASM;D:\Program Files\JetBrains\GoLand 2024.1.4\bin;;C:\Users\sj2003\go\bin;;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\bin;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\Linux\bin\ConnectionManagerExe;D:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg
1>     PROMPT=$P$G
1>     UCRTVersion=10.0.22621.0
1>     UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
1>     VCIDEInstallDir=D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\
1>     VCINSTALLDIR=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\
1>     VCPKG_ROOT=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg
1>     VCToolsInstallDir=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\
1>     VCToolsRedistDir=D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.40.33807\
1>     VCToolsVersion=14.40.33807
1>     VS170COMNTOOLS=D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\
1>     VSCMD_ARG_app_plat=Desktop
1>     VSCMD_ARG_HOST_ARCH=x64
1>     VSCMD_ARG_no_logo=1
1>     VSCMD_ARG_TGT_ARCH=x64
1>     VSCMD_DEBUG=5
1>     VSCMD_VER=17.10.1
1>     VSINSTALLDIR=D:\Program Files\Microsoft Visual Studio\2022\Community\
1>     VSSDK150INSTALL=D:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
1>     VSSDKINSTALL=D:\Program Files\Microsoft Visual Studio\2022\Community\VSSDK
1>     WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22621.0
1>     WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin\
1>     WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
1>     WindowsSDKLibVersion=10.0.22621.0\
1>     WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\
1>     WindowsSDKVersion=10.0.22621.0\
1>     WindowsSDK_ExecutablePath_x64=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\
1>     WindowsSDK_ExecutablePath_x86=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\
1>     __DOTNET_ADD_64BIT=1
1>     __DOTNET_PREFERRED_BITNESS=64
1>     __VSCMD_PREINIT_PATH=D:\VulkanSDK\1.3.283.0\Bin;D:\VMware Pro\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\Bandizip\;D:\ffmpegCommandTools\bin;C:\Users\sj2003\AppData\Local\Programs\Python\Python312;C:\Users\sj2003\AppData\Local\Programs\Python\Python312\Scripts;D:\Git\cmd;C:\Program Files\dotnet\;D:\Program Files\CMake\bin;D:\Program Files\Microsoft VS Code\bin;D:\Program Files\Go\bin;D:\MySQL\mysql-8.0.28-winx64\bin;D:\QT6\Tools\mingw1120_64\bin;C:\Program Files\PowerShell\7\;C:\Users\sj2003\.dotnet\tools;C:\Users\sj2003\AppData\Local\ActiveState\StateTool\release\bin;C:\Users\sj2003\AppData\Local\activestate\cache\bin;C:\Users\sj2003\AppData\Local\Programs\Python\Launcher\;C:\Users\sj2003\AppData\Local\Microsoft\WindowsApps;D:\NASM;D:\Program Files\JetBrains\GoLand 2024.1.4\bin;;C:\Users\sj2003\go\bin;
1>     SESSIONNAME=Console
1>     ProgramFiles(x86)=C:\Program Files (x86)
1>     ProgramW6432=C:\Program Files
1>     PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
1>     POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Home China
1>     TMP=C:\Users\sj2003\AppData\Local\Temp
1>     PROCESSOR_ARCHITECTURE=AMD64
1>     GoLand=D:\Program Files\JetBrains\GoLand 2024.1.4\bin;
1>     PkgDefApplicationConfigFile=C:\Users\sj2003\AppData\Local\Microsoft\VisualStudio\17.0_86a76ca0\devenv.exe.config
1>     USERPROFILE=C:\Users\sj2003
1>     PROCESSOR_REVISION=9e0a
1>     ServiceHubLogSessionKey=D0F0372A
1>     FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
1>     FPS_BROWSER_USER_PROFILE_STRING=Default
1>     LOGONSERVER=\\DESKTOP-POVH87K
1>     TEMP=C:\Users\sj2003\AppData\Local\Temp
1>     USERNAME=sj2003
1>     SystemRoot=C:\windows
1>     VSSKUEDITION=Community
1>     QtMsBuild=C:\Users\sj2003\AppData\Local\QtMsBuild
1>     VULKAN_SDK=D:\VulkanSDK\1.3.283.0
1>     OneDrive=C:\Users\sj2003\OneDrive
1>     USERDOMAIN_ROAMINGPROFILE=DESKTOP-POVH87K
1>     CommonProgramFiles=C:\Program Files\Common Files
1>     ZES_ENABLE_SYSMAN=1
1>     ProgramData=C:\ProgramData
1>     VS_Perf_Session_GCHeapCount=2
1>     VSAPPIDDIR=D:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\
1>     HOMEPATH=\Users\sj2003
1>     COMPUTERNAME=DESKTOP-POVH87K
1>     ALLUSERSPROFILE=C:\ProgramData
1>     CommonProgramW6432=C:\Program Files\Common Files
1>     ThreadedWaitDialogDpiContext=-4
1>     GCExpConfigUsedInSession=3
1>     VisualStudioDir=C:\Users\sj2003\Documents\Visual Studio 2022
1>     DriverData=C:\Windows\System32\Drivers\DriverData
1>     HOMEDRIVE=C:
1>     VK_SDK_PATH=D:\VulkanSDK\1.3.283.0
1>     windir=C:\windows
1>     SystemDrive=C:
1>     NUMBER_OF_PROCESSORS=12
1>     OS=Windows_NT
1>     ProgramFiles=C:\Program Files
1>     ComSpec=C:\windows\system32\cmd.exe
1>     VSAPPIDNAME=devenv.exe
1>     PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
1>     VSLANG=2052
1>     VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
1>     PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules
1>     APPDATA=C:\Users\sj2003\AppData\Roaming
1>     USERDOMAIN=DESKTOP-POVH87K
1>     PROCESSOR_LEVEL=6
1>     asl.log=Destination=file
1>     LOCALAPPDATA=C:\Users\sj2003\AppData\Local
1>     VisualStudioVersion=17.0
1>     VisualStudioEdition=Microsoft Visual Studio Community 2022
1>     VsPerMonitorDpiAwarenessEnabled.20944=TRUE
1>     CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
1>     PUBLIC=C:\Users\Public
1>     GOPATH=E:\go
1>     MSBuildLoadMicrosoftTargetsReadOnly=true
1> 命令行: "C:\windows\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "D:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_C_COMPILER:STRING="cl.exe" -DCMAKE_CXX_COMPILER:STRING="cl.exe" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="D:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg/scripts/buildsystems/vcpkg.cmake" -DCMAKE_INSTALL_PREFIX:PATH="C:/Users/sj2003/source/repos/testProtobuf/out/install/x64-debug"   -DCMAKE_MAKE_PROGRAM="D:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Users\sj2003\source\repos\testProtobuf" 2>&1"
1> 工作目录: C:/Users/sj2003/source/repos/testProtobuf/out/build/x64-debug
1> [CMake] -- The C compiler identification is MSVC 19.40.33811.0
1> [CMake] -- The CXX compiler identification is MSVC 19.40.33811.0
1> [CMake] -- Detecting C compiler ABI info
1> [CMake] -- Detecting C compiler ABI info - done
1> [CMake] -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
1> [CMake] -- Detecting C compile features
1> [CMake] -- Detecting C compile features - done
1> [CMake] -- Detecting CXX compiler ABI info
1> [CMake] -- Detecting CXX compiler ABI info - done
1> [CMake] -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] CMake Error at D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
1> [CMake]   Could not find a package configuration file provided by "protobuf" with any
1> [CMake]   of the following names:
1> [CMake]
1> [CMake]     protobufConfig.cmake
1> [CMake]     protobuf-config.cmake
1> [CMake]
1> [CMake]   Add the installation prefix of "protobuf" to CMAKE_PREFIX_PATH or set
1> [CMake]   "protobuf_DIR" to a directory containing one of the above files.  If
1> [CMake]   "protobuf" provides a separate development package or SDK, be sure it has
1> [CMake]   been installed.
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:16 (find_package)
1> [CMake] -- Configuring incomplete, errors occurred!
1> “C:\windows\system32\cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "D:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_C_COMPILER:STRING="cl.exe" -DCMAKE_CXX_COMPILER:STRING="cl.exe" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="D:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg/scripts/buildsystems/vcpkg.cmake" -DCMAKE_INSTALL_PREFIX:PATH="C:/Users/sj2003/source/repos/testProtobuf/out/install/x64-debug"   -DCMAKE_MAKE_PROGRAM="D:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Users\sj2003\source\repos\testProtobuf" 2>&1"”执行失败，出现错误:““C:\windows\system32\cmd.exe”“/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "D:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_C_COMPILER:STRING="cl.exe" -DCMAKE_CXX_COMPILER:STRING="cl.exe" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="D:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg/scripts/buildsystems/vcpkg.cmake" -DCMAKE_INSTALL_PREFIX:PATH="C:/Users/sj2003/source/repos/testProtobuf/out/install/x64-debug"   -DCMAKE_MAKE_PROGRAM="D:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Users\sj2003\source\repos\testProtobuf" 2>&1"”已返回，并带有退出代码: 1”。

Additional context
cmake version 3.29.6

The toolchain that you are using is from another vcpkg instance (in this case it's from VS).
Either pass E:\vcpkg\... as toolchain or remove vcpkg component in VS installer.
Alternatively, use manifest mode with vcpkg from VS.

As Osyotr mentioned, you need to specify the toolchain path as: E:vcpkg\scripts\buildsystems\vcpkg.cmake.

您正在使用的工具链来自另一个 vcpkg 实例（在本例中，它来自 VS）。作为工具链传递或在 VS 安装程序中删除 vcpkg 组件。或者，将清单模式与 VS 中的 vcpkg 一起使用。E:\vcpkg\...

Indeed, after I removed the vcpkg component from vs, it was able to find my protobuf package


text:
libvpx port lacks debug encapsulation

https://github.com/microsoft/vcpkg/blob/master/ports/libvpx/portfile.cmake#L78
if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpxmd.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpxmdd.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/lib" RENAME "vpxmd.pdb")
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib" RENAME "vpxmdd.pdb")
else()
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpxmt.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpxmtd.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/lib" RENAME "vpxmt.pdb")
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib" RENAME "vpxmtd.pdb")
endif()

Becomes:
if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpxmd.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
	if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
		file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpxmdd.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
		file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/lib" RENAME "vpxmd.pdb")
		file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib" RENAME "vpxmdd.pdb")
	endif()
else()
    file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpxmt.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
	if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
		file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpxmtd.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
		file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Release/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/lib" RENAME "vpxmt.pdb")
		file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/${LIBVPX_ARCH_DIR}/Debug/vpx/vpx.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib" RENAME "vpxmtd.pdb")
	endif()
endif()

If you want to build only release and not debug.
Honestly, it might be an idea to add a test which weeds out these kind of errors.
SET CONFIGURATION=release
SET VCPKGDIR=C:\vcpkg
echo.set(VCPKG_BUILD_TYPE %CONFIGURATION%)>> %VCPKGDIR%\triplets\x64-windows.cmake
echo.set(VCPKG_BUILD_TYPE %CONFIGURATION%)>> %VCPKGDIR%\triplets\x64-windows-static.cmake

is how I have been creating the triplets so that only releases are build and not debug; (for reference.)
Please feel free to adapt and use any of this code to improve vcpkg.
I obviously cannot submit a pull request due to the contributor agreement. I would otherwise.

Honestly, it might be an idea to add a test which weeds out these kind of errors.

see #6368

@Neumann-A
Great! Thanks! 👍

Close this issue via PR #8100 merged.

authors: JackBoosY Neumann-A heydojo


text:
[quazip] update to 1.1

Fix #20590
Update quazip to the latest version 1.1
Note: no feature need to test

Thanks for the update! Always happy to see patches going away :D

source: gharchive/pull-request


text:
Add universal builds for macOS

Describe the pull request
This yields binaries which work on either platform, making it easier for
end-users, since they don't have to be aware on which architecture they
are running.

What does your PR fix?

It adds a triplet allowing universal builds on macOS

Which triplets are supported/not supported? Have you updated the CI baseline?

Added universal-osx and universal-osx-dynamic`, both as community triplets.

Does your PR follow the maintainer guide?

Yes

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

N/A

I think this only works for cmake ports. For example openssl is only arm64 with this triplet

Yes, there are many ports where this won't work. Another example of this was ffmpeg, for which a custom build-script was written to enable this functionality. Maybe we can find a way to make this more generic.
Given the number of ports, it's unfeasible to find and fix all of them without adding this triplet as an official triplet, having it run through the CI and then fixing all the ones that fail.

This requires a long term strategy for how we intend to handle MacOS universal binaries. This problem is not simple, because we need to consider cases like assembly code, chip-specific optimizations, and fortran.

Draft this PR since it seems that no progress is being made.

This requires a long term strategy for how we intend to handle MacOS universal binaries. This problem is not simple, because we need to consider cases like assembly code, chip-specific optimizations, and fortran.

@JavierMatosD @valeriaconde @ras0219-msft @vicroms and I discussed this today and decided to close this because there is necessary feature work necessary, like what Robert described above. (For example, at a minimum post-build checks need to be fixed to enforce that the output actually contains both architectures so that we aren't 'lying') If you want to continue working in this direction adding things like that will bring this closer to reality.


text:
[freetds] Update to 1.3.10

Describe the pull request

What does your PR fix?
Disables building executables and tests
Remove config files for executables (Related: #24149)
NOTE: This port needs to be tested on Linux and/or OSX manually with unixodbc and unixodbc-dev installed from system package manager.

Which triplets are supported/not supported? Have you updated the CI baseline?
All except UWP
Add UNIX to CI baseline because of missing system libs

Does your PR follow the maintainer guide?
Yes

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?
Yes

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Why disables executables？

I ‘m a little confused, why disables executables？

They are just tools. However, I can add them as a feature.
I disabled them to make build faster and they were deleted in the port anyway.

@Adela0814 ready for review again

I ‘m a little confused, why disables executables？

They are just tools. However, I can add them as a feature. I disabled them to make build faster and they were deleted in the port anyway.

Please add them as a feature, thanks.

Please add them as a feature, thanks.

@Adela0814 Done

@Adela0814 This port fails to build on UNIX because of an upstream issue: https://github.com/FreeTDS/freetds/issues/462
I won't try to fix this using a patch.
Because of conflicts with unixodbc I limited the libmysql dependency to Windows.

Ping @Adela0814 for response

Thanks for the updates!


text:
[openssl] Fix armv8 asm

Reverts #33421 which blindly disabled asm for arm64-android.
Fixes #33394. Tested with Android NDK r23c and r15c.

[x] Upstream the patch.

https://github.com/openssl/openssl/pull/21938, https://github.com/openssl/openssl/pull/21939

CC @Lau69 @JonLiu1993

OpenSSL merged my fixes today.

Thanks for the fix!


text:
[boost-fiber] does support arm64-osx

Fixes https://github.com/microsoft/vcpkg/issues/33671
Tested locally on arm64-osx

Thanks for testing arm64-osx!

authors: BillyONeal autoantwort


text:
[mfx-dispatch] Fix linux build

Fixes #36004. Upstream supports Linux build, but there is a problem with the provided CMakeLists.txt, reported issue: https://github.com/lu-zero/mfx_dispatch/issues/101, trying to fix it now.
No feature needs to be tested, the header file is found through the libmfx.pc file on x64-linux.

[x] Changes comply with the maintainer guide.
[ ] ~SHA512s are updated for each updated download.~
[x] The "supports" clause reflects platforms that may be fixed by this new version.
[ ] ~Any fixed CI baseline entries are removed from that file.~
[ ] ~Any patches that are no longer applied are deleted from the port's directory.~
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

Nowadays it should be provided by https://github.com/intel/libvpl for all the platforms, as upstream https://github.com/Intel-Media-SDK/MediaSDK is archived, I'll archive soon also my fork.

I started work on https://github.com/microsoft/vcpkg/pull/40460 before this PR was opened. It has no patches, more platform support and vcpkg-ci-ffmpeg integration.


text:
vcpkg_configure_meson - Remove compiler flag /Oi

Removing the compiler flag /Oi (Generate Intrinsic Functions) allows
meson to detect functions like memmove, memset correctly. This is
relevant to meson configure for fribidi (see fribidi/meson.build).
This fixes the following "issues" (from fribidi meson-log.txt):
testfile.c(17): error C2168: 'memmove': too few actual parameters for
intrinsic function
Checking for function "memmove" : NO
testfile.c(17): error C2168: 'memset': too few actual parameters for
intrinsic function
Checking for function "memset" : NO

And enables detection of the functions:
Checking for function "memmove" : YES
Checking for function "memset" : YES

Thanks for the PR!


text:
[libharu] Remove symbols also exported from tiff (as a default feature)

closes #9250

LGTM, waiting for MacOS CI to get fixed

Feature 'notiffsymbols' test pass on x86-windows , x64-windows and linux.

authors: Neumann-A PhoebeHui dan-shaw


text:
What happens when you click "yes" to the notification that runs npm install on the target server?

How can i replicate it in the azure portal?

Hi @shanberg1
In our extension, we generate a .deployment file that sets the config to include this setting: SCM_DO_BUILD_DURING_DEPLOYMENT = true.  The target server reads that file and then knows to run the build command (dotnet build/npm install)
If you want to replicate that on the Portal, you can edit the App Setting manually.  This is explained here: https://github.com/projectkudu/kudu/wiki/Configurable-settings#enabledisable-build-actions

Thanks!

Sorry, one more question.  The

repo: microsoft/vscode-azureappservice


text:
Support remote debug for PHP apps

Repro steps:

Action: diagnostics.StartRemoteDebug
Error type: Error
Error Message: Azure Remote Debugging is currently only supported for node on Linux.
Version: 0.8.0
OS: win32

FYI @mrcrane

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!

authors: ALVSoft AzCode-Bot EricJizbaMSFT


text:
Deployments never load

Expanding the deployments tree item never loads the deployments. Just spins forever. Noticed this yesterday and it's still reproducing today.
Extension version: 1.10.0 (also repros on 1.9.0)

Note: Also just tried to load the deployments in the portal and that's not working either. So it may be a service issue.

Update:
Got some service errors:

Error: Service Unavailable

----------------------------------------

HTTP Error 503. The service is unavailable

Error: Server Error in '/' Application.

----------------------------------------

The network path was not found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: The network path was not found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IOException: The network path was not found.

This second one was so long it got cut off.

Looks like a you problem:

authors: alexweininger nturinski

repo: microsoft/vscode-azurefunctions


text:
Support predefined configurations/configurations

https://github.com/microsoft/vscode-cmake-tools/issues/1003#issuecomment-574020010
Instead of just letting the user to select: build variant, kit, etc. the extension can have named configurations, including predefined configurations like in VS2019. These can be extended to support configurations defined in a CMakeSettings.json file like in VS2019.

I'd really like this, because I need configurations that bundle variants and kits together for cross-compilation.
e.g.
Build:

STM32F205 Release µC always with arm-none-eabi toolchain
but build:
Unit Tests Debug always with clang on windows.

This feels like a duplicate of #529.  Correct me if I'm wrong, but I think that support for CMakeSettings.json would address this.

Thinking about this more, I believe there might be more to it than that.  Though I'm unsure of what exactly you would like that is different from the default variants.  Based on the comment from the linked thread it appears you would like to have different default buildDirectorys based on the Kit/generator.

Adding this feature to vscode would bring more operability to c++ projects using microsoft tools.
The use case that should be common is to provide a crossplatform enviroment. The current limitation is that there is no common aproach to support developers in diferent OS (aka. there is no visual studio for linux -> so a person in the development team must use microsoft windows + Visual Studio).
So in short words, the way to develop with cmake and Visual Studio, is to EDIT in Visual Studio and launch a remote build.
So what will bring this feature is to edit in a crossplatform code editor as vscode and launch local builds using the CmakeSettings.json.

Adding this feature to vscode would bring more operability to c++ projects using microsoft tools.
The use case that should be common is to provide a crossplatform enviroment. The current limitation is that there is no common aproach to support developers in diferent OS (aka. there is no visual studio for linux -> so a person in the development team must use microsoft windows + Visual Studio).
So in short words, the way to develop with cmake and Visual Studio, is to EDIT in Visual Studio and launch a remote build.
So what will bring this feature is to edit in a crossplatform code editor as vscode and launch local builds using the CmakeSettings.json.

@orion160 Just as side note AFAIK both Visual Studio and I guess this extension will be moving to support CMake presets and CMakeSettings.json will be probably deprecated.
I really wish tighter integration between Visual Studio and Visual Studio Code/CMake tools to support cross-platform development seamlessly. There are number of areas they defer like the VSC extension doesn't support install and debug yet as well passing command line arguments via launch.vs.json incompatible or at least it used to be.

@orion160 Just as side note AFAIK both Visual Studio and I guess this extension will be moving to support CMake presets and CMakeSettings.json will be probably deprecated.
I really wish tighter integration between Visual Studio and Visual Studio Code/CMake tools to support cross-platform development seamlessly. There are number of areas they defer like the VSC extension doesn't support install and debug yet as well passing command line arguments via launch.vs.json incompatible or at least it used to be.

This seems to be a duplicate of #529

This seems to be a duplicate of #529

Actually not quite. I am not sure how relevant is this stuff currently.

Actually not quite. I am not sure how relevant is this stuff currently.

authors: Zingam bobbrow farrrb orion160

repo: microsoft/vscode-cmake-tools


text:
CMakePresets support too restrictive on CMAKE_BUILD_TYPE allowed values

I am porting some microcontroller samples to CMakePresets from scripts that drove CMake. The following CMAKE_BUILD_TYPE values are used but are not supported by CMake-tools. These work fine in a CMakePresets file from the command line. I suspect the values used in this field should not be run against an allow list at all.
sdram_debug
sdram_release
flexspi_nor_debug
flexspi_nor_release

Thank you for the idea and details. We will triage and address this.

I just like to add my support for this request.  We also use a whole set of custom variants which now cannot be used in conjunction with VS Code's CMakePresets integration. Back to the former variants/kits concept for us until this has been addressed.

This should be addressed by #1935

authors: andreeis bobbrow hwmaier robotdad


text:
Pass command line arguments for "Run Without Debugging"

Brief Issue Summary
When I tried to use "cmake.debugConfig" and pass argument to the target, I found the CMake Tool cannot parse the escape variables such as ${workspaceFolder}, it's a trouble when I need to pass a relative path of a file to a target.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response

Can you share your settings?  This works for me.
  "cmake.debugConfig": {
    "args": [ "${workspaceFolder}" ]
  }

Can you share your settings? This works for me.
  "cmake.debugConfig": {
    "args": [ "${workspaceFolder}" ]
  }

Similar to yours, when I apply such configuration but the escape variable won't expand.

Unfortunately, we don't have enough information to investigate this and it works for us.  If your repo is open source, can you share a link?  If you have a small project that reproduces this, can you zip it up and attach it to this issue?

Ah ok.  I see the problem.  Thanks.

authors: SineStriker bobbrow


text:
CMake update fails

Brief Issue Summary
CMake update crashes when accepting the update from VS Code pop-up.
Expected:

CMake updates to new version
Apparent Behavior:

CMake update message pops up
I accept
It closes after one second

Developer Tools Log

mainThreadExtensionService.ts:42 [vector-of-bool.cmake-tools]Non-200 response when downloading new CMake installer
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:42
mainThreadExtensionService.ts:43 Error: Non-200 response when downloading new CMake installer
	at ClientRequest.tmp.file.https.get.res (/home/bbarrois/.vscode/extensions/vector-of-bool.cmake-tools-1.1.3/out/src/cm-upgrade.js:35:32)
	at Object.onceWrapper (events.js:315:30)
	at emitOne (events.js:116:13)
	at ClientRequest.emit (events.js:211:7)
	at HTTPParser.parserOnIncomingClient (_http_client.js:551:21)
	at HTTPParser.parserOnHeadersComplete (_http_common.js:117:23)
	at TLSSocket.socketOnData (_http_client.js:440:20)
	at emitOne (events.js:116:13)
	at TLSSocket.emit (events.js:211:7)
	at addChunk (_stream_readable.js:263:12)
	at readableAddChunk (_stream_readable.js:250:11)
	at TLSSocket.Readable.push (_stream_readable.js:208:10)
	at TLSWrap.onread (net.js:594:20)

Platform and Versions

Operating System:  Ubuntu 18.04
CMake Version: 3.12.3
VSCode Version: 1.30.1
CMake Tools Extension Version: 1.1.3
Compiler/Toolchain: GCC 7.3

Here's what's happening: the github URL it's trying to download from ( https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.sh ) returns a status of 302, not 200. The html body is:
You are being <a href="https://github-production-release-asset-<redacted>.s3.amazonaws.com/<redacted>=attachment%3B%20filename%3Dcmake-3.13.2-Linux-x86_64.sh&response-content-type=application%2Foctet-stream">redirected.

So we need to follow the redirect and download from there. FWIW, wget does follow the redirect, so maybe we can just call something like it in the background rather than implement the logic to handle different status codes ourselves.

Actually, this is a duplicate of #614 which was fixed in 7ac8606342f9da5e5b4a649e3d30412069244b5d

Closing issue marked as duplicate.


text:
Error from provider: Cannot read properties of undefined (reading 'map')

VS Code Version: Code spaces
OS Version:  Code spaces extension version v0.12.2
Logs:

Steps to Reproduce:

search for something and then after response try to ask again which throws the below error

``Error from provider: Cannot read properties of undefined (reading 'map')
Uninstalled it and installed it again but no luck.
Below are the only logs accessible to me
2024-03-12 20:50:35.706 [info] [auth] Logged in as hashik4d
2024-03-12 20:50:37.045 [info] [chat] copilot token chat_enabled: true
2024-03-12 20:50:37.045 [info] [githubTitleAndDescriptionProvider] Initializing GitHub PR title and description provider provider.
2024-03-12 20:50:37.045 [info] [auth] Got Copilot token for hashik4d
2024-03-12 20:50:37.612 [info] [auth] Logged in as hashik4d
2024-03-12 20:50:37.697 [info] [chat] copilot token chat_enabled: true
2024-03-12 20:50:37.697 [info] [auth] Got Copilot token for hashik4d
2024-03-12 20:50:37.941 [info] [githubTitleAndDescriptionProvider] Successfully activated the GitHub.vscode-pull-request-github extension.
2024-03-12 20:50:37.941 [info] [githubTitleAndDescriptionProvider] Successfully registered GitHub PR title and description provider.

Hi thank you for posting this issue. Could you include the stack trace you see when you experience the issue, inside of the developer tools. You can open the developer tools using the command Developer: Toggle Developer Tools.

Hi @hashik4d, to do this, you can click cmd + p if on mac os (ctrl + p if on windows) and type > then type Developer: Toggle Developer Tools. The dev tools should show up in VS Code. Then you can try to reproduce the issue you posted about, and there should be an error message in red. You can then paste here the error message.

I see that's curious, note taken.
This issue will be closed.

repo: microsoft/vscode-copilot-release


text:
Expandable window for copilot responses on main screen

See video of explanation of feature request here.
In short: When Copilot gives you a very detailed response in the main window, it would be nice if we could expand the window for a better view of all the content, rather than being forced to switch over to the left pane.

inline chat is new resizable

authors: jrieken theReynald