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

fatal error: 'limits.h' / 'math.h' file not found #48

Open
Kek5chen opened this issue Nov 22, 2024 · 0 comments
Open

fatal error: 'limits.h' / 'math.h' file not found #48

Kek5chen opened this issue Nov 22, 2024 · 0 comments

Comments

@Kek5chen
Copy link

Pretty sure this is related to #21 in a way.

The difference being that I am on NixOS.

The error message I am getting is:

  assimp/include/assimp/vector3.h:55:13: fatal error: 'math.h' file not found
  thread 'main' panicked at /home/kx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/russimp-sys-2.0.2/build.rs:209:10:
  called `Result::unwrap()` on an `Err` value: ClangDiagnostic("assimp/include/assimp/vector3.h:55:13: fatal error: 'math.h' file not found\n")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

When I provide the environment variable C_INCLUDE_LIBRARY as $glibc/include it spits out this instead:

/nix/store/0ywz89gl18p0y5m7m8kz8vh1bkry0syf-glibc-2.39-52-dev/include/limits.h:124:16: fatal error: 'limits.h' file not found
  thread 'main' panicked at /home/kx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/russimp-sys-2.0.2/build.rs:209:10:
  called `Result::unwrap()` on an `Err` value: ClangDiagnostic("/nix/store/0ywz89gl18p0y5m7m8kz8vh1bkry0syf-glibc-2.39-52-dev/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

I really do feel like this is not a user issue at this point because it does seem to correlate to the other issue. Also, openssl-sys manages to do it correctly as long as pkg-config and openssl are installed.

I hope you manage to figure this one out, I might have a look at it too if it keeps bothering me too much, though this is a pretty big blocker that having everything installed is just not enough to get this running.

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

No branches or pull requests

1 participant