Wesnoth 1.4.3 on openmoko

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderators: Forum Moderators, Developers

Wesnoth 1.4.3 on openmoko

Postby GNUtoo » September 13th, 2008, 8:59 pm

Hello,
With the help of an oe(openembedded) developper I compiled wesnoth for the openmoko(tested on om 2008.8) (he updated sdl and other libs and I made a badly written,hardcoded with disabled features package...lol)

Compilation options:
Wesnoth use the tinygui,
It doesn't have all the music in order to take less space,
It doesn't depend on python,
Fribidi is desactivated(easier to compile),
And it uses lowmem

Here are the packages:

ioboost:
http://rapidshare.com/files/144942969/l ... t.ipk.html

freetype:
http://rapidshare.com/files/144943129/l ... t.ipk.html

wesnoth:
http://rapidshare.com/files/144945999/w ... t.ipk.html

bb files(files used to build the package):
http://rapidshare.com/files/144945209/l ... r.bz2.html


HOWTO play:
xrandr -o 1 && wesnoth -r 640x480
Then you can change the zoom with + and -
As there is no mouse you can do all actions from the "Menu" and "Action" buttons on the top-left of the screen
Change the place you are clicking on the map on the top-left

HOWTO quit:
*return to the menu
*killall -9 wesnoth

What doen't work:
*network game(don't know why)
*quiting the game(returning to the menu works) (don't know why)
What works:
*single player(tested)
*multiplayer against the computer(tested) or a humain(untested)
*the bottom of the screen is not visible

PS: according to wikipedia rapidshare has a file expiration policy of 90 days of inactivity(http://en.wikipedia.org/wiki/File_hosting_service)
GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm

Re: Wesnoth 1.4.3 on openmoko

Postby GNUtoo » September 19th, 2008, 10:51 pm

here's a better bb file...i'll post the package soon on rapidshare...
Code: Select all
$ cat wesnoth_1.4.5.bb
DESCRIPTION = "fantasy turn-based strategy game"
HOMEPAGE = "http://www.wesnoth.org/"
SECTION = "games"
LICENSE = "GPL"
DEPENDS = "libsdl-image libsdl-mixer libsdl-net libsdl-ttf zlib boost"
SRC_URI = "${SOURCEFORGE_MIRROR}/wesnoth/${PN}-${PV}.tar.bz2"
EXTRA_OECONF += " --enable-tinygui --disable-python --enable-lite --enable-lowmem \
 --with-boost=${STAGING_DIR}/${HOST_SYS}/usr/ --oldincludedir=${STAGING_DIR}/${HOST_SYS}/usr/ --without-fribidi "
inherit autotools

what's new:
*exit works
*multiplayer works
*cleaner bb file!!!
GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm

Re: Wesnoth 1.4.3 on openmoko

Postby GNUtoo » September 19th, 2008, 11:09 pm

GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm

Re: Wesnoth 1.4.3 on openmoko

Postby GNUtoo » September 22nd, 2008, 11:49 am

I've :
*installed wesnoth 1.4.3 : network and quit didn't work
*upgraded to wesnoth 1.4.5: network and quit worked

then I've:
*flashed the device with the openmoko 2008.9
*installed wesnoth 1.4.5 : network and quit didn't work
*then quit worked(may be related to cache...)

here's the server output:
Code: Select all
20080922 13:34:53 info server: Statistics:      number_of_games = 0     number_of_users = 0     lobby_users = 0
20080922 13:38:13 debug network: received connection. Pending handshake...
20080922 13:38:13 debug network: pending socket activity...
20080922 13:38:13 debug network: receiving data from pending socket...
20080922 13:38:13 debug network: received handshake from client: '0'
20080922 13:38:13 debug server: 192.168.1.109   new connection accepted. (socket: 5)
20080922 13:38:13 debug network: thread found a buffer...
20080922 13:39:55 info server: Statistics:      number_of_games = 0     number_of_users = 0     lobby_users = 0


here's strace:
Code: Select all
ead(7, "\0\0\5j\5\325\0\n\0\357@(\10\21\5\6\5\7\21\6\6\5\3\21\4"..., 4096) = 4096
_llseek(7, 57344, [57344], SEEK_SET)    = 0
_llseek(7, 45056, [45056], SEEK_SET)    = 0
read(7, "\0\0\22\265\0\0\373\350\0\0\373\351\0\0\22\267\0\0\373"..., 4096) = 4096
_llseek(7, 57344, [57344], SEEK_SET)    = 0
read(7, "\222\222\247\375\216:\261{\314\0\377\377\314{\261:\271"..., 4096) = 4096
_llseek(7, 61440, [61440], SEEK_SET)    = 0
_llseek(7, 45056, [45056], SEEK_SET)    = 0
read(7, "\0\0\22\265\0\0\373\350\0\0\373\351\0\0\22\267\0\0\373"..., 4096) = 4096
_llseek(7, 57344, [57344], SEEK_SET)    = 0
read(7, "\222\222\247\375\216:\261{\314\0\377\377\314{\261:\271"..., 4096) = 4096
_llseek(7, 61440, [61440], SEEK_SET)    = 0
_llseek(7, 45056, [45056], SEEK_SET)    = 0
read(7, "\0\0\22\265\0\0\373\350\0\0\373\351\0\0\22\267\0\0\373"..., 4096) = 4096
_llseek(7, 49152, [49152], SEEK_SET)    = 0
_llseek(7, 49152, [49152], SEEK_SET)    = 0
write(4, "\201\3\n\0\20\0 \1\21\0 \1\340\1N\2:\0\375\0n\1`\0:\0\375"..., 44) = 44
read(4, "\1\1\261\2\0\0\0\0\2\0 \1(y\26\0+\0\0\0\0205\21\0\204#"..., 32) = 32
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41540000
mprotect(0x41540000, 4096, PROT_NONE)   = 0
clone(child_stack=0x41d3efe8, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x41d3f4d8, tls=0x41d3f930, child_tidptr=0x41d3f4d8) = 1636
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
gettimeofday({1224675619, 638329}, NULL) = 0
futex(0x9e5f28, FUTEX_WAKE, 1)          = 1
timer_delete(0)                         = 0
futex(0x1275c28, FUTEX_WAKE, 1)         = 1
futex(0x1275c2c, FUTEX_WAIT, 1, {0, 3352000}) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x9e5f28, FUTEX_WAKE, 1)          = 0
futex(0x41d3f4d8, FUTEX_WAIT, 1636, NULL
GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm

Re: Wesnoth 1.4.3 on openmoko

Postby GNUtoo » September 22nd, 2008, 12:09 pm

updated SDL version:
used the version from the 2008.9 repo and it worked!!!
GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm

Re: Wesnoth 1.4.3 on openmoko

Postby GNUtoo » September 28th, 2008, 10:55 am

oops libsdl 1.2.9 doesn't work well and the bug is solved with libsdl 1.2.11...
GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm

Re: Wesnoth 1.4.3 on openmoko

Postby GNUtoo » September 28th, 2008, 12:10 pm

http://rapidshare.com/files/149067751/l ... t.ipk.html
and the compilation file:
Code: Select all
$ cat libsdl-x11_1.2.11.bb
require libsdl.inc

# extra-keys.patch is missing
DEFAULT_PREFERENCE = "-1"

PR = "r6"

SRC_URI = "\
  http://www.libsdl.org/release/SDL-${PV}.tar.gz \
  file://acinclude.m4 \
  file://configure_tweak.patch;patch=1 \
  file://pagesize.patch;patch=1 \
  file://kernel-asm-page.patch;patch=1 \
  file://sdl-cdfix.patch;patch=1 \
"

EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --enable-timers --enable-endian \
                --enable-file --enable-oss --enable-alsa --disable-esd --disable-arts \
                --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \
                --disable-mintaudio --disable-nasm --enable-video-x11 --disable-video-dga \
                --enable-video-fbcon --disable-video-directfb --disable-video-ps2gs \
                --disable-video-xbios --disable-video-gem --disable-video-dummy \
                --enable-video-opengl --enable-input-events --enable-pthreads \
                --disable-video-picogui --disable-video-qtopia --enable-dlopen"



Code: Select all
$ cat libsdl.inc
DESCRIPTION = "Simple DirectMedia Layer - X11 Edition"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "alsa-lib mesa virtual/libx11 libxext"
DEPENDS_avr32 = "alsa-lib virtual/libx11 libxext"
PROVIDES = "virtual/libsdl"
LICENSE = "LGPL"

SRC_URI = "\
  http://www.libsdl.org/release/SDL-${PV}.tar.gz \
  file://extra-keys.patch;patch=1 \
  file://pagesize.patch;patch=1 \
  file://remove_path.patch;patch=1 \
  file://acinclude.m4"
S = "${WORKDIR}/SDL-${PV}"

inherit autotools binconfig pkgconfig

EXTRA_OECONF = "<overwrite me>"

FILES_${PN} = "${libdir}/lib*.so.*"
FILES_${PN}-dev += "${bindir}/*config"

do_configure_prepend() {
        rm -f ${S}/acinclude.m4
        cp ${WORKDIR}/acinclude.m4 ${S}/
}

do_configure_append () {
        cd ${S}

        # prevent libtool from linking libs against libstdc++, libgcc, ...
        cat ${TARGET_PREFIX}libtool | sed -e 's/postdeps=".*"/postdeps=""/' > ${TARGET_PREFIX}libtool.tmp
        mv ${TARGET_PREFIX}libtool.tmp ${TARGET_PREFIX}libtool
}

do_stage() {
        autotools_stage_all
        rm ${STAGING_LIBDIR}/libSDL.la
}
GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm

Re: Wesnoth 1.4.3 on openmoko

Postby schorhr » September 9th, 2009, 12:05 pm

Hello GNUtoo, still a recent or an older version available?
:-)
Any chance to see it on OPKG?
I just recieved my Freerunner and would like to stuff wesnoth into my pocket :mrgreen:
http://wap.cc/dectop/wiki
60 Euro Mini-PC Sammelbestellung
schorhr
 
Posts: 1
Joined: January 9th, 2008, 4:51 pm

Re: Wesnoth 1.4.3 on openmoko

Postby GNUtoo » January 25th, 2010, 1:35 pm

it's in openembedded...you could try to:
*install SHR
*bitbake it
btw I'm connected in some irc channel including the #oe channel in freenode...just in case you need help.
else I've binaries packages but they are not guaranteed to work well with your current installation
GNUtoo
 
Posts: 16
Joined: September 13th, 2008, 6:34 pm


Return to Release Announcements, Compiling & Installation

Who is online

Users browsing this forum: No registered users and 2 guests