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

[<opencv:x86-windows>] build failure #12652

Closed
Arnold-Muralt opened this issue Jul 30, 2020 · 3 comments · Fixed by #12569
Closed

[<opencv:x86-windows>] build failure #12652

Arnold-Muralt opened this issue Jul 30, 2020 · 3 comments · Fixed by #12569
Assignees
Labels
category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly

Comments

@Arnold-Muralt
Copy link

Arnold-Muralt commented Jul 30, 2020

Host Environment

  • OS: [Windows]
  • Compiler: 2020.06.15-nohash

To Reproduce
Steps to reproduce the behavior:
./vcpkg install opencv:x86-windows

Failure logs

PS C:\WINDOWS\system32> vcpkg install opencv:x86-windows
Computing installation plan...
The following packages will be built and installed:
  * libpng[core]:x86-windows
  * libwebp[core,nearlossless,simd,unicode]:x86-windows
    opencv[core,dnn,jpeg,opengl,png,tiff,webp]:x86-windows
  * opencv4[core,dnn,jpeg,opengl,png,tiff,webp]:x86-windows
  * opengl[core]:x86-windows
  * protobuf[core]:x86-windows
  * tiff[core]:x86-windows
  * zlib[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows...
Starting package 1/8: zlib:x86-windows
Building package zlib[core]:x86-windows...
Could not locate cached archive: C:\Users\amurault\AppData\Local\vcpkg\archives\4a\4ae4fb9a7c3e0874a2279922cbd01f8076b08fd1.zip
-- Using cached C:/Users/amurault/documents/vcpkg/downloads/zlib1211.tar.gz
-- Cleaning sources at C:/Users/amurault/documents/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/amurault/documents/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Using source at C:/Users/amurault/documents/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Fixing pkgconfig - release
-- Checking file: C:/Users/amurault/documents/vcpkg/packages/zlib_x86-windows/lib/pkgconfig/zlib.pc
-- Fixing pkgconfig - debug
-- Checking file: C:/Users/amurault/documents/vcpkg/packages/zlib_x86-windows/debug/lib/pkgconfig/zlib.pc
-- CHECK_LIB_zlibd_DEBUG:CHECK_LIB_zlibd_DEBUG-NOTFOUND
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:239 (message):
  Library "zlibd" was not found! If it is a system library use the
  SYSTEM_LIBRARIES parameter for the vcpkg_fixup_pkgconfig call! Otherwise,
  correct the *.pc file
Call Stack (most recent call first):
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:348 (vcpkg_fixup_pkgconfig_check_files)
  ports/zlib/portfile.cmake:46 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:79 (include)


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

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

@kcgen
Copy link

kcgen commented Jul 30, 2020

Thanks @Arnold-Muralt , this same issue is now impacting builds of the dosbox-staging project (unrelated to opencv).

@kcgen
Copy link

kcgen commented Jul 30, 2020

To Reproduce
Steps to reproduce the behavior:
vcpkg install --triplet x64-windows libpng sdl2

@kcgen
Copy link

kcgen commented Jul 30, 2020

2020-07-30T20:55:54.1974038Z �[36;1mvcpkg install --triplet x86-windows libpng sdl2 sdl2-net opusfile�[0m
2020-07-30T20:55:54.1974173Z �[36;1mvcpkg integrate install�[0m
2020-07-30T20:55:54.3231191Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2020-07-30T20:55:54.3231695Z ##[endgroup]
2020-07-30T20:56:03.1837323Z Using local portfile versions. To update the local portfiles, use `git pull`.
2020-07-30T20:56:03.1837589Z No packages need updating.
2020-07-30T20:56:03.7292698Z Computing installation plan...
2020-07-30T20:56:05.0621562Z The following packages will be built and installed:
2020-07-30T20:56:05.0622132Z   * libogg[core]:x86-windows
2020-07-30T20:56:05.0622642Z     libpng[core]:x86-windows
2020-07-30T20:56:05.0622834Z   * opus[core]:x86-windows
2020-07-30T20:56:05.0622959Z     opusfile[core]:x86-windows
2020-07-30T20:56:05.0623260Z     sdl2[core]:x86-windows
2020-07-30T20:56:05.0623719Z     sdl2-net[core]:x86-windows
2020-07-30T20:56:05.0624030Z   * zlib[core]:x86-windows
2020-07-30T20:56:05.0624185Z Additional packages (*) will be modified to complete this operation.
2020-07-30T20:56:05.5905638Z Detecting compiler hash for triplet x86-windows...
2020-07-30T20:56:08.0011972Z A suitable version of powershell-core was not found (required v6.2.1). Downloading portable powershell-core v6.2.1...
2020-07-30T20:56:08.0012551Z Downloading powershell-core...
2020-07-30T20:56:08.0012793Z   https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip -> C:\vcpkg\downloads\PowerShell-6.2.1-win-x86.zip
2020-07-30T20:56:08.0012975Z Extracting powershell-core...
2020-07-30T20:56:08.0013123Z A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0...
2020-07-30T20:56:08.0013315Z Downloading 7zip...
2020-07-30T20:56:08.0013489Z   https://www.nuget.org/api/v2/package/7-Zip.CommandLine/18.1.0 -> C:\vcpkg\downloads\7-zip.commandline.18.1.0.nupkg
2020-07-30T20:56:08.0703168Z Extracting 7zip...
2020-07-30T20:56:22.8024105Z Starting package 1/7: libogg:x86-windows
2020-07-30T20:56:22.8024818Z Building package libogg[core]:x86-windows...
2020-07-30T20:56:22.8025083Z Could not locate cached archive: C:\Users\runneradmin\AppData\Local\vcpkg\archives\a2\a2d9f3eb5b33b7baf651c719b326ba137b70d4d9.zip
2020-07-30T20:56:47.4340480Z -- Downloading https://github.com/xiph/ogg/archive/c8fca6b4a02d695b1ceea39b330d4406001c03ed.tar.gz...
2020-07-30T20:56:47.4340899Z -- Extracting source C:/vcpkg/downloads/xiph-ogg-c8fca6b4a02d695b1ceea39b330d4406001c03ed.tar.gz
2020-07-30T20:56:47.4341122Z -- Using source at C:/vcpkg/buildtrees/libogg/src/06001c03ed-9c4d42d027.clean
2020-07-30T20:56:47.4341431Z -- Configuring x86-windows
2020-07-30T20:56:47.4341530Z -- Building x86-windows-dbg
2020-07-30T20:56:47.4341979Z -- Building x86-windows-rel
2020-07-30T20:56:47.4342218Z -- Installing: C:/vcpkg/packages/libogg_x86-windows/share/libogg/copyright
2020-07-30T20:56:47.4342663Z -- Performing post-build validation
2020-07-30T20:56:48.5437068Z -- Performing post-build validation done
2020-07-30T20:56:48.5453995Z Stored binary cache: C:\Users\runneradmin\AppData\Local\vcpkg\archives\a2\a2d9f3eb5b33b7baf651c719b326ba137b70d4d9.zip
2020-07-30T20:56:48.5454440Z Building package libogg[core]:x86-windows... done
2020-07-30T20:56:48.5454546Z Installing package libogg[core]:x86-windows...
2020-07-30T20:56:48.5454755Z Installing package libogg[core]:x86-windows... done
2020-07-30T20:56:48.5454919Z Elapsed time for package libogg:x86-windows: 25.55 s
2020-07-30T20:56:48.5455021Z Starting package 2/7: zlib:x86-windows
2020-07-30T20:56:48.5455462Z Building package zlib[core]:x86-windows...
2020-07-30T20:56:48.5455864Z Could not locate cached archive: C:\Users\runneradmin\AppData\Local\vcpkg\archives\f2\f2539dd53d8d74c79f7295dc7fd3e2424b15bdbc.zip
2020-07-30T20:56:57.1699420Z -- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz...
2020-07-30T20:56:57.1700912Z -- Extracting source C:/vcpkg/downloads/zlib1211.tar.gz
2020-07-30T20:56:57.1701565Z -- Applying patch cmake_dont_build_more_than_needed.patch
2020-07-30T20:56:57.1701803Z -- Using source at C:/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean
2020-07-30T20:56:57.1701987Z -- Configuring x86-windows
2020-07-30T20:56:57.1702165Z -- Building x86-windows-dbg
2020-07-30T20:56:57.1702336Z -- Building x86-windows-rel
2020-07-30T20:56:57.1702505Z -- Fixing pkgconfig
2020-07-30T20:56:57.1702687Z CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:279 (find_program):
2020-07-30T20:56:57.1702880Z   Could not find PKGCONFIG using the following names: pkg-config
2020-07-30T20:56:57.1703059Z Call Stack (most recent call first):
2020-07-30T20:56:57.1703236Z   ports/zlib/portfile.cmake:46 (vcpkg_fixup_pkgconfig)
2020-07-30T20:56:57.1703411Z   scripts/ports.cmake:79 (include)
2020-07-30T20:56:57.1703534Z 
2020-07-30T20:56:57.1703666Z 
2020-07-30T20:56:57.1703841Z Error: Building package zlib:x86-windows failed with: BUILD_FAILED
2020-07-30T20:56:57.1704029Z Please ensure you're using the latest portfiles with `.\vcpkg update`, then
2020-07-30T20:56:57.1704272Z submit an issue at https://github.com/Microsoft/vcpkg/issues including:
2020-07-30T20:56:57.1704602Z   Package: zlib:x86-windows
2020-07-30T20:56:57.1704788Z   Vcpkg version: 2020.06.15-nohash
2020-07-30T20:56:57.1704927Z 
2020-07-30T20:56:57.1705098Z Additionally, attach any relevant sections from the log files above.
2020-07-30T20:56:57.2821818Z Applied user-wide integration for this vcpkg root.

@JackBoosY JackBoosY added the category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants