mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 16:25:58 +03:00
[GH-ISSUE #1443] Unable to build QT in Linux due to missing 'discord_rcp.h' even with -DENABLE_DISCORD_RPC=OFF #482
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#482
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @paljardine on GitHub (Oct 25, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1443
OS: Fedora Linux 40 (KDE Plasma) x86_64
Kernel: 6.11.4-201.fc40.x86_64
It seems like discord_rpc_handler.h is unable to find 'discord_rpc.h'. Adding ifdefs for ENABLE_DISCORD_RPC to the following files allows the build to proceed:
discord_rpc_handler.h

emulator.cpp

main_window.cpp

settings_dialog.cpp

There should be a way to get discord_rpc_handler to properly include discord_rpc.h, but this works as quick hack.
@gandalth commented on GitHub (Oct 28, 2024):
I confirm, I have the same issue.
I am building on "Debian Testing" with kernel 6.11 and I am using clang19. I also used -DENABLE_DISCORD_RPC=OFF.
When adding -DENABLE_QT_GUI=OFF I can successfully build the project.
@Hermiten commented on GitHub (Nov 18, 2024):
Hey maybe for you @delledev or @abouvier ? Thanks you :)
@aaalloc commented on GitHub (Nov 19, 2024):
some ifdef where missing
PR ready #1551
Edit: PR merged, issue should be closed