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

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

Open
tsukinoko-kun opened this issue Jul 2, 2024 · 0 comments
Open

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

tsukinoko-kun opened this issue Jul 2, 2024 · 0 comments

Comments

@tsukinoko-kun
Copy link

tsukinoko-kun commented Jul 2, 2024

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.

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