Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libpng] Build error #29836

Closed
ImAlien opened this issue Feb 24, 2023 · 6 comments
Closed

[libpng] Build error #29836

ImAlien opened this issue Feb 24, 2023 · 6 comments
Assignees
Labels
category:question This issue is a question

Comments

@ImAlien
Copy link

ImAlien commented Feb 24, 2023

Host Environment

  • OS: Windows
  • Compiler: VS 2022

To Reproduce

Steps to reproduce the behavior:

./vcpkg install opencv

Failure logs

Computing installation plan...
The following packages will be built and installed:

  • libpng[core]:x86-windows -> 1.6.39
  • libwebp[core,libwebpmux,nearlossless,simd,unicode]:x86-windows -> 1.3.0
    opencv[core,default-features]:x86-windows -> 4.7.0
  • opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x86-windows -> 4.7.0#2
  • protobuf[core]:x64-windows -> 3.21.12
  • protobuf[core]:x86-windows -> 3.21.12
  • quirc[core]:x86-windows -> 1.1#3
  • tiff[core,jpeg,lzma,zip]:x86-windows -> 4.5.0#2
  • vcpkg-get-python-packages[core]:x64-windows -> 2022-06-30
    Additional packages (*) will be modified to complete this operation.
    Detecting compiler hash for triplet x86-windows...
    -- Automatically setting HTTP(S)_PROXY environment variables to "127.0.0.1:7890".
    Detecting compiler hash for triplet x64-windows...
    Restored 0 package(s) from C:\Users\admin\AppData\Local\vcpkg\archives in 326.6 us. Use --debug to see more details.
    Installing 1/9 libpng:x86-windows...
    Building libpng[core]:x86-windows...
    -- Using cached glennrp-libpng-v1.6.39.tar.gz.
    -- Cleaning sources at D:/github/vcpkg/buildtrees/libpng/src/v1.6.39-a77eb96d39.clean. Use --editable to skip cleaning for the packages you specify.
    -- Extracting source D:/github/vcpkg/downloads/glennrp-libpng-v1.6.39.tar.gz
    -- Applying patch cmake.patch
    -- Applying patch fix-export-targets.patch
    -- Applying patch pkgconfig.patch
    -- Applying patch fix-msa-support-for-mips.patch
    -- Using source at D:/github/vcpkg/buildtrees/libpng/src/v1.6.39-a77eb96d39.clean
    -- Found external ninja('1.11.0').
    -- Configuring x86-windows
    -- Building x86-windows-dbg
    -- Building x86-windows-rel
    CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: D:/github/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe --build . --config Release --target install -- -v -j13
    Working Directory: D:/github/vcpkg/buildtrees/libpng/x86-windows-rel
    See logs for more information:
    D:\github\vcpkg\buildtrees\libpng\install-x86-windows-rel-out.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/libpng/portfile.cmake:81 (vcpkg_cmake_install)
scripts/ports.cmake:147 (include)

error: building libpng:x86-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libpng
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libpng]+Build+error
Include '[libpng] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75
vcpkg-scripts version: 54cc53c 2023-02-23 (8 hours ago)

Additional context

have read
#28267
#15731
and can't find a solution

@ImAlien ImAlien added the category:port-bug The issue is with a library, which is something the port should already support label Feb 24, 2023
@jimwang118
Copy link
Contributor

Can you provide the specific error message of D:\github\vcpkg\buildtrees\libpng\install-x86-windows-rel-out.log?

@jimwang118 jimwang118 added requires:more-information This Issue requires more information to solve and removed category:port-bug The issue is with a library, which is something the port should already support labels Feb 28, 2023
@jimwang118
Copy link
Contributor

I haven't been able to repro this, please provide the detailed error log.
image

@jimwang118
Copy link
Contributor

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

@jimwang118 jimwang118 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2023
@ImAlien
Copy link
Author

ImAlien commented Mar 29, 2023

[1/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngerror.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngerror.c
[2/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngset.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngset.c
[3/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngmem.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngmem.c
[4/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngwio.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngwio.c
[5/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngtrans.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngtrans.c
[6/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngrutil.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngrutil.c
[7/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngrio.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngrio.c
[8/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngpread.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngpread.c
[9/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngget.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngget.c
[10/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\png.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\png.c
[11/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngwrite.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngwrite.c
[12/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png-fix-itxt.dir\contrib\tools\png-fix-itxt.c.obj /FdCMakeFiles\png-fix-itxt.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\contrib\tools\png-fix-itxt.c
[13/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngread.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngread.c
[14/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\pngfix.dir\contrib\tools\pngfix.c.obj /FdCMakeFiles\pngfix.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\contrib\tools\pngfix.c
[15/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngrtran.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngrtran.c
[16/21] cmd.exe /C "cd . && D:\github\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\png-fix-itxt.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\mt.exe --manifests -- C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\link.exe CMakeFiles\png-fix-itxt.dir\contrib\tools\png-fix-itxt.c.obj /out:png-fix-itxt.exe /implib:png-fix-itxt.lib /pdb:png-fix-itxt.pdb /version:0.0 /machine:X86 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /subsystem:console D:\github\vcpkg\installed\x86-windows\lib\zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
[17/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngwtran.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngwtran.c
[18/21] C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\cl.exe -DPNG_BUILD_DLL -D_CRT_SECURE_NO_DEPRECATE -ID:\github\vcpkg\installed\x86-windows\include -ID:\github\vcpkg\buildtrees\libpng\x86-windows-rel -ID:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 /showIncludes /FoCMakeFiles\png.dir\pngwutil.c.obj /FdCMakeFiles\png.dir\ /FS -c D:\github\vcpkg\buildtrees\libpng\src\v1.6.39-a77eb96d39.clean\pngwutil.c
[19/21] cmd.exe /C "cd . && D:\github\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\png.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\mt.exe --manifests -- C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\link.exe CMakeFiles\png.dir\png.c.obj CMakeFiles\png.dir\pngerror.c.obj CMakeFiles\png.dir\pngget.c.obj CMakeFiles\png.dir\pngmem.c.obj CMakeFiles\png.dir\pngpread.c.obj CMakeFiles\png.dir\pngread.c.obj CMakeFiles\png.dir\pngrio.c.obj CMakeFiles\png.dir\pngrtran.c.obj CMakeFiles\png.dir\pngrutil.c.obj CMakeFiles\png.dir\pngset.c.obj CMakeFiles\png.dir\pngtrans.c.obj CMakeFiles\png.dir\pngwio.c.obj CMakeFiles\png.dir\pngwrite.c.obj CMakeFiles\png.dir\pngwtran.c.obj CMakeFiles\png.dir\pngwutil.c.obj /out:libpng16.dll /implib:libpng16.lib /pdb:libpng16.pdb /dll /version:16.39 /machine:X86 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF D:\github\vcpkg\installed\x86-windows\lib\zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
[20/21] cmd.exe /C "cd . && D:\github\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\pngfix.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\mt.exe --manifests -- C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\link.exe CMakeFiles\pngfix.dir\contrib\tools\pngfix.c.obj /out:pngfix.exe /implib:pngfix.lib /pdb:pngfix.pdb /version:0.0 /machine:X86 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /subsystem:console libpng16.lib D:\github\vcpkg\installed\x86-windows\lib\zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: pngfix.exe
cmd.exe /C "cd . && D:\github\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\pngfix.dir --rc=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x64\mt.exe --manifests -- C:\PROGRA1\MICROS4\2022\COMMUN1\VC\Tools\MSVC\14351.322\bin\Hostx64\x86\link.exe CMakeFiles\pngfix.dir\contrib\tools\pngfix.c.obj /out:pngfix.exe /implib:pngfix.lib /pdb:pngfix.pdb /version:0.0 /machine:X86 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /subsystem:console libpng16.lib D:\github\vcpkg\installed\x86-windows\lib\zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
MT: command "C:\PROGRA2\WI3CF21\10\bin\100220~1.0\x64\mt.exe /nologo /manifest pngfix.exe.manifest /outputresource:pngfix.exe;#1" failed (exit code 0x1f) with the following output:

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "pngfix.exe". Another program is using this file, and the process cannot be accessed.

ninja: build stopped: subcommand failed.

@jimwang118
Copy link
Contributor

I checked on the Internet, your problem should be that the anti-virus software reads the executable program, and then your program cannot be read. This is not a vcpkg problem. You can also search for this error.
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "pngfix.exe". Another program is using this file, and the process cannot be accessed.

@ImAlien
Copy link
Author

ImAlien commented Mar 29, 2023

thx, disabling the Anti-Virus worked for me

@jimwang118 jimwang118 added category:question This issue is a question and removed requires:more-information This Issue requires more information to solve labels Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants