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

Can't compile because of SDL path #610

Open
x1z53 opened this issue Feb 16, 2025 · 0 comments
Open

Can't compile because of SDL path #610

x1z53 opened this issue Feb 16, 2025 · 0 comments

Comments

@x1z53
Copy link

x1z53 commented Feb 16, 2025

After make install and install some crates, compilation of pyxel-platform is fail

error: failed to run custom build command for `pyxel-platform v2.3.6 (/home/x1z53/Загрузки/pyxel/rust/pyxel-platform)`

Caused by:
  process didn't exit successfully: `/home/x1z53/Загрузки/pyxel/rust/target/release/build/pyxel-platform-1441c12d8746f714/build-script-build` 
(exit status: 101)
  --- stdout
  cargo:rustc-flags=-l SDL2

  --- stderr
  wrapper.h:1:10: fatal error: 'SDL.h' file not found
  thread 'main' panicked at pyxel-platform/build.rs:220:14:
  Failed to generate bindings: ClangDiagnostic("wrapper.h:1:10: fatal error: 'SDL.h' file not found\n")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

If I understand correctly, in pyxel-wrapper/wrapper.h should be SDL2/SDL.h, and because of this, even the build on docs.rs fails.

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