microsoft / microsoft/vcpkg

[CMAKE]SDL2 Curl Zlib build failure

Open
#12,092 7 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

category:tool-update
Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 19h
Merged PRs (30d)
321

Description

**Host Environment**
- OS: Windows 10 Pro Version 1909 Build 18363.900
- Compiler: Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework

**To Reproduce**
Steps to reproduce the behavior:
`.\vcpkg install sdl2 curl`

**Failure logs**
PS C:\vcpkg> .\vcpkg install sdl2 curl
Computing installation plan...
The following packages will be built and installed:
curl[core,non-http,ssl,sspi,winssl]:x86-windows
sdl2[core]:x86-windows
* zlib[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Starting package 1/3: zlib:x86-windows
Building package zlib[core]:x86-windows...
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz...
CMake Error at C:/vcpkg/scripts/cmake/vcpkg_download_distfile.cmake:185 (file):
file RENAME failed to rename

/c/vcpkg/C:/vcpkg/downloads/temp/zlib1211.tar.gz

to

/c/vcpkg/C:/vcpkg/downloads/zlib1211.tar.gz

because: No such file or directory

Call Stack (most recent call first):
C:/vcpkg/ports/zlib/portfile.cmake:5 (vcpkg_download_distfile)
C:/vcpkg/scripts/ports.cmake:73 (include)

**Additional context**
Old installation of vcpkg broke after installing opencv, removed old installation.
Cloned and created new installation of vcpkg, followed steps from readme.
I've noticed the double directory

> /c/vcpkg/C:/vcpkg/downloads/zlib1211.tar.gz

not sure if that's the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.