gamesdk-and-dispatch icon indicating copy to clipboard operation
gamesdk-and-dispatch copied to clipboard

Cannot build GameSDK under macOS and Linux

Open sylveon opened this issue 5 years ago • 2 comments

Describe the bug The GameSDK fails to build under macOS and Linux due to improperly written type definitions in ffi.h and discord_game_sdk.h

Steps to reproduce Steps to reproduce the behavior:

  1. Download the GameSDK on an Unix machine
  2. Try using it in a project

Expected behavior It builds

Implementation specifics

  • Language: C++
  • Game Engine: N/A

Additional context The issue is in lines 218-229 of discord_game_sdk.h and ffi.h. Those lines should be changed to the following (note the semicolons):

#ifndef _WIN32
  typedef void MSG;
  typedef void IDXGISwapChain;
#endif

Sidenote, but there's superfluous indentation on line 230.

sylveon avatar Jul 10 '20 22:07 sylveon

So we changed some underlying stuff in our latest version 3.1.0. Can I give you this and you can tell me if this issue still occurs?

https://dl-game-sdk.discordapp.net/3.1.0/discord_game_sdk.zip

msciotti avatar Sep 16 '20 18:09 msciotti

Looks resolved to me, albeit I don't have a Linux or macOS platform to test with at the moment.

sylveon avatar Sep 16 '20 18:09 sylveon