Closed Tcalp closed 2 years ago
@Tcalp, Thanks for posting this issue, I clone a new vcpkg and use command ./vcpkg install libjpeg-turbo
install successfully the port, and the mirrors version is 0.29.2-3, could you please use command git pull
get the latest vcpkg and try again?
PS F:\Feature-test\libjpeg-turbo\vcpkg> ./vcpkg install libjpeg-turbo --editable
Computing installation plan...
A suitable version of cmake was not found (required v3.24.0). Downloading portable cmake v3.24.0...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-windows-i386.zip -> F:\Feature-test\libjpeg-turbo\vcpkg\downloads\cmake-3.24.0-windows-i386.zip
Extracting cmake...
The following packages will be built and installed:
libjpeg-turbo[core]:x86-windows -> 2.1.4
* vcpkg-cmake[core]:x64-windows -> 2022-07-18
* vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.5). Downloading portable powershell-core v7.2.5...
Downloading powershell-core...
https://github.com/PowerShell/PowerShell/releases/download/v7.2.5/PowerShell-7.2.5-win-x86.zip -> F:\Feature-test\libjpeg-turbo\vcpkg\downloads\PowerShell-7.2.5-win-x86.zip
Extracting powershell-core...
A suitable version of 7zip was not found (required v21.7.0). Downloading portable 7zip v21.7.0...
Downloading 7zip...
https://www.7-zip.org/a/7z2107-extra.7z -> F:\Feature-test\libjpeg-turbo\vcpkg\downloads\7z2107-extra.7z
Extracting 7zip...
Restored 2 package(s) from C:\Users\test\AppData\Local\vcpkg\archives in 1.88 s. Use --debug to see more details.
Installing 1/3 vcpkg-cmake:x64-windows...
Elapsed time to handle vcpkg-cmake:x64-windows: 60.07 ms
Installing 2/3 vcpkg-cmake-config:x64-windows...
Elapsed time to handle vcpkg-cmake-config:x64-windows: 23.91 ms
Installing 3/3 libjpeg-turbo:x86-windows...
Building libjpeg-turbo[core]:x86-windows...
-- Downloading https://github.com/libjpeg-turbo/libjpeg-turbo/archive/2.1.4.tar.gz -> libjpeg-turbo-libjpeg-turbo-2.1.4.tar.gz...
-- Extracting source F:/Feature-test/libjpeg-turbo/vcpkg/downloads/libjpeg-turbo-libjpeg-turbo-2.1.4.tar.gz
-- Applying patch add-options-for-exes-docs-headers.patch
-- Applying patch workaround_cmake_system_processor.patch
-- Using source at F:/Feature-test/libjpeg-turbo/vcpkg/buildtrees/libjpeg-turbo/src/2.1.4-30a6482500
-- Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win32/nasm-2.15.05-win32.zip;https://fossies.org/windows/misc/nasm-2.15.05-win32.zip -> nasm-2.15.05-win32.zip...
-- Found external ninja('1.10.2').
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig file: F:/Feature-test/libjpeg-turbo/vcpkg/packages/libjpeg-turbo_x86-windows/lib/pkgconfig/libjpeg.pc
-- Fixing pkgconfig file: F:/Feature-test/libjpeg-turbo/vcpkg/packages/libjpeg-turbo_x86-windows/lib/pkgconfig/libturbojpeg.pc
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst -> msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
-- Using msys root at F:/Feature-test/libjpeg-turbo/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: F:/Feature-test/libjpeg-turbo/vcpkg/packages/libjpeg-turbo_x86-windows/debug/lib/pkgconfig/libjpeg.pc
-- Fixing pkgconfig file: F:/Feature-test/libjpeg-turbo/vcpkg/packages/libjpeg-turbo_x86-windows/debug/lib/pkgconfig/libturbojpeg.pc
-- Installing: F:/Feature-test/libjpeg-turbo/vcpkg/packages/libjpeg-turbo_x86-windows/share/libjpeg-turbo/copyright
-- Performing post-build validation
-- Performing post-build validation done
Elapsed time to handle libjpeg-turbo:x86-windows: 22.5 s
Total elapsed time: 41.32 s
The package libjpeg-turbo is compatible with built-in CMake targets:
find_package(JPEG REQUIRED)
target_link_libraries(main PRIVATE ${JPEG_LIBRARIES})
target_include_directories(main PRIVATE ${JPEG_INCLUDE_DIR})
We already updated pkg-config to 0.29.2-3 and it's exists: https://github.com/microsoft/vcpkg/blob/927006b24c3a28dfd8aa0ec5f8ce43098480a7f1/scripts/cmake/vcpkg_find_acquire_program.cmake#L528
Please git pull vcpkg and try again.
Thanks.
I believe the issue was that I was likely pulling from release, as I pulled the git just this morning. I ended up working around the issue by manually updating/patching the cmake files on my side, but I do see they are equally reflected with the active build git pull.
Host Environment
To Reproduce Steps to reproduce the behavior:
./vcpkg install libjpeg-turbo
Failure logs https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst: failed: status code 404
Additional context Please update to 0.29.3