Page 1 of 1

Linux Midi

Posted: Tue Jan 28, 2003 12:51 pm
by Dirty Hairy
Might be I'm asking stupid stuff (I'm quite new to Linux), but is there any way of telling exult to use the /dev/seq sequencer for midi output (and NOT the ALSA-system)? I own a Terratec EWS64 whose chipset is not supportesd by ALSA, and finally managed it to work, but it just supports OSS...

Re: Linux Midi

Posted: Tue Jan 28, 2003 2:00 pm
by Dominus
No idea as I'm not a Linux guy. But why not check out the 1.1 source that gives you the choice to play digital music instead of midi?

Re: Linux Midi

Posted: Tue Jan 28, 2003 4:43 pm
by Dirty Hairy
Already thought of this ;-). But that'll have to wait until I have enough time and patience (after all, the oggs are quite a download if you don't have a broadband connection...)

Re: Linux Midi

Posted: Thu Jan 30, 2003 2:41 pm
by Dominus
too true! atm I'm bound to a slow modem connection as well. I'm just glad I got them when I still had broadband (damn this moving together with my gf - cost me a couple of years of my life AND my broadband...)

Re: Linux Midi

Posted: Thu Jan 30, 2003 3:39 pm
by Dirty Hairy
Hehe, we gonna get a DSL connection in our flat soon... Gonna get them then... :-)

Re: Linux Midi

Posted: Sun Feb 02, 2003 4:28 pm
by Dirty Hairy
Hmm, just tried to compile the 1.1-branch, and ./configure stops... As I said, I'm relatively new to linux; perhaps someone can understand better than I what's going wrong...

autogen.sh output:

aclocal: configure.in: 288: macro `AM_PATH_SDL' not found in library
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
You are now ready to run ./configure

./configure output:

creating cache ./config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
./configure: line 658: syntax error near unexpected token `$PACKAGE,$VERSION,no-define'
./configure: line 658: `AM_INIT_AUTOMAKE($PACKAGE,$VERSION,no-define)'

I'm using the free Mandrake 9.0 distribution...

Re: Linux Midi

Posted: Sun Feb 02, 2003 11:05 pm
by wjp
> aclocal: configure.in: 288: macro `AM_PATH_SDL' not found in library

that's the real error, most likely. Do you have an sdl.m4 file installed anywhere?

Re: Linux Midi

Posted: Sun Feb 02, 2003 11:51 pm
by nadir
Do you have the dev packages for SDL installed ?

Re: Linux Midi

Posted: Mon Feb 03, 2003 8:52 am
by Dirty Hairy
Yupp, didn't have them istalled; I installed them and tried again... Then it complained about SDL-mixer missing, so I installed it. Now it compiles (though gcc randomly crashes with a "segmentation fault" - I've already ancountered that issue before, e.g. when compiling SDL-mixer, I wonder what the problem is; running make again makes gcc resume its work, though), but it stops after some time in Timidity_binary.cc...
Console output:

/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../headers -I./../../conf -I./../.. -I./.. -I./../../files -I./../../imagewin -I./../../shapes -I/usr/include/SDL -D_REENTRANT -DXWIN -O2 -Wno-long-long -I../../conf -I../../files -g -O2 -c Timidity_binary.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../headers -I./../../conf -I./../.. -I./.. -I./../../files -I./../../imagewin -I./../../shapes -I/usr/include/SDL -D_REENTRANT -DXWIN -O2 -Wno-long-long -I../../conf -I../../files -g -O2 -Wp,-MD,.deps/Timidity_binary.pp -c Timidity_binary.cc -o Timidity_binary.o
In file included from Timidity_binary.h:23,
from Timidity_binary.cc:40:
../Midi.h:28:23: SDL_mixer.h: No such file or directory
Timidity_binary.cc:42: syntax error before `*' token
Timidity_binary.cc: In constructor `Timidity_binary::Timidity_binary()':
Timidity_binary.cc:51: `Mix_HookMusicFinished' undeclared (first use this function)
Timidity_binary.cc:51: (Each undeclared identifier is reported only once for each function it appears in.)
Timidity_binary.cc: In member function `virtual void Timidity_binary::stop_track()':
Timidity_binary.cc:63: `Mix_HaltMusic' undeclared (first use this function)
Timidity_binary.cc:64: `mixermusic' undeclared (first use this function)
Timidity_binary.cc:66: `Mix_FreeMusic' undeclared (first use this function)
Timidity_binary.cc: In member function `virtual bool Timidity_binary::is_playing()':
Timidity_binary.cc:82: `Mix_PlayingMusic' undeclared (first use this function)
Timidity_binary.cc: In member function `virtual void Timidity_binary::start_track(XMIDIEventList*, bool)':
Timidity_binary.cc:95: `Mix_LoadMUS' undeclared (first use this function)
Timidity_binary.cc:96: `Mix_PlayMusic' undeclared (first use this function)
Timidity_binary.cc:97: `MIX_MAX_VOLUME' undeclared (first use this function)
Timidity_binary.cc:97: `Mix_VolumeMusic' undeclared (first use this function)
make[3]: *** [Timidity_binary.lo] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis »/home/pestix/Downloads/Exult/exult/audio/midi_drivers«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/home/pestix/Downloads/Exult/exult/audio«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/pestix/Downloads/Exult/exult«
make: *** [all-recursive-am] Fehler 2

Re: Linux Midi

Posted: Mon Feb 03, 2003 1:11 pm
by Dirty Hairy
OK, works now; I compiled it withou timidity... I wonder what causes the gcc/g++ crash, though....

Re: Linux Midi

Posted: Mon Feb 03, 2003 11:32 pm
by nadir
GCC crashes randomly ?
You may want to go here

Re: Linux Midi

Posted: Tue Feb 04, 2003 1:32 am
by Dirty Hairy
Hmmm, thanks Nadir. I feared as much; there are also other indicators for a memory corruption problem. Time to investigate... At least, I'll have something to do for term break...

Re: Linux Midi

Posted: Tue Feb 04, 2003 9:00 am
by Dirty Hairy
OK, found the problem: the processor was clocked to fast (was 550, runs fine with 500); strange it even says 550 on the top...
Well, anyway, last question: how do I set up the ogg music (didn't find anything in the manual)...?

Re: Linux Midi

Posted: Tue Feb 04, 2003 8:01 pm
by SB-X
The ogg music comes with a README file.

Re: Linux Midi

Posted: Wed Feb 05, 2003 3:54 am
by Dirty Hairy
Whoops, okay, thank you... ;-)