View Single Post
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#27
Originally Posted by kirillkk View Post
Yes, the normal way to handle HW keys in MOC would be to modify xterm. Terminal apps rely on terminal to deliver keypresses.
Hi kirillkk, welcome back ! :-)

I was waiting for your return to post some feedback on my installation of your MOC port, by your instructions in the USB Host topic :

I don't remember which libraries are needed. I found the following debs in apt archives, they are probably needed by moc plugins.
libsamplerate0_0.1.3-1maemo0_armel.deb
libvorbis0a_1.2.3.tk1_armel.deb
libvorbisenc2_1.2.3.tk1_armel.deb
libvorbisfile3_1.2.3.tk1_armel.deb
libogg0_1%3a1.1.3-2.tk2_armel.deb
libresample1_0.1.3-5_armel.deb
libid3tag0_0.15.1b-10maemo1_armel.deb
libmad0_0.15.1b-2.1maemo1_armel.deb
libflac8_1.2.1-1.1maemo3_armel.deb

Installation script follows:
-------------------
tar xzf moc.tar.gz
cd moc
mkdir -p /usr/local/lib/moc/decoder_plugins
mv *.so /usr/local/lib/moc/decoder_plugins
mv mocp /usr/local/bin
ln -s /usr/local/bin/mocp /usr/bin/mocp
mkdir /home/user/.moc
mv config n900_keymap /home/user/.moc
cd ..
rmdir moc
I'm guessing you were quoting from memory -- that's all right, I never take notes either :-)

Here are the differences I've seen on my system :

1) after installing the files as above, the first few tries at starting MOC failed with messages about not finding this or that library.
I had to apt-get install libsamplerate0, libncursesw5 and libflac8 just to get it going.

2) even then, before MOC starts up it complains:
Can't load plugin libmp3_decoder: file not found
Can't load plugin libspeex_decoder: file not found
Can't load plugin libvorbis_decoder: file not found
I suppose it wouldn't even play mp3 files in this state, but I only tried with FLAC :-)

3) the Enter key still doesn't work in MOC. I just edited n900_keymap and used DELETE :-)

4) One thing that puzzled me a lot at first was MOC refusing to start with this message:
FATAL_ERROR: The terminal is too small after resizing
I had to unzoom xterm to get it running again :-)

Any idea what is needed to get plugin libmp3_decoder working ?
__________________
maemo blog
 

The Following User Says Thank You to fpp For This Useful Post: