swh / ladspa

The SWH Plugins package for the LADSPA plugin system
http://plugin.org.uk/
GNU General Public License v2.0
230 stars 52 forks source link

Not compiling in Linux #60

Open lgmventura opened 6 years ago

lgmventura commented 6 years ago

After installing all required dependencies on Ubuntu 18.04, including autoconf, libtool and FFTW using the instructions to cofigure it, Ladspa compilation stops on make. In the terminal I get: /usr/bin/x86_64-linux-gnu-ld: /usr/local/lib/libfftw3f.a(assert.o): relocation R_X86_64_PC32 against symbol 'stdout@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: final link failed: Bad value collect2: error: ld returned 1 exit status Makefile:1104: recipe for target 'mbeq_1197.la' failed make[2]: *** [mbeq_1197.la] Error 1 make[2]: Verzeichnis „/media/luiz/Volume/Downloads/Audacity Plugins/ladspa-0.4.17“ wird verlassen Makefile:1391: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Verzeichnis „/media/luiz/Volume/Downloads/Audacity Plugins/ladspa-0.4.17“ wird verlassen Makefile:871: recipe for target 'all' failed make: *** [all] Error 2

atsampson commented 3 years ago

It's trying to link against a static version of FFTW, rather than the shared version. If you built fftw from source yourself (you shouldn't need to do this, since Ubuntu has a perfectly good version!) then make sure you specify --enable-shared in its configure options.

hugeblank commented 3 years ago

I'm having this issue too.

you shouldn't need to do this, since Ubuntu has a perfectly good version! I wish I knew about this before following the readme to a tee, ugh...

Regardless, @atsampson --enable-shared doesn't work, yields the same error.