Menu

#23 errors on make Ubuntu 18.04

v1.0 (example)
open
nobody
make error (1)
3
2018-12-24
2018-12-24
Ted
No

I am having some problems with make on Ubuntu 18.04. Portaudio errors.
I tried compiling with the native portaudio library in Ubuntu (which reported v_190600_20161030.
I also tried compiling portaudio from source. Same errors on BUTT make each time.

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:434: recipe for target 'port_audio.o' failed
make[2]: *** [port_audio.o] Error 1
make[2]: Leaving directory '/home/ted/butt-0.1.16/src'
Makefile:354: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ted/butt-0.1.16'
Makefile:294: recipe for target 'all' failed
make: *** [all] Error 2

Any idea hotw to get past this error?

I love the features of this on Ubuntu 16.04 and would really like to be able to use it in 18.04 also.

Thanx
Ted

Discussion

  • Daniel Nöthen

    Daniel Nöthen - 2018-12-24

    Hello Ted, this is fixed in the next version which will come out shortly.
    Meanwhile you can replace the the original port_audio.cpp with the attached file to fix it.

    Merry xmas,
    Daniel

     

    Last edit: Daniel Nöthen 2018-12-24
  • Ted

    Ted - 2018-12-24

    Vielen Dank, Daniel! Es hat perfekt funktioniert. Fröhliche Weihnachten.

    Thank you, Daniel! It worked perfectly. Merry Chrismas.

     

Log in to post a comment.