[PD] cannot pd-0.37 ./configure --enable-jack

Fernando Pablo Lopez-Lezcano nando at ccrma.Stanford.EDU
Tue Dec 23 01:12:06 CET 2003


> i've downloaded pd-0.37-0 from miller's site. i have alsa, jack with a 
> delta 410 from planetccrma. this is the error i get:
>
> ./configure --enable-jack
> ...
> yes ... alsa is... yes
> checking for snd_pcm_info in -lasound... yes
> checking for shm_open in -lrt... yes
> checking for jack_set_xrun_callback in -ljack... yes
> checking for jack_set_error_function in -ljack... yes
> ...
> 
> make
> ...
> cc -DPD -DUNIX  -Wall -W -Wstrict-prototypes -Werror -Wno-unused 
> -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer 
> -DDL_OPEN -DPA_USE_OSS -DPA_LITTLE_ENDIAN          -DUSEAPI_OSS 
> -I../portaudio/pa_common         -I../portaudio/pablio 
> -I../portaudio/portmidi-macosx -Werror -DPA_USE_ALSA -DUSEAPI_ALSA 
> -DUSEAPI_JACK -DINSTALL_PREFIX=\"/usr/local\" -I. -c -o 
> ../obj/s_audio_alsa.o s_audio_alsa.c
> cc1: warnings being treated as errors
> s_audio_alsa.c: In function `alsa_open_audio':
> s_audio_alsa.c:218: warning: passing arg 3 of 
> `snd_pcm_hw_params_set_period_size_near' makes pointer from integer 
> without a cast
> s_audio_alsa.c:224: warning: passing arg 3 of 
> `snd_pcm_hw_params_set_periods_near' makes pointer from integer without 
> a cast
> s_audio_alsa.c:228: warning: passing arg 3 of 
> `snd_pcm_hw_params_set_buffer_size_near' makes pointer from integer 
> without a cast
> s_audio_alsa.c:326: warning: passing arg 3 of 
> `snd_pcm_hw_params_set_period_size_near' makes pointer from integer 
> without a cast
> s_audio_alsa.c:331: warning: passing arg 3 of 
> `snd_pcm_hw_params_set_periods_near' makes pointer from integer without 
> a cast
> s_audio_alsa.c:335: warning: passing arg 3 of 
> `snd_pcm_hw_params_set_buffer_size_near' makes pointer from integer 
> without a cast
> make: *** [s_audio_alsa.o] Error 1
>
> is this cause by the "new" version of alsa (1.0.0rc2)?

Yes, it has a few changes in the API to make error returns from
functions more clear, that kind of stuff. 

Find all places wich include asoundlib.h and add this before the
include:

  #define ALSA_PCM_OLD_HW_PARAMS_API
  #define ALSA_PCM_OLD_SW_PARAMS_API

(or update to the newer Pd @ ccrma, 0.37.0 is out - a bit late, cough,
but well, better late than never :-)

-- Fernando






More information about the Pd-list mailing list