jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.15k stars 1.07k forks source link

/usr/local/games/angband: Couldn't load the requested font. (10x20) #1290

Open ghost opened 7 years ago

ghost commented 7 years ago

On CentOS 6 Installed from source (cloned git tree today) I followed the instructions at http://trac.rephial.org/wiki/Compiling The goal is to be able to build the package and install it with FPM. (Just to learn) I am getting: /usr/local/games/angband: Couldn't load the requested font. (10x20) when I try to launch the game. Let me know what other information I can provide.

nicobrevin commented 7 years ago

Quite often you need to compile and build the with a prefix option that needs to match where you ultimately install in to. E.g ./configure --prefix /usr/games && make install && fpm --prefix /usr/games $paths

On Fri, 17 Feb 2017 06:35 Vladinatrix, notifications@github.com wrote:

On CentOS 6 Installed from source (cloned git tree today) I followed the instructions at http://trac.rephial.org/wiki/Compiling The goal is to be able to build the package and install it with FPM. (Just to learn) I am getting: /usr/local/games/angband: Couldn't load the requested font. (10x20) when I try to launch the game. Let me know what other information I can provide.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jordansissel/fpm/issues/1290, or mute the thread https://github.com/notifications/unsubscribe-auth/AARCJWD7f4vSw37-O47s1FrCm67i8Nl3ks5rdIjbgaJpZM4MDUZY .

fruviad commented 7 years ago

Another option. It could be that you've compiled the executable to use a "Frontend" that the system cannot support.

If you run "./configure" in the source directory, you'll get a bunch of output with end with a summary that may look similar to this:

---- Frontends ---- -- Curses Yes -- X11 Yes -- SDL Disabled -- Windows Disabled -- Test No -- Stats No

-- SDL sound Disabled

If more than one of the first three options -- Curses, X11, and SDL -- are listed as "Yes", then try disabling them all and and recompiling with only one option for "Curses" / "X11" / "SDL" enabled at a time. Try each of the three options, and you may get one that works.

Set these to "Disabled" or "Enabled" by running "./configure" with the appropriate options: --disable-curses or --enable-curses, --disable-sdl or --enable-sdl, --disable-x11 or --enable-x11

Vladinatrix commented 7 years ago

Problem persists with defaults on CentOS 7 build as well. However, the following worked for me:

./configure --prefix=$HOME --disable-x11 --disable-win --disable-sdl --enable-curses --with-private-dirs ... snip ... Configuration:

Install path: /home/scott.lockwood binary path: /home/scott.lockwood/games config path: /home/scott.lockwood/etc/angband/ lib path: /home/scott.lockwood/share/angband/ doc path: /home/scott.lockwood/share/doc/angband/ var path: (not used) (with private save and score files in ~/.angband/Angband/)

-- Frontends --

make make all make install

cd ~/ games/angband

Works!