Skip to content

cargo install failed with limits.h error at rust-ffmpeg-sys #143

@n-connect

Description

@n-connect

Hi @russelltg,

Thank you for wl-screenrec! I'm using it approx a year. The last version I could build/install was 0.16. I've tried to install new version either with:

  • cargo install --git https://github.com/russelltg/wl-screenrec, to the that latest version, (rust-ffmpeg-sys 8.0.1)
  • or the 0.17 with cargo install rust-ffmpeg-sys (rust-ffmpeg-sys 7.x.y)

But failes at building rust-ffmpeg-sys. I'm not sure if it connected #139 or not. The ""/usr/include/limits.h: file is there, the mentioned line calls for limits.h itself:

Can you set me a direction what to do? Right now clang-19 installed..

--- stderr
  /usr/include/limits.h:124:16: fatal error: 'limits.h' file not found

  thread 'main' panicked at /usr/local/cargo/git/checkouts/rust-ffmpeg-sys-86026c0c2f6859c6/f72e6c5/build.rs:1695:10:
  Unable to generate bindings: ClangDiagnostic("/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found\n")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `wl-screenrec v0.2.0 (https://github.com/russelltg/wl-screenrec#43565c1a)`, intermediate artifacts can be found at `/tmp/cargo-installdUJIaK`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
root@5ccfbff433c2:/tmp# nvim /usr/include/limits.h

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions