Audacity – New Major Release – Compile Fix, for Portaudio..

After some considerable time, there is a new major version of Audacity – 2.2.0 – with a new-improved UI, amongst other things..

As I needed this ASAP, and did not want to wait for the (uncrippled) RPM to come out, I decided to compile it myself, with all useful options included..

I got the following error on compiling:

.....
AudioIO.cpp:(.text+0x174): undefined reference to `PaUtil_GetTime'
audacity-AudioIO.o: In function `audacityAudioCallback(void const*, void*, unsigned long, PaStreamCallbackTimeInfo const*, unsigned long, void*)':
AudioIO.cpp:(.text+0xcb8c): undefined reference to `PaUtil_GetTime'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:2348: audacity] Error 1

I tried adding an explicit reference to the portaudio header file in AudIO.cpp, but this did not make any difference..   After more research, I found that you have to specify –with-portaudio=local in the configure options.    My configure options were then:

../configure –prefix=/usr –enable-shared –with-ffmpeg –with-lame –with-libflac –with-libid3tag –with-libmad –with-libtwolame –with-libvorbis –with-lv2 –with-portaudio=local –with-midi –with-portmidi

– and this now compiled OK, and (so far..) works just fine..    Not sure why this portaudio option was not the default

Robert Gadsdon.    November 4, 2017

 


Leave a Reply

Your email address will not be published. Required fields are marked *