Comments (11)
You can check whether file D:\a_work\1\s\src\vcpkg\base\unicode.cpp
exists and delete it, then try to install.
from vcpkg.
您可以检查文件是否
D:\a_work\1\s\src\vcpkg\base\unicode.cpp
存在并将其删除,然后尝试安装。
The path does not exsit.
from vcpkg.
Thanks for posting this issue. Please make sure you have set utf-8 locale in Windows settings, see https://www.cnblogs.com/walker-world/p/9548852.html.
from vcpkg.
Thanks for posting this issue. Please make sure you have set utf-8 locale in Windows settings, see https://www.cnblogs.com/walker-world/p/9548852.html.
[DEBUG] Default binary cache path is: C:\Users\FK-Gaopengwei\AppData\Local\vcpkg\archives
Restored 0 package(s) from C:\Users\FK-Gaopengwei\AppData\Local\vcpkg\archives in 97.2 us. Use --debug to see more details.
Installing 1/2 vcpkg-cmake:x64-windows@2023-05-04...
Building vcpkg-cmake:x64-windows@2023-05-04...
[DEBUG] Detecting host with IsWow64Process2
[DEBUG] 1007: CreateProcessW("D:\Program Files\vcpkg\downloads\tools\cmake-3.27.1-windows\cmake-3.27.1-windows-i386/bin/cmake.exe" -DALL_FEATURES= "-DCURRENT_PORT_DIR=D:/Program Files/vcpkg/ports/vcpkg-cmake" -D_HOST_TRIPLET=x64-windows -DFEATURES=core -DPORT=vcpkg-cmake -DVERSION=2023-05-04 -DVCPKG_USE_HEAD_VERSION=0 -D_VCPKG_DOWNLOAD_TOOL=BUILT_IN -D_VCPKG_EDITABLE=0 -D_VCPKG_NO_DOWNLOADS=0 "-DZ_VCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Program Files/vcpkg/scripts/toolchains/windows.cmake" -DCMD=BUILD "-DDOWNLOADS=D:/Program Files/vcpkg/downloads" -DTARGET_TRIPLET=x64-windows "-DTARGET_TRIPLET_FILE=D:/Program Files/vcpkg/triplets/x64-windows.cmake" -DVCPKG_BASE_VERSION=2024-02-07 -DVCPKG_CONCURRENCY=17 -DVCPKG_PLATFORM_TOOLSET=v142 "-DGIT=C:/Program Files/Git/cmd/git.exe" "-DVCPKG_ROOT_DIR=D:/Program Files/vcpkg" "-DPACKAGES_DIR=D:/Program Files/vcpkg/packages" "-DBUILDTREES_DIR=D:/Program Files/vcpkg/buildtrees" "-D_VCPKG_INSTALLED_DIR=D:/Program Files/vcpkg/installed" "-DDOWNLOADS=D:/Program Files/vcpkg/downloads" -DVCPKG_MANIFEST_INSTALL=OFF -P "D:\Program Files\vcpkg\scripts\ports.cmake")
-- Installing: D:/Program Files/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: D:/Program Files/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: D:/Program Files/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: D:/Program Files/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: D:/Program Files/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright
[DEBUG] 1007: cmd_execute_and_stream_data() returned 0 after 133825 us
error: Failed to convert to UTF-8: found start code unit in continue position
[DEBUG] D:\a_work\1\s\src\vcpkg\base\unicode.cpp(259):
[DEBUG] Time in subprocesses: 6993403us
[DEBUG] Time in parsing JSON: 24us
[DEBUG] Time in JSON reader: 87us
[DEBUG] Time in filesystem: 4847us
[DEBUG] Time in loading ports: 647us
[DEBUG] Exiting after 7.2 s (7160988us)
PS D:\Program Files\vcpkg> chcp
Active code page: 65001
PS D:\Program Files\vcpkg>
from vcpkg.
How can I find the file and remove it?
from vcpkg.
Thanks for posting this issue. Please make sure you have set utf-8 locale in Windows settings, see https://www.cnblogs.com/walker-world/p/9548852.html.
I have seted, but the problem still exist.
from vcpkg.
Maybe the failed reason is the sapce in your VCPKG_ROOT_PATH D:/Program Files, could you please clone vcpkg to a no-space path and rebuild zlib
?
from vcpkg.
Maybe the failed reason is the sapce in your VCPKG_ROOT_PATH D:/Program Files, could you please clone vcpkg to a no-space path and rebuild
zlib
?
PS C:\Users\FK-Gaopengwei> vcpkg install boost-interprocess:x64-windows --debug
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from D:\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: D:\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
[DEBUG] Using scripts-root: D:\vcpkg\scripts
[DEBUG] Using builtin-ports: D:\vcpkg\ports
[DEBUG] Using installed-root: D:\vcpkg\installed
[DEBUG] Using buildtrees-root: D:\vcpkg\buildtrees
[DEBUG] Using packages-root: D:\vcpkg\packages
[DEBUG] Using vcpkg-root: D:\vcpkg
[DEBUG] Using scripts-root: D:\vcpkg\scripts
[DEBUG] Using builtin-registry: D:\vcpkg\versions
[DEBUG] Using downloads-root: D:\vcpkg\downloads
[DEBUG] Detecting host with IsWow64Process2
[DEBUG] Detecting host with IsWow64Process2
Computing installation plan...
error: Failed to convert to UTF-8: invalid code unit
[DEBUG] D:\a_work\1\s\src\vcpkg\base\unicode.cpp(259):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 0us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 2156us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 58.2 ms (7318us)
from vcpkg.
Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
CMake Error at scripts/cmake/z_vcpkg_apply_patches.cmake:34 (message):
Applying patch failed: Checking patch zconf.h.cmakein...
error: while searching for:
#endif
#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
define Z_HAVE_UNISTD_H
#endif
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
define Z_HAVE_STDARG_H
#endif
#ifdef STDC
error: patch failed: zconf.h.cmakein:434
error: zconf.h.cmakein: patch does not apply
Checking patch zconf.h.in...
error: while searching for:
#endif
#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
define Z_HAVE_UNISTD_H
#endif
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
define Z_HAVE_STDARG_H
#endif
#ifdef STDC
error: patch failed: zconf.h.in:432
error: zconf.h.in: patch does not apply
Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive.cmake:147 (z_vcpkg_apply_patches)
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
ports/zlib/portfile.cmake:2 (vcpkg_from_github)
scripts/ports.cmake:175 (include)
[DEBUG] 1007: cmd_execute_and_stream_data() returned 1 after 863314 us
error: 生成 zlib:x64-windows 失败,结果为: BUILD_FAILED
处理 zlib:x64-windows 所用时间: 868 ms
[DEBUG] Detecting host with IsWow64Process2
[DEBUG] 1008: CreateProcessW("C:\Program Files\Git\cmd\git.exe" "--git-dir=D:\vcpkg.git" "--work-tree=D:\vcpkg.git" -c core.autocrlf=false show "--pretty=format:%h %cd (%cr)" -s --date=short HEAD)
[DEBUG] 1008: cmd_execute_and_stream_data() returned 0 after 46096 us
请确保使用具有“git pull” 和 “vcpkg update”的最新端口文件。
然后,在以下位置查看已知问题:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+zlib
可在以下位置提交新问题:
https://github.com/microsoft/vcpkg/issues/new?title=[zlib]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
[DEBUG] D:\a_work\1\s\src\vcpkg\commands.install.cpp(603):
[DEBUG] Time in subprocesses: 8457519us
[DEBUG] Time in parsing JSON: 13549us
[DEBUG] Time in JSON reader: 431us
[DEBUG] Time in filesystem: 13234us
[DEBUG] Time in loading ports: 9504us
[DEBUG] Exiting after 8.7 s (8578262us)
from vcpkg.
You can check whether file
D:\a_work\1\s\src\vcpkg\base\unicode.cpp
exists and delete it, then try to install.
This is the file path of the vcpkg tool source code unit which reports the encoding error...
It is not expected to exist on the user system.
from vcpkg.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
from vcpkg.
Related Issues (20)
- [x265] Build error on x64-windows HOT 1
- [libiconv] Build error on x64-windows HOT 2
- [muparser] Not able to build an _UNICODE app HOT 1
- [harfbuzz] Request feature "experimental_api"
- Regression pwsh tab completion doesn't work
- [pcl] build failure HOT 2
- error: building boost-cobalt:x64-windows failed with: BUILD_FAILED HOT 1
- [jasper:x64-windows] build failure in VS2022 HOT 4
- [openssl] Build error on x64-windows HOT 3
- libmysql static build missing openssl, zlib, zstd inside HOT 13
- [omniorb] omniidl does not work due to missing python files HOT 1
- libhttpserver HOT 1
- [prometheus-cpp] build failure HOT 5
- [libusb] build failure HOT 13
- [Boost] update to <1.85.0>
- [vulkan-memory-allocator-hpp] update to HEAD (73cdd838c425637c874d343ab0ceba5148189cbf)
- [alembic] Build error on x64-windows HOT 6
- [fplus] Is it needed to change port name from fplus to FunctionalPlus HOT 1
- https://github.com/microsoft/vcpkg/issues/new?title=[qtwebengine]+Build+error+on+x64-windows&body=Copy+issue+body+from+F%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md HOT 1
- [libtorch:arm64-windows] build failure HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcpkg.