Showing posts with label Compile. Show all posts
Showing posts with label Compile. Show all posts

Saturday, October 24, 2009

deb for OpenTTD

I'd like to create a proper package for OpenTTD. So I've followed the ottd compilation wiki. At the end of the wiki page it is explained how to create a deb package.
I first had to install the following packages:

apt-get install build-essential fakeroot libfontconfig1-dev
then, from the root directory of the source code,
mv os/debian .
and
dpkg-buildpackage -rfakeroot -uc -us
to build the package (ge75bb64).

I had some problems with openttd sound stuttering, to solve it I found that (thanks Rubidium in the #openttd channel) running with -s sdl:hz=22000 solves the problem. This can be also set to be the default in the openttd.cfg file, just set:
sounddriver = "sdl:hz=22000"

Monday, March 5, 2007

Bug #1940

bitbake failed compiling libX11 with the following error, with makekeys causing floating point exception. Somebody just posted a fix in the OE Bugtracker.

So I'll try to continue...
To fix the bug I edit: /stuff/tmp/work/armv5te-linux/diet-x11-X11R7.1-1.0.1-r4/libX11-X11R7.1-1.0.1/src/util/makekeys.c
and change

KeySym val;
} info[KTNUM];

#define MIN_REHASH 10
#define MATCHES 10

char tab[KTNUM];
to

KeySym val;
} info[KTNUM];

#define MIN_REHASH 15
#define MATCHES 10

char tab[KTNUM];
I created a /stuff/setVars to setup the enviroment, with the two export command in it:
export PATH=/stuff/bitbake/bin:$PATH
export BBPATH=/stuff/build:/stuff/org.openembedded.dev

Now bitbake:
# cd /stuff/
# . setVars
# bitbake freeciv
This fixed the problem.

Saturday, March 3, 2007

Trying to compile freeciv for OZ

I want to compile FreeCiv for the Zaurus:

  • Set local configuration (/stuff/build/conf/local.conf), change/insert the following lines:
    • DL_DIR = "/stuff/sources"
    • BBFILES := "/stuff/org.openembedded.dev/packages/*/*.bb"
    • MACHINE = "c7x0"
    • DISTRO = "openzaurus-unstable"
    • ASSUME_PROVIDED += "qemu-native"
    • Remove the last line in the file.
  • Setup the enviroment:
# export PATH=/stuff/bitbake/bin:$PATH
# export BBPATH=/stuff/build:/stuff/org.openembedded.dev
  • Try to compile:
# bitbake freeciv
  • No luck today - bitbake failed.