Page 1 of 1
/etc/oss.conf and Ubuntu
Posted: Sun Feb 03, 2013 3:29 am
by L29Ah
I have read
http://manuals.opensound.com/developer/programming.html and included that in my Makefile:
Code: Select all
include /etc/oss.conf
CFLAGS += -I$(OSSLIBDIR)/include/sysIt worked flawlessly on Gentoo. But in Ubuntu I'm faced with that:
Code: Select all
‰ cat etc/oss.conf
OSSETCDIR=/etc/oss4
OSSVARDIR=/var/lib/oss4
OSSDKMSDIR=/var/lib/dkms/oss4/4.2-build2005So cc fails at finding <soundcard.h>. Moreover, there's no usual OSSLIBDIR location, /usr/lib/oss. The oss4-dev package installs soundcard.h to /usr/include/linux/, replacing the original header. How should I handle such distros? Or is it a bug in Ubuntu package?
Re: /etc/oss.conf and Ubuntu
Posted: Sun Feb 03, 2013 12:22 pm
by igorzwx
L29Ah wrote:I have read
http://manuals.opensound.com/developer/programming.html and included that in my Makefile:
Code: Select all
include /etc/oss.conf
CFLAGS += -I$(OSSLIBDIR)/include/sysIt worked flawlessly on Gentoo. But in Ubuntu I'm faced with that:
Code: Select all
‰ cat etc/oss.conf
OSSETCDIR=/etc/oss4
OSSVARDIR=/var/lib/oss4
OSSDKMSDIR=/var/lib/dkms/oss4/4.2-build2005So cc fails at finding <soundcard.h>. Moreover, there's no usual OSSLIBDIR location, /usr/lib/oss. The oss4-dev package installs soundcard.h to /usr/include/linux/, replacing the original header. How should I handle such distros? Or is it a bug in Ubuntu package?
That OSS4 package in Ubuntu/Debian repositories is known to be buggy.
You can build OSS4 from mercurial.
The manual is here:
https://help.ubuntu.com/community/OpenS ... rom_SourceYou can test OSS4 on a LiveCD without installing Ubuntu on your computer.
Re: /etc/oss.conf and Ubuntu
Posted: Thu Feb 07, 2013 2:13 pm
by tysonedriscoll
Can I test OSS4 on LiveCD booted from USB?
Re: /etc/oss.conf and Ubuntu
Posted: Thu Feb 07, 2013 2:36 pm
by igorzwx
tysonedriscoll wrote:Can I test OSS4 on LiveCD booted from USB?
Yes.
Step 1: Boot LiveCD or LiveUSB.
Step 2: Remove PulseAudio.
Step 3: Install OSS4 over ALSA.
Step 4: Run OSS4:
NOTE: You do not need to unload ALSA modules before running OSS4.
Step 5: Run osstest:
and so on.
The [outdated] manual is here:
viewtopic.php?f=3&t=3933&p=17359#p17316
Re: /etc/oss.conf and Ubuntu
Posted: Thu Feb 07, 2013 2:49 pm
by tysonedriscoll
Thanks for quick response!

Re: /etc/oss.conf and Ubuntu
Posted: Fri Feb 08, 2013 1:20 pm
by cesium
As for the original question, /etc/oss.conf is just text. You can just add the correct OSSLIBDIR to /etc/oss.conf...