compiling audiowmark results in errors

Skip to first unread message

Leonid Dragilev

Mar 14, 2024, 3:31:10 PMMar 14
to audiowmark
Hi Stefan,
I am compiling audiowmark using compiled from sources opus and libsndfile. I am getting errors like 
 "_FLAC__StreamDecoderErrorStatusString", referenced from:
      _sf_flac_error_callback in libsndfile.a(flac.c.o)
  "_FLAC__StreamDecoderStateString", referenced from:
      _flac_read_loop in libsndfile.a(flac.c.o)
"_id3tag_init", referenced from:
      _mpeg_l3_encoder_write_id3tag in libsndfile.a(mpeg_l3_encode.c.o)
  "_id3tag_set_album", referenced from:
      _mpeg_l3_encoder_write_id3tag in libsndfile.a(mpeg_l3_encode.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Are there any  clang requirements?

Stefan Westerfeld

Mar 16, 2024, 10:41:29 AMMar 16

Am 14.03.24 um 20:31 schrieb Leonid Dragilev:
First of all, this doesn't appear to be a problem in the audiowmark code
itself, as many other users can build from source just fine.

From the error message you provided, it seems that you build against a
static library of libsndfile (it has a .a suffix, not .so), but for some
reason your dependency libraries are incomplete.

Maybe you can fix it using

export PKG_CONFIG="pkg-config --static"

(and if you haven't done this, also set PKG_CONFIG_PATH accordingly),
because the libsndfile dependent flags are taken from pkg-config during
configure /

Cu... Stefan

Leonid Dragilev

Mar 17, 2024, 4:42:31 PMMar 17
to audiowmark
That totally helps! Thank you!
Reply all
Reply to author
0 new messages