skeeto / w64devkit

Portable C and C++ Development Kit for x64 (and x86) Windows
The Unlicense
3k stars 211 forks source link

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum "/src/w64devkit.ini": not found #74

Closed Eutropios closed 1 year ago

Eutropios commented 1 year ago

When running docker build -t w64devkit ., the following error shows up:

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 76b4246f-5533-4f81-bb8c-192e65c3094a::jcdnanu2d8rzw0lxfj2xffw6m: "/src/w64devkit.ini": not found

Solution to fix: Move the w64devkit.ini file from the top-most directory into ./src.

skeeto commented 1 year ago

That's where w64devkit.ini is already located. Perhaps you accidentally moved it before running the build command? I'd suspect you ran the build under src/ but then it wouldn't have found Dockerfile.

Tobi823 commented 1 year ago

I had the same issue. I downloaded https://github.com/skeeto/w64devkit/releases/download/v1.20.0/w64devkit-1.20.0.zip, extracted the zip archive, entered the extracted archive and tried to run "sudo docker build -t w64devkit ."

Tobi823 commented 1 year ago

image

When I open the ZIP archive you see, that w64devkit.ini is not in the right place.

skeeto commented 1 year ago

Thanks, that clears things up: You're running Docker for no reason. That's just a temporary, disposable build environment, but you've downloaded a completed build. Just use it. No Docker necessary. If you want to build from source, use the repository. I include all the necessary pieces to rebuild from an existing build, mainly as a kind of documentation, but that's not the intended use.

Tobi823 commented 1 year ago

Thanks for the info.

(I thought with your project I can compile mingw for Linux [because I want to cross-compile Qt on a Linux machine to Windows]. That's why I ignored that the ZIP archive already contained a lot of exe files)