evanpurkhiser / keyfinder-cli

A CLI wrapper for libkeyfinder. Making DJs lives easier.
GNU General Public License v3.0
111 stars 23 forks source link

Update Makefile #16

Closed gluneau closed 3 years ago

gluneau commented 3 years ago

Otherwise I got theses errors:

/usr/bin/ld: /usr/local/lib/libkeyfinder.a(fftadapter.cpp.o): in function `KeyFinder::FftAdapter::FftAdapter(unsigned int)':
fftadapter.cpp:(.text+0x6a): undefined reference to `fftw_malloc'
/usr/bin/ld: fftadapter.cpp:(.text+0x89): undefined reference to `fftw_malloc'
/usr/bin/ld: fftadapter.cpp:(.text+0xf5): undefined reference to `fftw_plan_dft_r2c_1d'
/usr/bin/ld: /usr/local/lib/libkeyfinder.a(fftadapter.cpp.o): in function `KeyFinder::FftAdapter::~FftAdapter()':
fftadapter.cpp:(.text+0x132): undefined reference to `fftw_destroy_plan'
/usr/bin/ld: fftadapter.cpp:(.text+0x145): undefined reference to `fftw_free'
/usr/bin/ld: fftadapter.cpp:(.text+0x159): undefined reference to `fftw_free'
/usr/bin/ld: /usr/local/lib/libkeyfinder.a(fftadapter.cpp.o): in function `KeyFinder::FftAdapter::execute()':
fftadapter.cpp:(.text+0x8ea): undefined reference to `fftw_execute'
/usr/bin/ld: /usr/local/lib/libkeyfinder.a(fftadapter.cpp.o): in function `KeyFinder::InverseFftAdapter::InverseFftAdapter(unsigned int)':
fftadapter.cpp:(.text+0x93c): undefined reference to `fftw_malloc'
/usr/bin/ld: fftadapter.cpp:(.text+0x95b): undefined reference to `fftw_malloc'
/usr/bin/ld: fftadapter.cpp:(.text+0x99f): undefined reference to `fftw_plan_dft_c2r_1d'
/usr/bin/ld: /usr/local/lib/libkeyfinder.a(fftadapter.cpp.o): in function `KeyFinder::InverseFftAdapter::~InverseFftAdapter()':
fftadapter.cpp:(.text+0x9dc): undefined reference to `fftw_destroy_plan'
/usr/bin/ld: fftadapter.cpp:(.text+0x9ef): undefined reference to `fftw_free'
/usr/bin/ld: fftadapter.cpp:(.text+0xa03): undefined reference to `fftw_free'
/usr/bin/ld: /usr/local/lib/libkeyfinder.a(fftadapter.cpp.o): in function `KeyFinder::InverseFftAdapter::execute()':
fftadapter.cpp:(.text+0xe9c): undefined reference to `fftw_execute'
collect2: error: ld returned 1 exit status
make: *** [Makefile:4: keyfinder-cli] Error 1

This bug thread gave me the idea for this fix.

evanpurkhiser commented 3 years ago

Looks reasonable