bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.94k stars 242 forks source link

build fails on ubuntu bionic #123

Closed Br3nda closed 4 years ago

Br3nda commented 4 years ago
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libvorbis.a(psy.o): in function `setup_tone_curves':
(.text+0x11e2): undefined reference to `__log_finite'

Is there an extra dependency i need to install??

Full output: https://gist.github.com/Br3nda/66d9b3ad0b1032909353ebce0e920267

chrisn commented 4 years ago

The functions __log_finite etc come from libm.

I have successfully compiled audiowaveform using Ubuntu 18.04 and g++ 9.3.0 using install information here - see this Dockerfile.

Br3nda commented 4 years ago

seems to happen only when building static after a cmake -D BUILD_STATIC=1 ..

chrisn commented 4 years ago

The Dockerfile example (just updated) works for static builds. Is there some difference between this and your build environment?

chrisn commented 4 years ago

I'll close this, but feel free to re-open if you are still having build issues.