Distrotech / libaacplus

Other
6 stars 6 forks source link

Build fails on Ubuntu 18 #1

Open K1WIZ opened 4 years ago

K1WIZ commented 4 years ago

libtool: link: ar cru .libs/libaacplus.a aacenc.o aac_rom.o adj_thr.o band_nrg.o bitbuffer.o bit_cnt.o bitenc.o bit_sbr.o block_switch.o cfftn.o channel_map.o code_env.o dyn_bits.o env_bit.o env_est.o fram_gen.o freq_sca.o grp_data.o hybrid.o interface.o invf_est.o line_pe.o mh_det.o ms_stereo.o nf_est.o pre_echo_control.o ps_bitenc.o ps_enc.o psy_configuration.o psy_main.o qc_main.o qmf_enc.o quantize.o resampler.o sbr_main.o sbr_misc.o sbr_rom.o sf_estim.o spreading.o stat_bits.o stprepro.o tns.o tns_param.o ton_corr.o tran_det.o transcendent.o transform.o aacplusenc.o adts.o ar: u' modifier ignored sinceD' is the default (see U') libtool: link: ranlib .libs/libaacplus.a libtool: link: ( cd ".libs" && rm -f "libaacplus.la" && ln -s "../libaacplus.la" "libaacplus.la" ) make[2]: Leaving directory '/home/john/bcast/libaacplus/src' Making all in include make[2]: Entering directory '/home/john/bcast/libaacplus/include' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/john/bcast/libaacplus/include' Making all in patches make[2]: Entering directory '/home/john/bcast/libaacplus/patches' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/john/bcast/libaacplus/patches' Making all in frontend make[2]: Entering directory '/home/john/bcast/libaacplus/frontend' gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../src -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c: In function ‘main’: main.c:89:22: warning: too many arguments for format [-Wformat-extra-args] fprintf(stdout,"setting cfg failed\n", ret); ^~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/main.Tpo .deps/main.Po /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o aacplusenc main.o ../src/libaacplus.la -lm -lm libtool: link: gcc -g -O2 -o .libs/aacplusenc main.o ../src/.libs/libaacplus.so -lm main.o: In functionmain': /home/john/bcast/libaacplus/frontend/main.c:40: undefined reference to AuChannelOpen' /home/john/bcast/libaacplus/frontend/main.c:106: undefined reference toAuChannelReadFloat' /home/john/bcast/libaacplus/frontend/main.c:40: undefined reference to `AuChannelOpen' collect2: error: ld returned 1 exit status Makefile:438: recipe for target 'aacplusenc' failed make[2]: [aacplusenc] Error 1 make[2]: Leaving directory '/home/john/bcast/libaacplus/frontend' Makefile:518: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/john/bcast/libaacplus' Makefile:388: recipe for target 'all' failed make: *** [all] Error 2

SviMik commented 3 years ago

Did you manage to solve it? It fails on Ubuntu 20.04 as well.

seclabchi commented 2 years ago

I think you need to replace all "inline" with "static inline" in frontend/au_channel.h

Something about the inline semantics with the compiler.

1opeti commented 2 years ago

seclabchi I have been wrangling with this for days and it all compiles in a flash now. ThankYou I am building on Ubuntu 20. R