mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 16:25:58 +03:00
[GH-ISSUE #1195] [Linux] shadPS4 no longer builds #378
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#378
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 @Shoegzer on GitHub (Oct 2, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1195
Builds are failing on the latest commits:
System information:
61f750bdd95e12303b06(I can bisect if necessary)@rupponi commented on GitHub (Oct 2, 2024):
Could have been a temporary bug, I'm on Mint 22 with kernel 6.8 as well and got a successful automated build on commit
75adf7cjust now. Could you try building off of that commit?@Shoegzer commented on GitHub (Oct 2, 2024):
Thanks, though I just tried again against the most current commit and it still fails, so it's unfortunately not temporary. I also compiled against clang, but this too failed for the same reason.
What are your Qt6 and Vulkan SDK versions, out of curiosity? Clearly there's a difference between your build environment and minme. In any event I'll try to bisect to the problem commit.
@Shoegzer commented on GitHub (Oct 2, 2024):
Update: From the log excerpt above it seems to be complaining that
glslang/Include/visibility.hdoesn't exist - however I can confirm that it does:Could this be an upstream issue with glslang (thinking a path problem in
logger.h?)@rupponi This confuses me further how you could get the project to compile, if you haven't tried a clean build with a fresh build directory, can you try that and let me know if it works for you?
@Shoegzer commented on GitHub (Oct 3, 2024):
Update: Okay it seems there IS an upstream error with glslang. Building will succeed if the following files are modified:
The files must be modified as follows:
FROM:
#include "glslang/Include/visibility.h"TO:
#include "../glslang/Include/visibility.h"@BigTreezZ commented on GitHub (Oct 3, 2024):
I can confirm this fixes the compiling issue. I am now able to compile successfully on Arch Linux.
@qurious-pixel commented on GitHub (Oct 3, 2024):
It seems the included header directory is failing to include SPIRV. I do not see this failure to build in Ubuntu. There may be a hint in the CMakeLists.txt from the externals folder.
shadPS4/externals/glslang/SPIRV/Logger.hwill be looking for the file inshadPS4/externals/glslang/glslang/Include/visibility.h@abouvier commented on GitHub (Oct 3, 2024):
You can try to add
file(COPY glslang/glslang DESTINATION glslang FILES_MATCHING PATTERN "*.h")afteradd_subdirectory.@Shoegzer commented on GitHub (Oct 5, 2024):
Thanks @abouvier. I tried that but I get the same error unfortunately.
Trying to understand why some builds such as the ones performed here with Linux Mint 22 are failing, while others on Mint or Ubuntu (upstream from Mint) succeed. What is the difference in build environments? The one here is pretty much stock. Are you all building with clean source/build directories?
@maxphilippov commented on GitHub (Oct 5, 2024):
Same happens on Windows/MSYS MinGW64. Unsurprisingly manually fixing paths helps, but @abouvier solution doesn't.
@Legislate9214 commented on GitHub (Oct 9, 2024):
This indeed worked for me on Arch Linux, I managed to compile from source and run the executable in the build directory.