Help - Search - Members - Calendar
Full Version: At Last........exult For Oz :)
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > OpenZaurus/Opie/Qtopia
weasel123
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
Have you added a .bb file for this?


Si
weasel123
QUOTE(lardman @ Feb 28 2005, 01:24 AM)
Have you added a .bb file for this?


Si
*


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
http://sinhalasearch.com/exult-1.2-zaurus_oe.tar.gz


I will create a ipk soon, for you all of you to easily install....
lardman
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
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
fooman
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(weasel123 @ Feb 27 2005, 04:40 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.
*
Greg2
QUOTE(fooman @ Jul 16 2006, 03:23 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.

weasel123 hasn't been around for awhile... here's his files:
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.