ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.26k stars 158 forks source link

[C API] Compilation issues with flatbuffers - with solutions #365

Open Jack121298 opened 1 month ago

Jack121298 commented 1 month ago

System Information Please provide the following information about your system:

Following guide to build steam-audio, I get errors with flatbuffers.

1st error: "C++ versions less than C++14 are not supported."

2nd error: flatbuffers requires > C++ 17

3rd error: -Werror=stringop-overflow warning thrown as error when building flatpacks with gcc version 14.1. Similar issue seen here

Solutions All issues can be fixed by adding these flags into dependencies.json for flatpacks

"-DCMAKE_CXX_STANDARD=17", "-DCMAKE_CXX_FLAGS=-Wno-stringop-overflow"

I'd love to make a pull request but it is something I've never done before. Let me know if I can!

lakulish commented 1 month ago

@Jack121298 Feel free to open a pull request.