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

error: Invalid triplet name. Triplet names are all lowercase alphanumeric+hyphens. on expression: x64_windows #42337

Closed
woshizhangbowen opened this issue Nov 24, 2024 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@woshizhangbowen
Copy link

hello,Unfortunately,I have a same question in my two computers.In Windows10,VS2022 and newest VCPKG .If I use
你好,不幸的是,我有一个相同的问题在我的两台电脑.在Windows10,VS2022和最新的VCPKG .如果我使用
vcpkg install zlib:x64-windows
vcpkg install zlib:x64-windows
it will show me an error : error:
它会显示一个错误:error:
Invalid triplet name. Triplet names are all lowercase alphanumeric+hyphens.
无效的三元组名称。三个名字都是字母数字+连字符。
on expression: x64_windows
关于表达式:x64_windows
Built-in Triplets: 内置三胞胎:
arm-neon-android
arm64-android arm 64-安卓
arm64-osx
arm64-uwp
arm64-windows

But if I write like this:
但如果我这样写:
vcpkg install zlib --triplet=x64-windows
It works. But this error already happened tow month ago.And still not solve yet. 2024.11.24
有时灵 但是这个错误在两个月前就已经发生了,到现在还没有解决。2024.11.24
Image
Image

@Cheney-W Cheney-W added the category:question This issue is a question label Nov 25, 2024
@woshizhangbowen
Copy link
Author

I now know how to solve this problem, and I have tested it on both Windows 11 and Windows 10, which can be used. The main reason for the problem is that I added an environment variable to the system environment of my computer: VCPKG_DEFAULT_TRIPLET with a value of x64-windows, but I wrote it wrong, so this caused the problem. Therefore, please be careful.
Image

@woshizhangbowen
Copy link
Author

#41268 (comment)
This is the link。

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