ldesgoui / discord_game_sdk

Rust bindings for the Discord Game SDK
https://docs.rs/discord_game_sdk
Apache License 2.0
62 stars 11 forks source link

the platform you are trying to target is not supported #117

Open tsukinoko-kun opened 5 months ago

tsukinoko-kun commented 5 months ago

I want to add Discord rich presence to my Bevy game using this SDK.

I use a macBook pro M2 13"

Cargo gives me this error:

error: failed to run custom build command for `discord_game_sdk_sys v1.0.1`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/Users/frank/Git/mageanoid/target/debug/build/discord_game_sdk_sys-db87aff9917f50ba/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=DISCORD_GAME_SDK_PATH
  cargo:rerun-if-changed=/Users/frank/Git/mageanoid/discord_game_sdk/

  --- stderr
  thread 'main' panicked at /Users/frank/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/discord_game_sdk_sys-1.0.1/build.rs:61:14:

  discord_game_sdk_sys: Hello,

  You are trying to link to the Discord Game SDK.
  Unfortunately, the platform you are trying to target is not supported.

  Please report any issues you have at:
  https://github.com/ldesgoui/discord_game_sdk

  Thanks, and apologies for the inconvenience

  stack backtrace:
     0: rust_begin_unwind
               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5
     1: core::panicking::panic_fmt
               at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14
     2: core::panicking::panic_display
     3: build_script_build::main
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...

Env variable DISCORD_GAME_SDK_PATH is set.