Closed guihkx closed 4 years ago
Could you check jackun_wip
branch? There might be some out-of-bounds errors lurking still.
It's working!
Thank you very much. Feel free to close this issue anytime!
Is it easier to set the define with meson_options.txt? Can suggest a better name for the var too :D
Is it easier to set the define with meson_options.txt?
I'll be honest, I'm not exactly sure what you mean by that. Judging by the file name, I'm assuming that's how you'd set the options for meson...? At least for Flatpak, setting an option is really easy.
We use a "special" YAML or JSON file, called the Flatpak manifest, which is used to automate the building and installation process of your app/extension (in this case, it's an extension to Steam, but it doesn't work yet). So, right now, I'm not changing any of the meson options.
This is how my Flatpak manifest looks like (it won't make much sense if you are not familiar with them, lol):
https://gist.github.com/guihkx/9abc2e4173bb42187077253260e9c342
Can suggest a better name for the var too :D
That name is fine, IMO :)
Hm, yeah, it's basically the same anyway https://mesonbuild.com/Build-options.html#using-build-options
Closing as fixed
FYI: You can safely disregard this issue if you wish, since by default MangoHud doesn't enable GCC hardening flags, such as
-D_GLIBCXX_ASSERTIONS
.But I decided to report it here anyway, just in case. Quick background info: I'm building a Flatpak package for MangoHud. Currently, it can build both 64 and 32-bit libraries just fine, and they mostly work too (well, except for this error and the missing
glxinfo
binary in Flatpak).However, the installation part is a problem at the moment. I have to manually copy the
.so
to whatever Flatpak app I want to use the HUD on (e.g. Steam, Lutris), due to some Flatpak restrictions. I'm still trying to find a solution to install MangoHud "globally".Anyway, back to the issue. To build Flatpak apps we use
flatpak-builder
, and by default they enable these hardening flags in GCC (they can be bypassed though, that's why I said you can disregard this issue).But a few commits ago, MangoHud was working just fine with the build made by
flatpak-builder
. Now, it fails to run with the following error:I'm not a C/C++ programmer, so it was kinda difficult for me to find out where the error was coming from, especially because I have
mango
/lib32-mango
installed here on Arch and they were working just fine. After some Googling, I tried to modify thePKGBUILD
to include just the-D_GLIBCXX_ASSERTIONS
flag and I've also disabled stripping the debug info from the binary.Bingo! Here's what
gdb
tells me:If you chose to fix this (but again, you don't have to), let me know if I can provide any other information.
Thanks.