WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Moc needs libasound.  (Read 10669 times)

Offline 4-stroke

  • Jr. Member
  • **
  • Posts: 72
Moc needs libasound.
« on: October 13, 2009, 10:29:32 PM »
I have OSS installed and tried to install moc via appbrowser. When I try to run it there's an error:

Code: [Select]
mocp: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
Edit:

Installed libasound.tczl and moc starts but won't display any mp3's on my fat32 fomatted usb-stick.

Some more errors:

Code: [Select]
tc@box:~$ mocp
Can't load plugin libmp3_decoder: file not found
Running the server...
Trying ALSA...
ALSA lib conf.c:3009:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default
ALSA lib conf.c:3009:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
Trying OSS...
« Last Edit: October 13, 2009, 10:38:46 PM by 4-stroke »
A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #1 on: October 14, 2009, 01:06:59 AM »
I have OSS installed and tried to install moc via appbrowser. When I try to run it there's an error:

Code: [Select]
mocp: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
Edit:

Installed libasound.tczl and moc starts but won't display any mp3's on my fat32 fomatted usb-stick.

Just retested on a stock TC 2.3.1 MOC works fine with ALSA and plays mp3 from a stick; you do not need libasound, only its listed dependencies. Works with OSS too adding libasound. There is an error message 'Can't read from mixer' but works and playbacks mp3 too, the only issues is a slow keyboard response.

Unfortunately can't test with ALSA on 2.4.1 because ALSA doesn't work. With OSS on 2.4.1 I get the same missing mixer error on 2.3.1 and mp3 file is not recognized. Will investigate when I got some time.
« Last Edit: October 14, 2009, 01:55:54 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #2 on: October 14, 2009, 03:11:05 AM »
Just recompiled MOC on 2.4.1 now it plays back mp3 with OSS at least on my development machine.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline 4-stroke

  • Jr. Member
  • **
  • Posts: 72
Re: Moc needs libasound.
« Reply #3 on: October 14, 2009, 08:27:48 AM »
Thank you! 8)
I'll reinstall it and give it a try later tonight.
A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #4 on: October 14, 2009, 08:38:24 AM »
Thank you! 8)
I'll reinstall it and give it a try later tonight.

Wait! It is recompiled, but not yet submitted, it is only on my machine. Before submitting I want to test it a bit more, but I can send you a download link in a PM for testing.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline 4-stroke

  • Jr. Member
  • **
  • Posts: 72
Re: Moc needs libasound.
« Reply #5 on: October 14, 2009, 08:44:52 AM »
Thank you! 8)
I'll reinstall it and give it a try later tonight.

Wait! It is recompiled, but not yet submitted, it is only on my machine. Before submitting I want to test it a bit more, but I can send you a download link in a PM for testing.

Oh, sorry. I forgot this isn't the puppy linux forum.  ;)

No need to rush.
A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #6 on: October 14, 2009, 11:55:25 AM »
No problem. However you will get it  ;D

Let me know if someone else want to test it.
« Last Edit: October 14, 2009, 12:10:30 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #7 on: October 15, 2009, 08:13:09 AM »

Installed libasound.tczl and moc starts but won't display any mp3's on my fat32 fomatted usb-stick.


libmad.tczl is missing in the dependency list, my mistake. Install it additionally. It is the mpeg decoder package.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Moc needs libasound.
« Reply #8 on: October 15, 2009, 08:18:36 AM »
libmad used to be in the base, which probably covered up the lack of the libmad dep...

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #9 on: October 15, 2009, 08:42:35 AM »
libmad used to be in the base, which probably covered up the lack of the libmad dep...

Not in 2.4.1 and it is logical, why mpeg decoder has to be part of the base?

If you install the listed deps, OSS and libasaound MOC can't load the mp3 plugin which makes .mp3 unknown, therefore not listed by the browser. Adding libmad plugin loads, browser shows mp3 files but still can't play back, reporting 'Can't decode' error. Something is still missing. On my develpment system full with libraries it works, so I'm just trying to find which one is still missing.

I compiled MOC on 2.3 and for sure tested it before submitted.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline 4-stroke

  • Jr. Member
  • **
  • Posts: 72
Re: Moc needs libasound.
« Reply #10 on: October 15, 2009, 10:06:14 AM »
It's working for me now with libmad installed.
A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #11 on: October 15, 2009, 10:08:53 AM »
It's working for me now with libmad installed.

Which TC/MC version and with ALSA or OSS? If OSS, do you see the mixer error message?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline 4-stroke

  • Jr. Member
  • **
  • Posts: 72
Re: Moc needs libasound.
« Reply #12 on: October 15, 2009, 10:12:14 AM »
It's working for me now with libmad installed.

Which TC/MC version?


TC 2.4.1

I was messing around making a tcz with opera10 and made a tcz with libaudio for it to work.
That can't be it can it? ???

Edit: Libaudio not libasound...
« Last Edit: October 15, 2009, 10:18:39 AM by 4-stroke »
A learning experience is one of those things that say, "You know that thing you just did? Don't do that." - Douglas Adams

Offline PingPing

  • Jr. Member
  • **
  • Posts: 99
Re: Moc needs libasound.
« Reply #13 on: October 16, 2009, 05:13:49 AM »
I'm using 2.4.1 and I can't get mocp to work.
loading libmad allows me to see my mp3 files but it still won't let me play them (decoder error).
I can't see libaudio listed in the tczls either.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Moc needs libasound.
« Reply #14 on: October 16, 2009, 05:18:02 AM »
A new version is submitted, wait till it appears in the repo and try it then. It is tested with a bare 2.4.1 and OSS. Not with ALSA as ALSA till doesn't work with 2.4.1 on my machines (2.3.1 is OK).
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."