[CELT-dev] celtenc 0.11.1 not generating encoded file on OSX Lion

Baek Chang baeksan at ccrma.stanford.edu
Thu Nov 17 20:11:27 PST 2011


I'm trying to compile opus-tools, but it seems to be relying on OSS:

gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall
-DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX
-DFLOATING_POINT -I../../opus/include opus_header.c -o opus_header.o
gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall
-DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX
-DFLOATING_POINT -I../../opus/include wav_io.c -o wav_io.o
gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall
-DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX
-DFLOATING_POINT -I../../opus/include opusenc.c -o opusenc.o
gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall
-DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX
-DFLOATING_POINT -I../../opus/include resample.c -o resample.o
gcc opus_header.o wav_io.o opusenc.o resample.o -o opusenc
../../opus/.libs/libopus.a -lm -logg
gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall
-DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX
-DFLOATING_POINT -I../../opus/include wave_out.c -o wave_out.o
gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall
-DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX
-DFLOATING_POINT -I../../opus/include opusdec.c -o opusdec.o
opusdec.c:65:27: error: sys/soundcard.h: No such file or directory
opusdec.c: In function ‘out_file_open’:
opusdec.c:257: error: ‘AFMT_S16_NE’ undeclared (first use in this function)
opusdec.c:257: error: (Each undeclared identifier is reported only once
opusdec.c:257: error: for each function it appears in.)
opusdec.c:258: error: ‘SNDCTL_DSP_SETFMT’ undeclared (first use in this
function)
opusdec.c:268: error: ‘SNDCTL_DSP_STEREO’ undeclared (first use in this
function)
opusdec.c:281: error: ‘SNDCTL_DSP_SPEED’ undeclared (first use in this
function)
make: *** [opusdec.o] Error 1



On Thu, Nov 17, 2011 at 7:57 PM, Gregory Maxwell <gmaxwell at gmail.com> wrote:

> On Thu, Nov 17, 2011 at 10:50 PM, Baek Chang <baeksan at ccrma.stanford.edu>
> wrote:
> > I just downloaded Opus 0.9.8 and tried opus_demo and it seems to be
> working
> > now.  Perhaps my configuration and compile options were unsupported.
> > Thanks!
>
> Opus_demo is really a special utility for testing the library and not
> intended general purpose encoding/decoding. E.g. it reads and writes
> special bitstreams with extra debugging information which are
> unseekable.
>
> What you probably want to use is opus-tools:
> https://git.xiph.org/?p=users/jm/opus-tools.git
> ... which is slowly inching its way towards a first release but is
> basically functional now.
>
>


-- 
-baeksanchang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20111117/72550909/attachment-0002.htm 


More information about the celt-dev mailing list