help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Playrec for Octave


From: Fredrik Lingvall
Subject: Re: Playrec for Octave
Date: Mon, 10 Mar 2008 19:45:50 +0100
User-agent: Thunderbird 2.0.0.12 (X11/20080306)

Matthias Brennwald wrote:

Matthias Brennwald wrote:
Ok, I just tried on Linux (Ubuntu 8.04 on my PowerPC-PowerBook). This is

If you run Linux then you can try:

1)

# wget http://folk.uio.no/fl/aaudio/aaudio-0.1.0.tar.gz

2)

# octave

3)

octave:1> pkg install aaudio-0.1.0.tar.gz

This did not work:

octave:1> pkg install aaudio-0.1.0.tar.gz
warning: creating installation directory /home/bwm/octave
oct_aplay.cc:28:28: error: alsa/asoundlib.h: No such file or directory
aaudio.h:31: error: ‘snd_pcm_t’ was not declared in this scope
aaudio.h:31: error: ‘handle’ was not declared in this scope
aaudio.h:32: error: ‘snd_pcm_format_t’ was not declared in this scope
aaudio.h:32: error: ‘format’ was not declared in this scope
aaudio.h:33: error: expected primary-expression before ‘unsigned’
aaudio.h:34: error: expected primary-expression before ‘unsigned’
aaudio.h:35: error: ‘snd_pcm_uframes_t’ was not declared in this scope
aaudio.h:35: error: ‘period_size’ was not declared in this scope
aaudio.h:36: error: expected primary-expression before ‘unsigned’
aaudio.h:37: error: ‘snd_pcm_uframes_t’ was not declared in this scope
aaudio.h:37: error: ‘buffer_size’ was not declared in this scope
aaudio.h:37: error: initializer expression list treated as compound
expression
aaudio.h:39: error: ‘snd_pcm_t’ was not declared in this scope
aaudio.h:39: error: ‘handle’ was not declared in this scope
aaudio.h:40: error: ‘snd_pcm_uframes_t’ was not declared in this scope
aaudio.h:41: error: ‘snd_pcm_uframes_t’ was not declared in this scope
aaudio.h:42: error: ‘snd_pcm_uframes_t’ was not declared in this scope
aaudio.h:42: error: initializer expression list treated as compound
expression
aaudio.h:46: error: variable or field ‘check_hw’ declared void
aaudio.h:46: error: ‘snd_pcm_hw_params_t’ was not declared in this scope
aaudio.h:46: error: ‘hwparams’ was not declared in this scope
aaudio.h:47: error: ‘snd_pcm_t’ was not declared in this scope
aaudio.h:47: error: ‘handle’ was not declared in this scope
aaudio.h:47: error: expected primary-expression before ‘int’
aaudio.h:47: error: initializer expression list treated as compound
expression
aaudio.h:49: error: ‘snd_pcm_sframes_t’ does not name a type
aaudio.h:56: error: ‘snd_pcm_t’ was not declared in this scope
aaudio.h:56: error: ‘handle’ was not declared in this scope
aaudio.h:57: error: expected primary-expression before ‘const’
aaudio.h:58: error: ‘snd_pcm_format_t’ was not declared in this scope
aaudio.h:59: error: expected primary-expression before ‘void’
aaudio.h:60: error: ‘snd_pcm_sframes_t’ was not declared in this scope
aaudio.h:61: error: ‘snd_pcm_sframes_t’ was not declared in this scope
aaudio.h:62: error: expected primary-expression before ‘unsigned’
aaudio.h:62: error: initializer expression list treated as compound
expression
aaudio.h:65: error: ‘snd_pcm_t’ was not declared in this scope
aaudio.h:65: error: ‘handle’ was not declared in this scope
aaudio.h:66: error: expected primary-expression before ‘const’
aaudio.h:67: error: ‘snd_pcm_format_t’ was not declared in this scope
aaudio.h:68: error: expected primary-expression before ‘void’
aaudio.h:69: error: ‘snd_pcm_sframes_t’ was not declared in this scope
aaudio.h:70: error: ‘snd_pcm_sframes_t’ was not declared in this scope
aaudio.h:71: error: expected primary-expression before ‘unsigned’
aaudio.h:71: error: initializer expression list treated as compound
expression
oct_aplay.cc: In function ‘octave_value_list Faplay(const
octave_value_list&, int)’:
oct_aplay.cc:131: error: ‘snd_pcm_t’ was not declared in this scope
oct_aplay.cc:131: error: ‘handle’ was not declared in this scope
oct_aplay.cc:132: error: ‘snd_pcm_sframes_t’ was not declared in this scope
oct_aplay.cc:132: error: expected `;' before ‘frames’
oct_aplay.cc:141: error: expected initializer before ‘*’ token
oct_aplay.cc:147: error: ‘snd_pcm_format_t’ was not declared in this scope
oct_aplay.cc:147: error: expected `;' before ‘format’
oct_aplay.cc:150: error: ‘snd_pcm_uframes_t’ was not declared in this scope
oct_aplay.cc:150: error: expected `;' before ‘period_size’
oct_aplay.cc:152: error: expected `;' before ‘buffer_size’
oct_aplay.cc:154: error: expected `;' before ‘avail_min’
oct_aplay.cc:155: error: expected `;' before ‘start_threshold’
oct_aplay.cc:156: error: expected `;' before ‘stop_threshold’
oct_aplay.cc:178: error: ‘frames’ was not declared in this scope
oct_aplay.cc:250: error: ‘period_size’ was not declared in this scope
oct_aplay.cc:274: error: ‘SND_PCM_STREAM_PLAYBACK’ was not declared in
this scope
oct_aplay.cc:274: error: ‘SND_PCM_NONBLOCK’ was not declared in this scope
oct_aplay.cc:274: error: ‘snd_pcm_open’ was not declared in this scope
oct_aplay.cc:275: error: ‘snd_strerror’ was not declared in this scope
oct_aplay.cc:284: error: ‘period_size’ was not declared in this scope
oct_aplay.cc:288: error: ‘r_period_size’ was not declared in this scope
oct_aplay.cc:288: error: ‘period_size’ was not declared in this scope
oct_aplay.cc:290: error: ‘format’ was not declared in this scope
oct_aplay.cc:290: error: ‘SND_PCM_FORMAT_FLOAT’ was not declared in this
scope
oct_aplay.cc:292: error: ‘buffer_size’ was not declared in this scope
oct_aplay.cc:292: error: ‘set_hwparams’ cannot be used as a function
oct_aplay.cc:294: error: ‘snd_pcm_close’ was not declared in this scope
oct_aplay.cc:312: error: ‘snd_pcm_close’ was not declared in this scope
oct_aplay.cc:329: error: ‘SND_PCM_FORMAT_FLOAT’ cannot appear in a
constant-expression
oct_aplay.cc:333: error: ‘SND_PCM_FORMAT_S32’ was not declared in this scope oct_aplay.cc:337: error: ‘SND_PCM_FORMAT_S16’ was not declared in this scope
oct_aplay.cc:353: error: ‘SND_PCM_FORMAT_FLOAT’ cannot appear in a
constant-expression
oct_aplay.cc:357: error: ‘SND_PCM_FORMAT_S32’ was not declared in this scope oct_aplay.cc:361: error: ‘SND_PCM_FORMAT_S16’ was not declared in this scope
oct_aplay.cc:375: error: ‘SND_PCM_FORMAT_FLOAT’ cannot appear in a
constant-expression
oct_aplay.cc:379: error: ‘SND_PCM_FORMAT_S32’ was not declared in this scope oct_aplay.cc:383: error: ‘SND_PCM_FORMAT_S16’ was not declared in this scope
oct_aplay.cc:394: error: ‘avail_min’ was not declared in this scope
oct_aplay.cc:395: error: ‘start_threshold’ was not declared in this scope
oct_aplay.cc:395: error: ‘buffer_size’ was not declared in this scope
oct_aplay.cc:396: error: ‘stop_threshold’ was not declared in this scope
oct_aplay.cc:398: error: ‘set_swparams’ cannot be used as a function
oct_aplay.cc:400: error: ‘snd_pcm_close’ was not declared in this scope
oct_aplay.cc:404: error: ‘snd_pcm_format_width’ was not declared in this
scope
oct_aplay.cc:411: error: ‘SND_PCM_FORMAT_S32’ was not declared in this scope
oct_aplay.cc:421: error: ‘snd_output_t’ was not declared in this scope
oct_aplay.cc:421: error: ‘snderr’ was not declared in this scope
oct_aplay.cc:422: error: ‘snd_output_stdio_attach’ was not declared in
this scope
oct_aplay.cc:424: error: ‘snd_pcm_state’ was not declared in this scope
oct_aplay.cc:425: error: ‘snd_pcm_dump_setup’ was not declared in this scope
oct_aplay.cc:437: error: ‘SND_PCM_FORMAT_FLOAT’ cannot appear in a
constant-expression
oct_aplay.cc:438: error: ‘play_areas’ was not declared in this scope
oct_aplay.cc:438: error: ‘write_and_poll_loop’ cannot be used as a function oct_aplay.cc:441: error: ‘SND_PCM_FORMAT_S32’ was not declared in this scope oct_aplay.cc:442: error: ‘write_and_poll_loop’ cannot be used as a function oct_aplay.cc:445: error: ‘SND_PCM_FORMAT_S16’ was not declared in this scope oct_aplay.cc:446: error: ‘write_and_poll_loop’ cannot be used as a function oct_aplay.cc:450: error: ‘write_and_poll_loop’ cannot be used as a function
oct_aplay.cc:476: error: ‘snd_pcm_close’ was not declared in this scope
oct_aplay.cc:480: error: ‘SND_PCM_FORMAT_FLOAT’ cannot appear in a
constant-expression
oct_aplay.cc:484: error: ‘SND_PCM_FORMAT_S32’ was not declared in this scope oct_aplay.cc:488: error: ‘SND_PCM_FORMAT_S16’ was not declared in this scope
make: *** [oct_aplay.o] Error 1
error: 'make' returned the following error: make: Entering directory
`/tmp/oct-KEZKB7/aaudio-0.1.0/src'
mkoctfile -c oct_aplay.cc
make: Leaving directory `/tmp/oct-KEZKB7/aaudio-0.1.0/src'
error: called from `pkg:configure_make' in file
/usr/local/share/octave/3.0.0/m/pkg/pkg.m near line 1058, column 2


Any ideas?
You are probably missing the alsa development libs. On Gentoo you install them with:

# emerge alsa-headers
# emerge alsa-lib

I'm not sure what the package names are on Ubuntu.

/Fredrik






reply via email to

[Prev in Thread] Current Thread [Next in Thread]