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

DLL file `api-ms-win-crt-runtime-l1-1-0.dll` not found! #25787

Open
shreyarastogi opened this issue Feb 17, 2020 · 5 comments
Open

DLL file `api-ms-win-crt-runtime-l1-1-0.dll` not found! #25787

shreyarastogi opened this issue Feb 17, 2020 · 5 comments

Comments

@shreyarastogi
Copy link

@shreyarastogi shreyarastogi commented Feb 17, 2020

shrey@LAPTOP-L08HN83K MINGW64 /c/Users/shrey/servo (master)
$ ./mach build --dev
warning: Error finalizing incremental compilation session directory \\?\C:\Users\shrey\servo\target\debug\incremental\canvas_traits-aj1987kq9sua\s-fkbu5d627i-159yjr0-working: Access is denied. (os error 5)

warning: method Constructor should have a snake case name
--> components\script\dom\doge.rs:34:8
|
34 | pub fn Constructor(global: &GlobalScope, init: Option) -> Fallible<DomRoot> {
| ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): constructor
|
= note: #[warn(non_snake_case)] on by default

Finished dev [unoptimized + debuginfo] target(s) in 9.22s

Packaging EGL DLLs
Packaging gstreamer DLLs
Packaging MSVC DLLs
DLL file api-ms-win-crt-runtime-l1-1-0.dll not found!
Build FAILED in 0:00:09

facing this error, took help from google but haven't been able to solve it.

@jdm
Copy link
Member

@jdm jdm commented Feb 17, 2020

MINGW isn't a supported environment. What happens if you open a regular windows terminal window and run mach build --dev?

@shreyarastogi
Copy link
Author

@shreyarastogi shreyarastogi commented Feb 18, 2020

It is building in a regular windows terminal window. I opened Command prompt in VS code itself and it is getting built there. So what do you suggest, I shouldn't build it using the bash terminal?

@jdm
Copy link
Member

@jdm jdm commented Feb 18, 2020

If the terminal is running bash, it's not a regular terminal window. Only the windows command prompt environment is supported; you can launch it by running "cmd" from the windows start menu search.

@Darkspirit
Copy link
Contributor

@Darkspirit Darkspirit commented Feb 23, 2020

I followed the steps from https://github.com/servo/servo#on-windows-msvc and got the same error.
(Chocolatery + Gstreamer 1.16.2 + without "troubleshooting" + had to uninstall LLVM-9.0.0-win64.exe because of mozjs_sys(?) failure)
Powershell: ./mach build -d, cmd: .\mach build -d


https://github.com/servo/servo#on-windows-msvc

If you got the error DLL file api-ms-win-crt-runtime-l1-1-0.dll not found! then set the WindowsSdkDir environment variable to an appropriate Windows Kit directory containing Redist\ucrt\DLLs\x64\api-ms-win-crt-runtime-l1-1-0.dll, for example C:\Program Files (x86)\Windows Kits\10.

$env:WindowsSdkDir="C:\Program Files (x86)\Windows Kits\10"; ./mach build -d
only worked after changing

if "WindowsSdkDir" in os.environ:
redist_dirs += [path.join(os.environ["WindowsSdkDir"], "Redist", "ucrt", "DLLs", vs_platform)]

to

import glob
redist_dirs += glob.glob(path.join(os.environ["WindowsSdkDir"], "Redist", "*", "ucrt", "DLLs", vs_platform))

because the correct path is C:\Program Files (x86)\Windows Kits\10\Redist\10.0.17763.0\ucrt\DLLs\x64\api-ms-win-crt-runtime-l1-1-0.dll.

@jdm
Copy link
Member

@jdm jdm commented Feb 24, 2020

I worked around the problem by running mach build -d inside of a Visual Studio command prompts, rather than the stock Windows command prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.