HydrogenAudio

Lossy Audio Compression => MP3 => MP3 - Tech => Topic started by: shrek88 on 2019-04-26 01:01:43

Title: lame compile error on macos
Post by: shrek88 on 2019-04-26 01:01:43
"./configure" seems ok, but when I try to make file, got errors like this

Undefined symbols for architecture x86_64:
  "_compute_scalefacs_long", referenced from:
      _long_block_scalefacs in vbrquantize.o
  "_compute_scalefacs_long_lsf", referenced from:
      _long_block_scalefacs in vbrquantize.o
  "_compute_scalefacs_short", referenced from:
      _short_block_scalefacs in vbrquantize.o
  "_find_scalefac_ISO", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_find_scalefac_ave_ISO", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_find_scalefac_ave_x34", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_find_scalefac_mq_ISO", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_find_scalefac_mq_x34", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_find_scalefac_x34", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_quantizeAndCountBits", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_tryGlobalStepsize", referenced from:
      _VBR_noise_shaping in vbrquantize.o
  "_tryScalefacColor", referenced from:
      _VBR_noise_shaping in vbrquantize.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [libmp3lame.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


can somebody help me with this? thanks
Title: Re: lame compile error on macos
Post by: shrek88 on 2019-04-26 13:08:47
the source version is 3.96.1, I compile this because I want the "noath" option.
Title: Re: lame compile error on macos
Post by: shrek88 on 2019-04-27 01:43:41
and I change the file vbrquantize.lo as following, it works but got further similar errors again:

# vbrquantize.lo - a libtool object file
# Generated by ltmain.sh - GNU libtool 1.5 (1.1220 2003/04/05 19:32:58)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# Name of the PIC object.
pic_object=none

# Name of the non-PIC object.
#non_pic_object='vbrquantize.o'
Title: Re: lame compile error on macos
Post by: shrek88 on 2019-04-28 03:08:52
I learned version 3.98a6 works with the option "-noath", but where can I get the source of version 3.98a6?
3.100 compile fine on my macos Mojave.