Open KB00100100 opened 1 year ago
I'm having the same problem. Here's the error with some more context (from make
output).
CCLD lpcnet_demo
src/lpcnet_demo.o: In function `main':
/home/jeremy/dev/tts/LPCNet/src/lpcnet_demo.c:257: undefined reference to `lpc_from_cepstrum'
collect2: error: ld returned 1 exit status
Makefile:629: recipe for target 'lpcnet_demo' failed
make[1]: *** [lpcnet_demo] Error 1
make[1]: Leaving directory '/home/jeremy/dev/tts/LPCNet'
Makefile:465: recipe for target 'all' failed
make: *** [all] Error 2
I can see the lpc_from_cepstrum() function defined in freq.c and objdump --syms src/freq.o shows this line, so it looks like the function is in there. I don't know why the linker can't find it.
0000000000000df0 g F .text 0000000000000132 .hidden lpc_from_cepstrum
I was able to get make to run with the lpcnet_efficiency branch.
Has anyone else found a solution for this issue? Checked the same all @jeremy-syn and don't really understand why this happen.
I can make successfully with the branch "v0.1"
Has anyone else found a solution for this issue? Checked the same all @jeremy-syn and don't really understand why this happen.
@KB00100100 can you send me the link to the branch - actually I do not find the "v0.1" branch. thanks!
@simonwindtner v0.1 is actually a tag, not a branch. It looks likely that something was introduced into the main branch after the lpcnet_efficiency branch split off and after the v0.1 tag and that that something broke the build process. In principle you could diff-and-attempt through all the changes until you find the one that breaks the build, but I have not had the time to do that.
aaaah ok - yes I understand. actually I have no time to step through until It is not working anymore. maybe later, but I loaded the mentioned v0.1 and its compiling :)
Has this problem been solved?
Hi all. I got an error when compiling the code (Ubuntu 20.04):
lpcnet_demo.c:257: undefined reference to `lpc_from_cepstrum'
Why this happens?