FreeSansBold.odf

FreeSansBold.odf

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
Gallaecio
Posts: 4
Joined: 31 Dec 2010, 10:43

FreeSansBold.odf

Post by Gallaecio »

Ok, I've already seen the topic about the Arch Linux guy for whom the game was not starting because of that fon't not being able to load. He found out it wasn't between the files of the package, and solved it with a symlink to that font in other package.

My problem is I do have that font in the final package. It just can't find it. This is how I compile it:

Code: Select all

  cmake \
    -DAPPLICATIONS_DIR=/usr/share/applications \
    -DBINDIR=/usr/bin \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DDATADIR=/usr/share/spring \
    -DLIBDIR=/usr/lib \
    -DMIME_DIR=/usr/share/mime \
    -DPIXMAPS_DIR=/usr/share/pixmaps \
    ..
  make
  make install
I still get a dialog window with this text:
Failed to load font: fonts/FreeSansBold.otf
And this output:

Code: Select all

[f=0000000] Couldn't find font 'fonts/FreeSansBold.otf'.
[f=0000000] Couldn't find font 'fonts/FreeSansBold.otf'.
[f=0000000] Incorrect/Missing content: Failed to load font: fonts/FreeSansBold.otf
Anyone knows what the problem is? Any missing option for Cmake?

PS: I have so many options because the way I had it before wasn't working as I expected it to:

Code: Select all

cmake
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  -DDATADIR=share/spring \
  ..
Data was being put not relative to /usr, so /share/spring. Tried with -DDATADIR=/usr/share/spring, but then it got to /usr/share/usr/share/spring, or something like that.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: FreeSansBold.odf

Post by abma »

on make install, is FreeSansBold.otf installed? if so.. where?
Gallaecio
Posts: 4
Joined: 31 Dec 2010, 10:43

Re: FreeSansBold.odf

Post by Gallaecio »

I solved it not using a build directory but compiling right in the extracted folder. I think CMakeLists are not OK, because using a build folder should be possible (and is actually the cleanest way to do it).

Thanks for the answer, and hope this can be fixed.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: FreeSansBold.odf

Post by abma »

make install works as for example ubuntu packages are build with it.

maybe looking inside the ebuild (gentoo) helps:

http://cgit.springlobby.info/cgit/overl ... 7.1.ebuild

for my local compiles i only use -DCMAKE_INSTALL_PREFIX=/home/abma/local, and that works fine... (all files are then in one directory, but for my case thats ok)

if you only want to get it run, then your solution is fine :)
Gallaecio
Posts: 4
Joined: 31 Dec 2010, 10:43

Re: FreeSansBold.odf

Post by Gallaecio »

This is the change I had to make for it to install OK: http://gitorious.org/chakra-packages/ga ... a8554e94eb

Hope you understand now my previous message. I was using a 'build' directory to make a clean install inside it (so built files are not mixed with source ones), and was expecting make install to work fine later. But it seems it doesn't, make install doesn't work OK if called from the build directory.
Post Reply

Return to “Linux”