Closed Yago1290 closed 7 months ago
Have you installed the Microsoft Visual Studio C++ Build Tools
?
If not, you could follow the guide here: https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-windows
Have you installed the
Microsoft Visual Studio C++ Build Tools
? If not, you could follow the guide here: tauri.app/v1/guides/getting-started/prerequisites#setting-up-windows
We're seeing this issue in a build process after installing the visualstudio2022buildtools
and visualstudio2022-workload-vctools
packages via chocolatey. As far as I can tell from the documentation this should satisfy the dependency requirement outlined in the guide you linked above.
Is there somewhere else we could look to determine what we're missing?
@drobbins-ancile Looking at the description of visualstudio2022-workload-vctools
it installs the recommended components unless you use the --no-includeRecommended
. Did you by any chance use that flag? The most important components for Tauri/Rust are part of the recommended set.
If that's not it, can you check if typing link.exe
and rc.exe
in your normal terminal (where you run tauri commands) gives you any "not found" errors?
@drobbins-ancile Looking at the description of
visualstudio2022-workload-vctools
it installs the recommended components unless you use the--no-includeRecommended
. Did you by any chance use that flag? The most important components for Tauri/Rust are part of the recommended set.If that's not it, can you check if typing
link.exe
andrc.exe
in your normal terminal (where you run tauri commands) gives you any "not found" errors?
We are installing with these options (in an AWS codebuild project - server 2019 core).
choco install visualstudio2022buildtools -y -n --package-parameters "--all --norestart --nocache --quiet"
choco install visualstudio2022-workload-vctools -y -n --package-parameters "--all --norestart --nocache --quiet"
Both link and rc are not found. No errors during the installs of these packages.
At this point I'm assuming the vs2022 install isn't adding the required locations to the PATH env variable.
At this point I'm assuming the vs2022 install isn't adding the required locations to the PATH env variable.
Yeah, indeed looks like it. I have 0 experience with choco and aws so i hope someone else will chime in (or it's enough of a pointer for you to figure it out yourself 🙏 )
At this point I'm assuming the vs2022 install isn't adding the required locations to the PATH env variable.
Yeah, indeed looks like it. I have 0 experience with choco and aws so i hope someone else will chime in (or it's enough of a pointer for you to figure it out yourself 🙏 )
Just to confirm - yarn tauri info
is looking for the link
and rc
executables when it's making the check for VS build tools?
No, it's using https://github.com/microsoft/vswhere but i don't know how exactly vswhere works.
Describe the bug
when i run $ tauri dev, When I run the dev command tauri doesn't work help me! :(
error: linker
link.exe
not found | = note: program not foundnote: the msvc targets depend on the msvc linker but
link.exe
was not foundnote: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
note: VS Code is a different product, and is not sufficient.
error: could not compile
lock_api
(build script) due to previous error warning: build failed, waiting for other jobs to finish... error: could not compilewindows_x86_64_msvc
(build script) due to previous error error: could not compilegetrandom
(build script) due to previous error error: could not compileparking_lot_core
(build script) due to previous error error: could not compileserde_json
(build script) due to previous error error: could not compilethiserror
(build script) due to previous error error: could not compileserde
(build script) due to previous error error: could not compileproc-macro2
(build script) due to previous error error: could not compilesyn
(build script) due to previous error error: could not compilewinapi
(build script) due to previous error ELIFECYCLE Command failed with exit code 4294967295.Reproduction
my reprodution its a step-to-step of next tauri app : https://tauri.app/v1/guides/getting-started/setup/next-js/
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response