[linux-audio-user] Re: [ANN] Snd-ls V0.9.7.12 and jack_capture V0.3.9

Glenn Greenfield mzilikazi at mzilikazix.org
Thu Nov 9 17:06:06 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

david wrote:
> Kjetil S. Matheussen wrote:
> 
>> david:
>>>
>>> Kjetil S. Matheussen wrote:
>>>
>>>> jack_capture v0.3.9
>>>> ===================
>>>> jack_capture is a program for recording soundfiles with jack. Its
>>>> default
>>>> operation is to capture whatever sound is going out to your speakers
>>>> into a file. This is the program I always wanted to have for jack,
>>>> but no
>>>> one made. So here it is.
>>>>
>>>> Changes 0.3.8 -> 0.3.9:
>>>> -----------------------
>>>> *Changed the -rt option name to -d, to be compatible with jackrec.
>>>> *Do not stop recording in case of disk errors.
>>>> *Replaced deprecated libsndfile functions.
>>>> *Added the --format/-f option. ("jack_capture -f flac", nice :-)  )
>>>>  (adding "-f w64" solves the 4GB limitation of wav files)
>>>
>>> OK, downloaded the RPM, converted it with alien, installed it on my
>>> Debian system. Trying to start it from a root command line gives message
>>> "jack_capture: error while loading shared libraries: libjack.so.0:
>>> cannot open shared object file: No such file or directory."
>>>
>>> Jack is installed and works. Is there documentation for this program
>>> that sounds like something I need, also?
>>>
>>
>> I don't know of any RPM...
>> Installing jack_capture is very very though:
>>
>> apt-get install jack-devel
>> apt-get install libsndfile-devel
> 
> Each of those lines gives me the messages "Couldn't find package"
> 
>> wget http://www.notam02.no/arkiv/src/jack_capture-0.3.9.tar.gz
>> tar xvzf jack_capture-0.3.9.tar.gz
>> cd jack_capture-0.3.9
> 
> Those worked.
> 
>> make
> 
> And the results:
> gcc -O3 jack_capture.c -o jack_capture -ljack -lsndfile -Wall
> jack_capture.c:28:21: error: sndfile.h: No such file or directory
> jack_capture.c:32:23: error: jack/jack.h: No such file or directory
> jack_capture.c:33:29: error: jack/ringbuffer.h: No such file or directory
> jack_capture.c:53: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c:64: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c:65: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'sample_t'
> jack_capture.c:81: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c:84: error: expected specifier-qualifier-list before
> 'sample_t'
> jack_capture.c:100: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c:101: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c: In function 'buffers_init':
> jack_capture.c:114: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c:114: error: 'das_buffer' undeclared (first use in this
> function)
> jack_capture.c:114: error: (Each undeclared identifier is reported only
> once
> jack_capture.c:114: error: for each function it appears in.)
> jack_capture.c:118: error: 'buffers' undeclared (first use in this
> function)
> jack_capture.c:119: error: 'empty_buffer' undeclared (first use in this
> function)
> jack_capture.c:122: error: 'sample_t' undeclared (first use in this
> function)
> jack_capture.c:131: error: 'rb' undeclared (first use in this function)
> jack_capture.c:132: warning: implicit declaration of function
> 'jack_ringbuffer_free'
> jack_capture.c:134: warning: implicit declaration of function
> 'jack_ringbuffer_create'
> jack_capture.c:155: error: expected expression before ')' token
> jack_capture.c: At top level:
> jack_capture.c:172: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c: In function 'portnames_add_defaults':
> jack_capture.c:210: warning: implicit declaration of function
> 'jack_get_ports'
> jack_capture.c:210: error: 'client' undeclared (first use in this function)
> jack_capture.c:210: error: 'JackPortIsPhysical' undeclared (first use in
> this function)
> jack_capture.c:210: error: 'JackPortIsInput' undeclared (first use in
> this function)
> jack_capture.c: In function 'portnames_add':
> jack_capture.c:226: error: 'client' undeclared (first use in this function)
> jack_capture.c: In function 'portnames_get_connections':
> jack_capture.c:248: error: 'jack_port_t' undeclared (first use in this
> function)
> jack_capture.c:248: error: 'port' undeclared (first use in this function)
> jack_capture.c:248: warning: implicit declaration of function
> 'jack_port_by_name'
> jack_capture.c:248: error: 'client' undeclared (first use in this function)
> jack_capture.c:251: warning: implicit declaration of function
> 'jack_port_flags'
> jack_capture.c:251: error: 'JackPortIsInput' undeclared (first use in
> this function)
> jack_capture.c:252: warning: implicit declaration of function
> 'jack_port_get_all_connections'
> jack_capture.c: At top level:
> jack_capture.c:269: error: expected ')' before '*' token
> jack_capture.c:282: error: expected ')' before '*' token
> jack_capture.c: In function 'disk_thread_func':
> jack_capture.c:298: error: 'SNDFILE' undeclared (first use in this
> function)
> jack_capture.c:298: error: 'soundfile' undeclared (first use in this
> function)
> jack_capture.c:302: error: 'SF_INFO' undeclared (first use in this
> function)
> jack_capture.c:302: error: expected ';' before 'sf_info'
> jack_capture.c:304: error: 'sf_info' undeclared (first use in this
> function)
> jack_capture.c:304: warning: implicit declaration of function
> 'jack_get_sample_rate'
> jack_capture.c:304: error: 'client' undeclared (first use in this function)
> jack_capture.c:308: error: 'SF_FORMAT_AIFF' undeclared (first use in
> this function)
> jack_capture.c:309: error: 'SF_FORMAT_AU' undeclared (first use in this
> function)
> jack_capture.c:310: error: 'SF_FORMAT_RAW' undeclared (first use in this
> function)
> jack_capture.c:311: error: 'SF_FORMAT_SVX' undeclared (first use in this
> function)
> jack_capture.c:312: error: 'SF_FORMAT_NIST' undeclared (first use in
> this function)
> jack_capture.c:313: error: 'SF_FORMAT_VOC' undeclared (first use in this
> function)
> jack_capture.c:314: error: 'SF_FORMAT_IRCAM' undeclared (first use in
> this function)
> jack_capture.c:315: error: 'SF_FORMAT_W64' undeclared (first use in this
> function)
> jack_capture.c:317: error: 'SF_FORMAT_MAT5' undeclared (first use in
> this function)
> jack_capture.c:318: error: 'SF_FORMAT_MAT4' undeclared (first use in
> this function)
> jack_capture.c:319: error: 'SF_FORMAT_PVF' undeclared (first use in this
> function)
> jack_capture.c:320: error: 'SF_FORMAT_XI' undeclared (first use in this
> function)
> jack_capture.c:321: error: 'SF_FORMAT_HTK' undeclared (first use in this
> function)
> jack_capture.c:322: error: 'SF_FORMAT_SDS' undeclared (first use in this
> function)
> jack_capture.c:323: error: 'SF_FORMAT_AVR' undeclared (first use in this
> function)
> jack_capture.c:324: error: 'SF_FORMAT_WAVEX' undeclared (first use in
> this function)
> jack_capture.c:325: error: 'SF_FORMAT_SD2' undeclared (first use in this
> function)
> jack_capture.c:326: error: 'SF_FORMAT_FLAC' undeclared (first use in
> this function)
> jack_capture.c:328: error: 'SF_FORMAT_CAF' undeclared (first use in this
> function)
> jack_capture.c:329: error: 'SF_FORMAT_WAV' undeclared (first use in this
> function)
> jack_capture.c:332: error: 'SF_FORMAT_PCM_U8' undeclared (first use in
> this function)
> jack_capture.c:334: error: 'SF_FORMAT_PCM_16' undeclared (first use in
> this function)
> jack_capture.c:336: error: 'SF_FORMAT_PCM_24' undeclared (first use in
> this function)
> jack_capture.c:338: error: 'SF_FORMAT_PCM_32' undeclared (first use in
> this function)
> jack_capture.c:343: error: 'SF_FORMAT_FLOAT' undeclared (first use in
> this function)
> jack_capture.c:349: warning: implicit declaration of function 'sf_open'
> jack_capture.c:349: error: 'SFM_WRITE' undeclared (first use in this
> function)
> jack_capture.c:351: warning: implicit declaration of function 'sf_strerror'
> jack_capture.c:351: warning: format '%s' expects type 'char *', but
> argument 4 has type 'int'
> jack_capture.c:352: warning: implicit declaration of function
> 'jack_client_close'
> jack_capture.c:362: warning: implicit declaration of function
> 'jack_ringbuffer_read_space'
> jack_capture.c:362: error: 'rb' undeclared (first use in this function)
> jack_capture.c:364: error: 'sample_t' undeclared (first use in this
> function)
> jack_capture.c:364: error: 'buffer' undeclared (first use in this function)
> jack_capture.c:366: warning: implicit declaration of function
> 'jack_ringbuffer_read'
> jack_capture.c:367: error: 'struct ringbuffer_block' has no member named
> 'buffer'
> jack_capture.c:370: warning: implicit declaration of function
> 'disk_write_overruns'
> jack_capture.c:374: warning: implicit declaration of function 'disk_write'
> jack_capture.c:398: warning: implicit declaration of function 'sf_close'
> jack_capture.c: At top level:
> jack_capture.c:436: error: expected ')' before '*' token
> jack_capture.c:449: error: expected ')' before '*' token
> jack_capture.c:463: error: expected ')' before 'nframes'
> jack_capture.c: In function 'reconnect_ports_questionmark':
> jack_capture.c:503: error: 'client' undeclared (first use in this function)
> jack_capture.c:503: error: 'ports' undeclared (first use in this function)
> jack_capture.c:503: warning: initialization makes pointer from integer
> without a cast
> jack_capture.c: In function 'disconnect_ports':
> jack_capture.c:541: error: 'client' undeclared (first use in this function)
> jack_capture.c:541: error: 'ports' undeclared (first use in this function)
> jack_capture.c:541: warning: initialization makes pointer from integer
> without a cast
> jack_capture.c:543: warning: implicit declaration of function
> 'jack_disconnect'
> jack_capture.c:543: warning: implicit declaration of function
> 'jack_port_name'
> jack_capture.c: In function 'connect_ports':
> jack_capture.c:557: warning: implicit declaration of function
> 'jack_connect'
> jack_capture.c:557: error: 'client' undeclared (first use in this function)
> jack_capture.c:557: error: 'ports' undeclared (first use in this function)
> jack_capture.c:559: warning: format '%s' expects type 'char *', but
> argument 3 has type 'int'
> jack_capture.c: In function 'create_ports':
> jack_capture.c:609: error: 'ports' undeclared (first use in this function)
> jack_capture.c:609: error: 'jack_port_t' undeclared (first use in this
> function)
> jack_capture.c:609: error: expected expression before ')' token
> jack_capture.c:615: warning: implicit declaration of function
> 'jack_port_register'
> jack_capture.c:615: error: 'client' undeclared (first use in this function)
> jack_capture.c:615: error: 'JACK_DEFAULT_AUDIO_TYPE' undeclared (first
> use in this function)
> jack_capture.c:615: error: 'JackPortIsInput' undeclared (first use in
> this function)
> jack_capture.c: In function 'do_exit':
> jack_capture.c:640: error: 'client' undeclared (first use in this function)
> jack_capture.c: At top level:
> jack_capture.c:663: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before '*' token
> jack_capture.c: In function 'start_jack':
> jack_capture.c:685: error: 'client' undeclared (first use in this function)
> jack_capture.c:685: warning: implicit declaration of function
> 'new_jack_client'
> jack_capture.c:687: warning: implicit declaration of function
> 'jack_get_buffer_size'
> jack_capture.c: In function 'main':
> jack_capture.c:788: warning: implicit declaration of function
> 'jack_set_process_callback'
> jack_capture.c:788: error: 'client' undeclared (first use in this function)
> jack_capture.c:788: error: 'process' undeclared (first use in this
> function)
> jack_capture.c:789: warning: implicit declaration of function
> 'jack_on_shutdown'
> jack_capture.c:791: warning: implicit declaration of function
> 'jack_set_graph_order_callback'
> jack_capture.c:792: warning: implicit declaration of function
> 'jack_set_buffer_size_callback'
> jack_capture.c:794: warning: implicit declaration of function
> 'jack_activate'
> make: *** [all] Error 1
> 
> I suspect they're all due to the missing jack-devel and libsndfile-devel
> packages. Neither of them seem to be in my repository (ftp.de.debian.org).
> 
>> make install
>> /usr/local/bin/jack_capture -h
> 
> Not even going to try those yet.
> 

I built jack_capture on my Debian Sid box with no problems.  I have
these installed:

libjack0.100.0-dev
libsndfile1-dev

- -glenn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFU6ZOqUIEvHpYFKoRAkfuAJ94joB7HUEUBiTt9o5Bc9lHC79evACeOArL
Pb+MCmLdxXSSvAsKdRpcXVo=
=qGuP
-----END PGP SIGNATURE-----



More information about the Linux-audio-user mailing list