Open Vitorbnc opened 2 months ago
Repo on x64-windows
:
@Vitorbnc cc @BillyONeal Could you plase help look into this issue?
I just ran into the same issue on Linux arm64.
Interestingly also while trying to fetch the artifact arm:compilers/arm/arm-none-eabi-gcc 13.3.1
vcpkg.exe
/ vcpkg
(the binary) can't touch environment variables in the enclosing console, only the shell function can do that. People got very very confused about "vcpkg
the shell function" not being the same thing as vcpkg.exe
or ./vcpkg
, so we recently renamed it to vcpkg-shell
: https://github.com/microsoft/vcpkg-tool/pull/1442
We also changed the error message to explain that better.
@BillyONeal I couldn't find any vcpkg-shell
in the vcpkg install dir and calling vcpkg-shell
does not seem to work. How do you use it?
@BillyONeal Are you saying that following the official installation instructions here puts you into a position, where a subsequent call to vcpkg activate
fails?
If so I am not surprised that "people got very confused".
@moritzstoetter I just double checked.
vcpkg-configuration.json
shown above.vcpkg activate
, got the following output:@FrankXie05 @BillyONeal any updates on this?
@BillyONeal I couldn't find any
vcpkg-shell
in the vcpkg install dir and callingvcpkg-shell
does not seem to work. How do you use it?
It only works using one of the 'installed' copies of vcpkg, like the one that comes with Visual Studio or the 'one liner' installer.
Hello, I have the same problem. Is there a plan to fix this on the latest version of vcpkg on Github? or should we resignate to use the one-liner iex (iwr -useb https://aka.ms/vcpkg-init.ps1)
still even though it's "not recommended for CI systems"? this on Windows 10 x64 host.
My use case is trying the below command so that it works on both local or CI build systems:
vcpkg activate
With this in a vcpkg-configuration.json
on the same path:
{
"registries": [
{
"name": "arm",
"kind": "artifact",
"location": "https://artifacts.tools.arm.com/vcpkg-registry"
}
],
"requires": {
"arm:tools/open-cmsis-pack/cmsis-toolbox": "2.4.0",
"arm:tools/kitware/cmake": "3.28.4",
"arm:tools/ninja-build/ninja": "1.12.0",
"arm:compilers/arm/armclang": "6.22.0",
"arm:compilers/arm/arm-none-eabi-gcc": "^13.2.1",
"arm:models/arm/avh-fvp": "^11.26.11",
"arm:debuggers/arm/armdbg": "6.1.2"
}
}
Thanks!
@BillyONeal Are you saying that following the official installation instructions here puts you into a position, where a subsequent call to
vcpkg activate
fails?If so I am not surprised that "people got very confused".
One of the reasons the entire artifacts feature remains experimental is that it is not practically usable from the "git clone" distribution of vcpkg. The official instructions are written for people not using artifacts because that remains 99.99% of vcpkg's user base, and the 'installed' copies don't work with classic mode.
Is there a plan to fix this on the latest version of vcpkg on Github?
I'm confirming an answer with our PM folks.
Describe the bug After installing vcpkg and adding its folder to Path, I tried to run
vcpkg activate
inside a folder containing thevcpkg-configuraration.json
shown below, but it fails to complete with the following message:Environment
To Reproduce Steps to reproduce the behavior:
vcpkg-configuraration.json
vcpkg activate
Expected behavior Expected activation to succeed.
Failure logs
Additional context
vcpkg-configuration.json: