mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[GH-ISSUE #659] Linux Mint Build ERROR: error: ‘byteswap’ is not a member of ‘std’ - SOLVED #155
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#155
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 @GHFear on GitHub (Aug 30, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/659
I am compiling source using g++-13 on Linux Mint and it's failing on:
[ 81%] Building CXX object CMakeFiles/shadps4.dir/src/core/file_format/pkg.cpp.o
Have had the same problem for about a month, so it's likely something on my end
(perhaps older unsupported dependencies since it's Mint)
My buddy who is on Arch with g++-13 has never had a problem.
Here is a log.
shadps4build.log
EDIT: I created a patched fork that works out of the box for Linux Mint 22 users.
Link: https://github.com/GHFear/shadPS4/tree/main
I had to patch error.h and install more dependencies than for most Linux distributions, but it works with a 1-click build now. Just run setup.sh and watch it build. :)
Hope this can be of help to people.
@abouvier commented on GitHub (Aug 30, 2024):
You are using GCC 11.4.0 at one point. Your aliases are not used by cmake.
@GHFear commented on GitHub (Aug 30, 2024):
Thank you. I totally missed that.
I now set the compilers inside cmakelists.txt using these commands:
and it now gets to 89% but errors at this location:
shadps4build.log
EDIT 1:
It's failing when building the avplayer library. (perhaps somebody reading this has had the same experience?)
I could probably go in and fix the errors myself, but I don't really want to edit the source code to make it compile.
At least not for the first compile.
I want to be able to start from the same source and work from there.
EDIT 2:
I fixed it by changing the definition of av_err2string(int errnum);
Write this code in the
externals/ffmpeg-core/include/libavutil/error.hfile and rebuild project.My cmake project now builds to 100%.
EDIT 3:
If you want to actually run ShadPS4 on Linux Mint, you need to upgrade to Mint 22 to get the proper dependencies (glibc version > 2.38) from Ubuntu.
I just tried it and that did the trick.
EDIT 4: I created a patched fork that works out of the box for Linux Mint 22 users.
Link: https://github.com/GHFear/shadPS4/tree/main
I had to patch error.h and install more dependencies than for most Linux distributions, but it works with a 1-click build now. Just run setup.sh and watch it build. :)
Hope this can be of help to people.
It's my first time building something of this scale with cmake on Linux.
Only ever used it for my own projects where I know exactly what's needed to make it build.
So this is quite a different experience.