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

Failed to run custom build command #15

Open
ParadyNexus opened this issue Sep 29, 2022 · 1 comment
Open

Failed to run custom build command #15

ParadyNexus opened this issue Sep 29, 2022 · 1 comment

Comments

@ParadyNexus
Copy link

I had followed the developer instructions to install from TPS Cube - psifertex

The last step did not work for me

make native

Here's the terminal output.

Compiling sdl2-sys v0.34.5
error: failed to run custom build command for sdl2-sys v0.34.5

Caused by:
process didn't exit successfully: /Users/et/Code/tpscube/target/release/build/sdl2-sys-56ab4890b5991f10/build-script-build (exit status: 101)

@lkskrn
Copy link

lkskrn commented Jun 15, 2023

@ParadyNexus
I had the same on Mac OS:
Here's how I solved it:

Install sdl2 on MacOS using the official docs:

brew install sdl2

# add this line to your ~/.zshenv or ~/.bash_profile depending on whether you use ZSH or Bash.
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"

# close and reopen terminal to reload ENV variables

# in `Cargo.roml` replace this line:
sdl2 = { version="0.34", features=["bundled", "static-link"] }
# with this line to use the local `sdl2` installation instead of a bundle
sdl2 = { version="0.34"}

# build again
make native

# or this command to build a native Mac Application
make mac_bundle

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

2 participants