Author Topic: At Last........exult For Oz :)  (Read 8810 times)

weasel123

  • Newbie
  • *
  • Posts: 41
    • View Profile
At Last........exult For Oz :)
« on: February 27, 2005, 03:40:47 pm »
I managed to get exult cross compiled for oz 3.5.2
Here is the working binary
http://sinhalasearch.com/exult

It works perfectly however there is a weird problem, the default fmopl midi driver seems to stutter on my 5500.

So my solution was to use the libsdl's mixer_midi driver. I had to edit the audio/Midi.cc and add the lines,

#include "midi_drivers/mixer_midiout.h"
TRY_MIDI_DRIVER(Mixer_MidiOut);

Of course this requires that you have the timidity patch set installed and that /usr/local/timidity is symlinked to that patch set, when run sdl_mixer finds the patches and you get beautiful midi music on the Z :-)

Here is a link to that binary
http://sinhalasearch.com/exult_timidity



I setup everything in the /mnt/card/u7 directory.

Here is my ~/.exult.cfg
http://sinhalasearch.com/.exult.cfg
Here is a directory listing of my /mnt/card/u7 directory......

http://sinhalasearch.com/dir_list

Hope you have fun with exult :-)

I will post the compilation instructions shortly, in a seperate mail, i am busy now and have to go......compilation involves some hacks for example the sdl-config file has to be changed etc....i will cover this soon.....

I am aware that some people are reluctant to run binaries on there Z, but rest assured that this is the real thing,  you can see in the oz updates changelog that my suggestions for prboom have resulted in it been added to the oz feed, so you know that i am not some script kiddie posting trojans here.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
At Last........exult For Oz :)
« Reply #1 on: February 28, 2005, 04:24:35 am »
Have you added a .bb file for this?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

weasel123

  • Newbie
  • *
  • Posts: 41
    • View Profile
At Last........exult For Oz :)
« Reply #2 on: March 01, 2005, 07:06:28 am »
Quote
Have you added a .bb file for this?


Si
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Unfortunately this would prove difficult as compiling exult needs some subtle changes to the OE's build structure.

Here is the steps to get a working exult binary.

First of all you have to edit the sdl-config file in the OE build directory and remove the -Dmain=SDL_main  from that file.

I had to modify the .configure file to include certain flags such as -msoft-float etc

Then specify where the sdl-config file is
SDL_CONFIG=/mnt/ss/oebk/build/tmp/staging/i686-linux/bin/sdl-config
export SDL_CONFIG

then i had to run
PATH=/mnt/ss/oebk/build/tmp/cross/bin:$PATH  ./configure -host=arm-linux  --disable-exult-studio-support --disable-debug --disable-exult-studio --disable-gimp-plugin --disable-tools --disable-compiler --enable-data --disable-timidity --disable-kmid --disable-glade --disable-x

Once the configure process finished.........i ran
PATH=/mnt/ss/oebk/build/tmp/cross/bin:$PATH make

Then the problem is that it stops saying that it cant execute tools/expack , which is understandable since we are cross compiling and the tools/expack is for the arm cpu and thus it will not execute on our x86 build system, so my solution was to copy over a tools/expack which was compiled for the x86 cpu, and then re run make , and then the build process worked ok.

If the last link line for the exult binary fails you have to add the " -lSDLmain -lSDL-1.2 -lqpe -lqte -lpthread -lpng -lts -ljpeg -lz -lSDL_mixer" switches to the last command.

Then you will get  a working exult binary.

You can find  my modified exult-1.2 source code  as exult-1.2-zaurus_oe.tar.gz at
[a href=\"http://sinhalasearch.com/exult-1.2-zaurus_oe.tar.gz]http://sinhalasearch.com/exult-1.2-zaurus_oe.tar.gz[/url]


I will create a ipk soon, for you all of you to easily install....

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
At Last........exult For Oz :)
« Reply #3 on: March 01, 2005, 07:44:22 am »
I'll start it for you then. Some of this may be wrong (like where is SDL_CONFIG required? During make, or configure, or both?). You also say that you need to add some flags into configure - you'll have to create a patch file for this (or you might be able to pass the value of the variable which holds the flags into configure using EXTRA_OECONF - drop me a line with the details and I'll tell you how if you need):


Code: [Select]
DESCRIPTION = "..."
MAINTAINER = "..."
SECTION = ""
PRIORITY = "optional"

DEPENDS = "..."

PV="1.2"
SRC_URI = "http://prdownloads.sourceforge.net/exult/exult-${PV}.tar.gz"
# check this address

S = "${WORKDIR}/exult-${PV}"

inherit autotools

EXTRA_OECONF = "--disable-exult-studio-support --disable-debug \
 --disable-exult-studio --disable-gimp-plugin --disable-tools --disable-compiler \
 --enable-data --disable-timidity --disable-kmid --disable-glade --disable-x"

do_patch() {
# this is probably not the recommended way of doing this
# ask on irc
    cp ${STAGING_BINDIR}/sdl-config ${S}/sdl-config
# the next command may have the wrong name as I've never had to copy a
# file before running patch. It is possible though.
# remember to add a patch file for this to the URI above.
    oe_runpatch
}

do_configure() {
# hopefully the next lines do what you want...;-)
    gnu-configize 'SDL_CONFIG=${S}/sdl-config'
    oe_runconf 'SDL_CONFIG=${S}/sdl-config'
}

# this is all undoubtedly wrong - you need to look at the output of the compile
# process to see what is compiled and how, to make the expack binary.
do_compile_prepend () {
    ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} tools/expack.cc -o tools/expack -Iheaders
    touch tools/expack.o
# then use this binary to do whatever it's supposed to do
    tools/expack tools/whatever_it_creates
# hopefully this gives you an idea of how to do it.
}

do_compile() {
# is this needed here? You say you might want to pass other flags to make, do that
# here if needed
    oe_runmake 'SDL_CONFIG=${STAGING_BINDIR}/sdl-config'
}

Cheers,


Si
« Last Edit: March 01, 2005, 07:53:54 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

fooman

  • Newbie
  • *
  • Posts: 49
    • View Profile
At Last........exult For Oz :)
« Reply #4 on: July 16, 2006, 03:23:09 pm »
Would it be possible to post the binary somewhere else?  I tried getting to the links mentioned below but all of them come up with errors.

Thanks!

Quote
I managed to get exult cross compiled for oz 3.5.2
Here is the working binary
http://sinhalasearch.com/exult

It works perfectly however there is a weird problem, the default fmopl midi driver seems to stutter on my 5500.

So my solution was to use the libsdl's mixer_midi driver. I had to edit the audio/Midi.cc and add the lines,

#include "midi_drivers/mixer_midiout.h"
TRY_MIDI_DRIVER(Mixer_MidiOut);

Of course this requires that you have the timidity patch set installed and that /usr/local/timidity is symlinked to that patch set, when run sdl_mixer finds the patches and you get beautiful midi music on the Z :-)

Here is a link to that binary
http://sinhalasearch.com/exult_timidity



I setup everything in the /mnt/card/u7 directory.

Here is my ~/.exult.cfg
http://sinhalasearch.com/.exult.cfg
Here is a directory listing of my /mnt/card/u7 directory......

http://sinhalasearch.com/dir_list

Hope you have fun with exult :-)

I will post the compilation instructions shortly, in a seperate mail, i am busy now and have to go......compilation involves some hacks for example the sdl-config file has to be changed etc....i will cover this soon.....

I am aware that some people are reluctant to run binaries on there Z, but rest assured that this is the real thing,  you can see in the oz updates changelog that my suggestions for prboom have resulted in it been added to the oz feed, so you know that i am not some script kiddie posting trojans here.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=68786\"][{POST_SNAPBACK}][/a][/div]
SL-C3000 running Cacko 1.23 Beta 1 with Tetsu's special Kernel v18b
Swapped out 4 GB Microdrive for 4 GB CF card
1 GB SanDisk Ultra II SD card with ext2 filesystem
128 MB swapfile on SD card
Ambicom 802.11b WiFi CF card
TRENDnet 10 Mbps Ethernet CF card

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
At Last........exult For Oz :)
« Reply #5 on: July 16, 2006, 04:55:50 pm »
Quote
Would it be possible to post the binary somewhere else?  I tried getting to the links mentioned below but all of them come up with errors.
weasel123 hasn't been around for awhile... here's his files: