ddiakopoulos / libnyquist

:microphone: Cross platform C++11 library for decoding audio (mp3, wav, ogg, opus, flac, etc)
BSD 2-Clause "Simplified" License
540 stars 66 forks source link

Undefined reference to WavpackGetNumSamples (Raspberry Pi Target) #36

Closed Ticoel closed 5 years ago

Ticoel commented 5 years ago

Hello!

When I use the library in my project, at compile time on a Raspberry Pi (with Raspbian up to date), I have this error:

WavPackDecoder.cpp:(.text._ZNK15WavPackInternal15getTotalSamplesEv[_ZNK15WavPackInternal15getTotalSamplesEv]+0x1c): undefined reference to WavpackGetNumSamples' /usr/local/lib/liblibnyquist.a(WavPackDecoder.cpp.o): In functionWavPackInternal::getLengthInSeconds() const': WavPackDecoder.cpp:(.text._ZNK15WavPackInternal18getLengthInSecondsEv[_ZNK15WavPackInternal18getLengthInSecondsEv]+0x2c): undefined reference to `WavpackGetSampleRate' collect2: error: ld returned 1 exit status make: *** [Makefile:17: CapProject3] Error 1

What should I do?

ddiakopoulos commented 5 years ago

@Ticoel did you ever resolve this? Looks like a compilation problem with the libwavpack library via makefile specifically.

ddiakopoulos commented 5 years ago

Closing for lack of activity.