Closed amuso closed 7 years ago
One thing that might be wrong on principle is that the symbol glopts
is defined in libtoolame-dab/options.h
. This means that if you include that header from two C files, it would be defined twice.
In commit d04c019ce (on the next
branch) I have put extern options glopts
in options.h
and moved the declaration to toolame.c
. Can you try again?
That fixed the duplicate symbols. Thanks!
To get it to compile fully I also needed to make the following tweaks:
Removed -ltr
on line 476 in Makefile.in
fdk_aac may have obsoloted the usage of AOT_DABPLUS and TT_DABPLUS (see https://github.com/nu774/fdkaac/issues/23 so I got the variables from https://github.com/mstorsjo/fdk-aac/pull/48/files and libSYS/include/FDK_audio.h) so I added the following at line 200 in src/odr-audioenc.cpp:
int AOT_DABPLUS_AAC_LC = 135;
int AOT_DABPLUS_SBR = 136;
int AOT_DABPLUS_PS = 137;
int TT_DABPLUS = 13;
$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
CC libtoolame-dab/libtoolame_dab_la-common.lo
CC libtoolame-dab/libtoolame_dab_la-encode.lo
CC libtoolame-dab/libtoolame_dab_la-ieeefloat.lo
CC libtoolame-dab/libtoolame_dab_la-toolame.lo
CC libtoolame-dab/libtoolame_dab_la-portableio.lo
CC libtoolame-dab/libtoolame_dab_la-psycho_n1.lo
CC libtoolame-dab/libtoolame_dab_la-psycho_0.lo
CC libtoolame-dab/libtoolame_dab_la-psycho_1.lo
CC libtoolame-dab/libtoolame_dab_la-psycho_2.lo
CC libtoolame-dab/libtoolame_dab_la-psycho_3.lo
CC libtoolame-dab/libtoolame_dab_la-psycho_4.lo
CC libtoolame-dab/libtoolame_dab_la-fft.lo
CC libtoolame-dab/libtoolame_dab_la-subband.lo
CC libtoolame-dab/libtoolame_dab_la-bitstream.lo
CC libtoolame-dab/libtoolame_dab_la-mem.lo
CC libtoolame-dab/libtoolame_dab_la-crc.lo
CC libtoolame-dab/libtoolame_dab_la-tables.lo
CC libtoolame-dab/libtoolame_dab_la-availbits.lo
CC libtoolame-dab/libtoolame_dab_la-ath.lo
CC libtoolame-dab/libtoolame_dab_la-encode_new.lo
CC libtoolame-dab/libtoolame_dab_la-utils.lo
GEN libtoolame-dab.la
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
CXX src/odr_audioenc-odr-audioenc.o
CXX src/odr_audioenc-FileInput.o
CXX src/odr_audioenc-AlsaInput.o
CXX src/odr_audioenc-JackInput.o
CXX src/odr_audioenc-VLCInput.o
CC src/odr_audioenc-encryption.o
CC src/odr_audioenc-utils.o
CC src/odr_audioenc-wavreader.o
CC contrib/fec/odr_audioenc-decode_rs_char.o
CC contrib/fec/odr_audioenc-encode_rs_char.o
CC contrib/fec/odr_audioenc-init_rs_char.o
CXXLD odr-audioenc
libtool: link: warning: `-no-install' is ignored for x86_64-apple-darwin13.4.0
libtool: link: warning: assuming `-no-fast-install' instead
I now have a working binary and libraries. Have not tested it with any input yet though.
$ ./odr-audioenc -V
Welcome to ODR-AudioEnc v1.2.0-12-geecb436-dirty, compiled at Jan 7 2017, 06:01:23
http://opendigitalradio.org
No output URI defined
Hi,
The -lrt
option probably has to be taken care of by a change to the configure.ac
script.
fdk-aac did obsolete the DAB+ AOTs because it never implemented them, your addition to odr-audioenc.cpp
is unnecessary, because if you install Opendigitalradio/fdk-aac it will work properly.
With upstream fdk-aac it will not work.
Hi, I'm trying to compile under Mac OS X 10.9 using X-Code command line tools (make). Looking for tips to compile successfully.
I've fetched the source using git:
git clone https://github.com/Opendigitalradio/ODR-AudioEnc
fdk-aac and other needed libraries compiled from source to /usr/local
Here's the versions of the tools used.
To compile I performed these steps:
Since -lrt isn't supported, I've commented out lines 16145-16190 in configure before running it.