audacious-plugins fails to build on Artix Linux
Added by Will B about 2 years ago
Greetings!
I have successfully built and installed audacious-4.2 on Artix Linux (x86_64) from sources downloaded from the audacious site, however when I try to build the plugins, it fails.
I installed audacious-4.2 at prefix: /usr/local
My ./configure
command for audacious-plugins is:
AUDACIOUS_CFLAGS="-I/usr/local/include" AUDACIOUS_LIBS=-L/usr/local/lib ./configure --prefix=/usr/local --disable-nls --disable-gtk
./configure
completes without error:Configuration: Install path: GTK+ support: no Qt support: yes Audio Formats ------------- Audio CD: no Free Lossless Audio Codec: yes Ogg Vorbis: yes MIDI (via FluidSynth): yes MPEG-1 Layer I/II/III (via mpg123): yes MPEG-2/4 AAC: yes WavPack: yes External Decoders ----------------- FFmpeg: yes libsndfile: yes Chiptunes --------- AdLib synthesizer (adplug): no Commodore 64 audio (sid): no Game Music Emu (spc, nsf, gbs, etc.): yes ModPlug: yes OpenMPT: yes Nintendo DS audio (xsf): yes PlayStation audio (psf/psf2): yes Vortex Tracker (vtx): yes Other Inputs ------------ Metronome: yes Tone Generator: yes Effects ------- Bauer stereophonic-to-binaural (bs2b): yes Bitcrusher: yes Channel Mixer: yes Crystalizer: yes Dynamic Range Compressor: yes Echo/Surround: yes Extra Stereo: yes LADSPA Host (requires GTK+): no Sample Rate Converter: yes Silence Removal: yes SoX Resampler: yes Speed and Pitch: yes Voice Removal: yes Outputs ------- Advanced Linux Sound Architecture: yes Jack Audio Connection Kit: yes Open Sound System: yes PulseAudio: yes Simple DirectMedia Layer: yes Sndio: no Win32 waveOut: no FileWriter: yes -> MP3 encoding: yes -> Vorbis encoding: yes -> FLAC encoding: yes Playlists --------- Cue sheets: no M3U playlists: yes Microsoft ASX (legacy): yes Microsoft ASX 3.0: yes PLS playlists: yes XML Sharable Playlist Format (XSPF): yes Transports ---------- FTP, SFTP, SMB (via GIO): yes HTTP/HTTPS (via neon): yes MMS (via libmms): no General ------- Alarm (requires GTK+): no Ampache browser (requires Qt): no Delete Files: yes libnotify OSD: yes Linux Infrared Remote Control (LIRC): no MPRIS 2 Server: yes Scrobbler 2.0: yes Song Change: yes Qt Support ---------- Qt Multimedia output: yes Qt Interface: yes Winamp Classic Interface: yes Album Art: yes Blur Scope: yes LyricWiki viewer: yes OpenGL Spectrum Analyzer: yes Playlist Manager: yes Search Tool: yes Song Info: yes Spectrum Analyzer (2D): yes Status Icon: yes Stream Tuner (experimental): no VU Meter: yes X11 Global Hotkeys: yes
When I issue make
I get the following output with errors:
Entering directory src. Entering directory metronom. Successfully compiled metronom.cc (plugin). /usr/bin/ld: metronom.plugin.o: in function `metronom_get_cp(char const*, metronom_t*, String&) [clone .constprop.0]': /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:147: undefined reference to `str_printf(char const*, ...)' /usr/bin/ld: metronom.plugin.o: in function `String::String(char const*)': /usr/local/include/libaudcore/objects.h:157: undefined reference to `String::raw_get(char const*)' /usr/bin/ld: metronom.plugin.o: in function `String::~String()': /usr/local/include/libaudcore/objects.h:133: undefined reference to `String::raw_unref(char*)' /usr/bin/ld: metronom.plugin.o: in function `metronom_get_cp(char const*, metronom_t*, String&) [clone .constprop.0]': /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:145: undefined reference to `StringBuf::~StringBuf()' /usr/bin/ld: /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:145: undefined reference to `str_printf(char const*, ...)' /usr/bin/ld: metronom.plugin.o: in function `String::String(char const*)': /usr/local/include/libaudcore/objects.h:157: undefined reference to `String::raw_get(char const*)' /usr/bin/ld: metronom.plugin.o: in function `String::~String()': /usr/local/include/libaudcore/objects.h:133: undefined reference to `String::raw_unref(char*)' /usr/bin/ld: /usr/local/include/libaudcore/objects.h:133: undefined reference to `String::raw_unref(char*)' /usr/bin/ld: metronom.plugin.o: in function `Metronome::read_tag(char const*, VFSFile&, Tuple&, Index<char>*)': /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:229: undefined reference to `Tuple::set_str(Tuple::Field, char const*)' /usr/bin/ld: /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:230: undefined reference to `Tuple::set_int(Tuple::Field, int)' /usr/bin/ld: metronom.plugin.o: in function `Metronome::play(char const*, VFSFile&)': /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:165: undefined reference to `InputPlugin::set_stream_bitrate(int)' /usr/bin/ld: /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:166: undefined reference to `InputPlugin::open_audio(int, int, int)' /usr/bin/ld: /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:183: undefined reference to `InputPlugin::check_stop()' /usr/bin/ld: /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:215: undefined reference to `InputPlugin::write_audio(void const*, int)' /usr/bin/ld: /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:170: undefined reference to `audlog::log(audlog::Level, char const*, int, char const*, char const*, ...)' /usr/bin/ld: metronom.plugin.o: in function `String::~String()': /usr/local/include/libaudcore/objects.h:133: undefined reference to `String::raw_unref(char*)' /usr/bin/ld: metronom.plugin.o: in function `metronom_get_cp(char const*, metronom_t*, String&) [clone .constprop.0]': /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:145: undefined reference to `StringBuf::~StringBuf()' /usr/bin/ld: /home/will/Downloads/audacious-plugins-4.2/src/metronom/metronom.cc:147: undefined reference to `StringBuf::~StringBuf()' /usr/bin/ld: metronom.plugin.o: in function `String::~String()': /usr/local/include/libaudcore/objects.h:133: undefined reference to `String::raw_unref(char*)' /usr/bin/ld: /usr/local/include/libaudcore/objects.h:133: undefined reference to `String::raw_unref(char*)' collect2: error: ld returned 1 exit status Failed to link metronom.so! make[5]: *** [../../buildsys.mk:228: metronom.so] Error 1 make[4]: *** [../../buildsys.mk:134: all] Error 2 make[3]: *** [../buildsys.mk:144: metronom] Error 2 make[2]: *** [../buildsys.mk:132: all] Error 2 make[1]: *** [buildsys.mk:144: src] Error 2 make: *** [buildsys.mk:132: all] Error 2
I don't know if I'm missing some development headers or some libraries. Can anyone point me in the right direction?
Thank you :-)
Replies (2)
[RESOLVED] audacious-plugins fails to build on Artix Linux - Added by Will B about 2 years ago
I have resolved the issue. I needed to tell ./configure
where the relevant pkg-conf info was. Here is the ./configure
command that lets make
work:
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" ./configure --prefix=/usr/local --disable-nls --disable-gtk
Hopefully this helps someone in the future. :-)
RE: audacious-plugins fails to build on Artix Linux - Added by Michael Schwendt over 1 year ago
Looks odd for a multilib capable x86_64 installation, since by default pkg-config would look in "lib64" instead of "lib". It seems you've forcefully installed Audacious into /usr/local/lib instead of /usr/local/lib64 and therefore must tell pkg-config about that choice.