Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Update Linux information in the wiki's "Compiling" page #971

Open
sukibaby opened this issue Feb 23, 2025 · 3 comments
Open

[Request] Update Linux information in the wiki's "Compiling" page #971

sukibaby opened this issue Feb 23, 2025 · 3 comments

Comments

@sukibaby
Copy link

sukibaby commented Feb 23, 2025

I ran into some unexpected trouble building Snes9x for arm64 on a Linux install which only had the en_US.UTF-8 locale generated.

orangepi@orangepizero3:/home/opi/snes9x/gtk/build# ninja
[6/230] Generating de.gmo
FAILED: de.gmo /home/opi/snes9x/gtk/build/de.gmo
cd /home/opi/snes9x/gtk && GETTEXT_MSGFMT_EXECUTABLE-NOTFOUND -o /home/opi/snes9x/gtk/build/de.gmo po/de.po   /bin/sh: 1: GETTEXT_MSGFMT_EXECUTABLE-NOTFOUND: not found
[11/230] Building CXX object CMakeFiles/jma.dir/home/opi/snes9x/jma/lzmadec.cpp.o
ninja: build stopped: subcommand failed.   

I resolved this by:

  1. Installing gettext with apt (possibly unnecessary? didn't verify if it builds without gettext)
  2. Uncommenting de_DE.UTF-8, es_ES.UTF-8, fr_FR.UTF-8, ja_JP.UTF8 in /etc/locales.gen
  3. Running locale-gen as root

After that, I could build with ninja normally and everything worked as expected.

Since one can't propose changes to the Wiki (https://github.com/snes9xgit/snes9x/wiki/Compiling), I'm requested the changes here.

Thank you!

@bearoso
Copy link
Collaborator

bearoso commented Feb 25, 2025

You don't need the system locales. Installing the gettext executable alone is enough. The compile page lists "all dependencies of gtkmm" which includes gettext. I can't list all the dependencies down to the last library because it would be an enormous list, and some systems package things in different ways.

@sukibaby
Copy link
Author

Thanks for the clarification! I misinterpreted that line as "whatever else the package manager installs with gtkmm", & I appreciate the correction.👍

@rofl0r
Copy link

rofl0r commented Feb 25, 2025

you may also use https://github.com/sabotage-linux/gettext-tiny if the gnu gettext suite is too bloated for you... though i guess it would be even nicer if gettext use could be disabled entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants