sm64pc/sm64ex

Project does not build with DISCORDRPC=1

ameoverflow opened this issue · 5 comments

Describe the bug
Project doesn't compile on Linux

To Reproduce
Steps to reproduce the behavior:

  1. make BETTERCAMERA=1 EXTERNAL_DATA=1 EXT_OPTIONS_MENU=1 TEXTSAVES=1 -j6
  2. Building will fail with error if DISCORDRPC is set to 1
/usr/bin/ld: build/us_pc/src/pc/discord/discordrpc.o: in function `discord_update_rich_presence':
discordrpc.c:(.text+0x322): undefined reference to `configDiscordRPC'
/usr/bin/ld: build/us_pc/src/pc/discord/discordrpc.o: in function `discord_init':
discordrpc.c:(.text+0x427): undefined reference to `configDiscordRPC'

or

/usr/bin/ld: build/us_pc/src/pc/pc_main.o: in function `game_deinit':
pc_main.c:(.text+0x445): undefined reference to `discord_shutdown'
/usr/bin/ld: build/us_pc/src/pc/pc_main.o: in function `main_func':
pc_main.c:(.text+0x5ed): undefined reference to `discord_init'
/usr/bin/ld: pc_main.c:(.text+0x61e): undefined reference to `discord_update_rich_presence'

if not

Expected behavior
Project should build

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Arch Linux
  • Version: rolling

Additional context
Add any other context about the problem here.

Updated description because it does not compile at all, but it's the same failure as with DISCORDRPC=1

Did you make clean before building with different build options?

Did you make clean before building with different build options?

It did not work for me before but works now. Still, there's an issue with building with Discord RPC enabled

I cannot reproduce this. You should clean build with all the options at once. If you change the options without cleaning first, build will fail because some objects from the previous build will be stuck in the build folder.

I cannot reproduce this. You should clean build with all the options at once. If you change the options without cleaning first, build will fail because some objects from the previous build will be stuck in the build folder.

I tried, I also tried deleting local copy and cloning repository again.