tpscube icon indicating copy to clipboard operation
tpscube copied to clipboard

Failed to run custom build command

Open ParadyNexus opened this issue 2 years ago • 1 comments

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)

ParadyNexus avatar Sep 29 '22 15:09 ParadyNexus

@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

lkskrn avatar Jun 15 '23 14:06 lkskrn