Compile get this error Version butt-0.1.16
mitch@mitch-Backup:~/Downloads/butt-0.1.16$ make
(CDPATH="${ZSH_VERSION+.}:" && cd . && autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory '/home/mitch/Downloads/butt-0.1.16'
Making all in src
make[2]: Entering directory '/home/mitch/Downloads/butt-0.1.16/src'
depbase=echo port_audio.o | sed 's|[^/]*$|.deps/&|;s|\.o$||';\
g++ -DHAVE_CONFIG_H -I. -I.. -IFLTK -g -O2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -MT port_audio.o -MD -MP -MF $depbase.Tpo -c -o port_audio.o port_audio.cpp &&\
mv -f $depbase.Tpo $depbase.Po
port_audio.cpp: In function ‘int snd_callback(const void, void, long unsigned int, const PaStreamCallbackTimeInfo, PaStreamCallbackFlags, void)’:
port_audio.cpp:554:72: error: invalid conversion from ‘const float’ to ‘float’ [-fpermissive]
src_short_to_float_array((short)pa_pcm_buf, srconv_stream.data_in, frameCountcfg.audio.channel);
~~~~~~~~~~~~~~^~~~~~~
In file included from port_audio.cpp:24:0:
/usr/include/samplerate.h:171:6: note: initializing argument 2 of ‘void src_short_to_float_array(const short int, float, int)’
void src_short_to_float_array (const short in, float out, int len) ;
^~~~~~~~~~~~~~~~~~~~~~~~
port_audio.cpp:585:72: error: invalid conversion from ‘const float’ to ‘float’ [-fpermissive]
src_short_to_float_array((short)pa_pcm_buf, srconv_record.data_in, frameCountcfg.audio.channel);
~~~~~~~~~~~~~~^~~~~~~
In file included from port_audio.cpp:24:0:
/usr/include/samplerate.h:171:6: note: initializing argument 2 of ‘void src_short_to_float_array(const short int, float, int)’
void src_short_to_float_array (const short in, float out, int len) ;
^~~~~~~~~~~~~~~~~~~~~~~~
port_audio.cpp: In function ‘void snd_close()’:
port_audio.cpp:776:24: error: invalid conversion from ‘const void’ to ‘void’ [-fpermissive]
free(srconv_stream.data_in);
~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/7/cstdlib:75:0,
from /usr/include/c++/7/stdlib.h:36,
from port_audio.cpp:18:
/usr/include/stdlib.h:563:13: note: initializing argument 1 of ‘void free(void)’
extern void free (void __ptr) __THROW;
^~~~
port_audio.cpp:779:24: error: invalid conversion from ‘const void’ to ‘void’ [-fpermissive]
free(srconv_record.data_in);
~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/7/cstdlib:75:0,
from /usr/include/c++/7/stdlib.h:36,
from port_audio.cpp:18:
/usr/include/stdlib.h:563:13: note: initializing argument 1 of ‘void free(void)’
extern void free (void __ptr) __THROW;
^~~~
Makefile:444: recipe for target 'port_audio.o' failed
make[2]: *** [port_audio.o] Error 1
make[2]: Leaving directory '/home/mitch/Downloads/butt-0.1.16/src'
Makefile:365: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/mitch/Downloads/butt-0.1.16'
Makefile:306: recipe for target 'all' failed
make: *** [all] Error 2
Saw there was the same error in .15 and you said will fix. I think it was the same?
Please help