Rust Fltk编译错误

发布于 2025-02-04 13:55:42 字数 810 浏览 4 评论 0原文

我正在尝试从Windows 10上的GitHub构建一个小应用程序,但是即使我在路径中有mingw(codeBlocks),但它也会失败:

error: failed to run custom build command for `fltk-sys v1.3.7`
 curl: (22) The requested URL returned error: 404
  thread 'main' panicked at 'Download bundled libraries from "https://github.com/fltk-rs/fltk-rs/releases/download/1.3.7/lib_x64-windows-msvc.tar.gz" failed', G:\apps\CargoHome\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\fltk-sys-1.3.7\build\bundled.rs:42:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[dependencies]
dscom = {path = "../dscom"}
zstd = "0.9"
fltk-sys="1.2.20"
fltk = { version = "1.2.20",features = ["fltk-bundled"] }

I'm trying to build a small application from GitHub on Windows 10 but it fails even though I have MingW(codeblocks) in Path:

error: failed to run custom build command for `fltk-sys v1.3.7`
 curl: (22) The requested URL returned error: 404
  thread 'main' panicked at 'Download bundled libraries from "https://github.com/fltk-rs/fltk-rs/releases/download/1.3.7/lib_x64-windows-msvc.tar.gz" failed', G:\apps\CargoHome\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\fltk-sys-1.3.7\build\bundled.rs:42:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[dependencies]
dscom = {path = "../dscom"}
zstd = "0.9"
fltk-sys="1.2.20"
fltk = { version = "1.2.20",features = ["fltk-bundled"] }

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许一世地老天荒 2025-02-11 13:55:42

fltk-sys使用构建脚本。 fltk-sys-1.3.7 \ build \ bundled.rs

它试图下载文件https://github.com/fltk-rs/fltk-rs/fltk-releas/releases/releases/releases/download/1.3 .7/lib_x64-windows-msvc.tar.gz

但是它未能获取文件。 curl返回错误404

curl:(22)请求的URL返回错误:404

这意味着找不到文件。
尝试手动下载文件,看看是否有效。 (对我有用,所以存在文件)您也可以在此处填充文件: https://github.com/fltk-rs/fltk-rs/releases

如果这不起作用,您的互联网设置可能会出现问题。

fltk-sys uses a build script. fltk-sys-1.3.7\build\bundled.rs

It tries to download the file https://github.com/fltk-rs/fltk-rs/releases/download/1.3.7/lib_x64-windows-msvc.tar.gz.

But it failed to get the file. curl returned the error 404

curl: (22) The requested URL returned error: 404

This means that the file was not found.
Try downloading the file manually and see if that works. (it worked for me, so file exists) You can also fine links to the file here: https://github.com/fltk-rs/fltk-rs/releases

If that does not work, there might be something wrong with your internet settings.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文