thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 318 forks source link

Fails to find libjack.so #357

Closed yurivict closed 2 years ago

yurivict commented 2 years ago
===>  Building for rtaudio-5.2.0_1
[ 10% 1/10] : && /usr/bin/c++ -fPIC -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer  -fstack-protector-strong -shared -Wl,-soname,librtaudio.so.6 -o librtaudio.so.6.0.2 CMakeFiles/rtaudio.dir/RtAudio.cpp.o CMakeFiles/rtaudio.dir/rtaudio_c.cpp.o  -ljack  -pthread && :
FAILED: librtaudio.so.6.0.2 
: && /usr/bin/c++ -fPIC -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer  -fstack-protector-strong -shared -Wl,-soname,librtaudio.so.6 -o librtaudio.so.6.0.2 CMakeFiles/rtaudio.dir/RtAudio.cpp.o CMakeFiles/rtaudio.dir/rtaudio_c.cpp.o  -ljack  -pthread && :
ld: error: unable to find library -ljack

This is despite Jack-1.9.21 has jack.pc installed.

Version 5.2.0 FreeBSD 13.1

garyscavone commented 2 years ago

If a build issue, please submit a PR.

garyscavone commented 2 years ago

Again, I just checked out the latest master branch, ran autogen.sh, configure --with-jack, make, cd tests, ./audioprobe and didn't have a problem. Perhaps this is related to the FreeBSD distribution but it is not a problem with Fedora Linux 5.11.22-100.fc32.