xiph / LPCNet

Efficient neural speech synthesis
BSD 3-Clause "New" or "Revised" License
1.14k stars 295 forks source link

make error:undefined reference to `lpc_from_cepstrum' #209

Open Janne-byti opened 1 year ago

Janne-byti commented 1 year ago

I want to know if this is just a header file loop call or is it missing some code?

lyt-git1129 commented 1 year ago

I also encountered this error

pablodz commented 9 months ago

same here

make  all-am
make[1]: Entering directory '/home/user/vozy/LPCNet'
  CCLD     lpcnet_demo
/usr/bin/ld: src/lpcnet_demo.o: in function `main':
/home/user/vozy/LPCNet/src/lpcnet_demo.c:257:(.text.startup+0x6a7): undefined reference to `lpc_from_cepstrum'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:653: lpcnet_demo] Error 1
make[1]: Leaving directory '/home/user/vozy/LPCNet'
make: *** [Makefile:488: all] Error 2
pablodz commented 9 months ago

https://github.com/xiph/LPCNet/issues/208

bear-boy commented 9 months ago

Just as #208 you can do: git reset --hard 3000fa24717cbb68291e5bc589da0db351b51dec then complie, it works for me.

MoSal commented 6 months ago

Removing -fvisibility=hidden from compile flags works. No need to revert to an older version.

uuuuuvp commented 5 months ago

Just as #208 you can do: git reset --hard 3000fa24717cbb68291e5bc589da0db351b51dec then complie, it works for me. man, it's helps me a lot

shawl336 commented 5 months ago

prepend __attribute__((visibility("default"))) before the line 57 of freq.h fixed the issue which looks like: __attribute__((visibility("default"))) float lpc_from_cepstrum(float lpc, const float cepstrum);

uuuuuvp commented 5 months ago

prepend attribute((visibility("default"))) before the line 57 of freq.h fixed the issue which looks like: attribute((visibility("default"))) float lpc_from_cepstrum(float lpc, const float cepstrum);

Bro, can I take a look at your pip list? from tensorflow.compat.v1.keras.layers import CudnnGRU is always having issues, your method really works well! thanks

shawl336 commented 1 month ago

hope this could do the favor numpy==1.16.4 absl-py==0.7.1
astor==0.8.0
audioread==2.1.8
backports.weakref==1.0rc1
bandmat==0.7
bleach==1.5.0
certifi==2019.6.16 cffi==1.12.3
cycler==0.10.0
decorator==4.4.0
fire==0.2.1
gast==0.2.2
google-pasta==0.1.7
grpcio==1.16.1
h5py==2.9.0
html5lib==0.9999999 inflect==2.1.0
joblib==0.13.2
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kiwisolver==1.1.0
librosa==0.7.0
llvmlite==0.29.0
Markdown==3.1.1
matplotlib==3.1.1

mkl-fft==1.0.14

mkl-random==1.0.2

mkl-service==2.0.2

mock==3.0.5
numba==0.45.1
pandas==0.25.1
pip==19.2.2
protobuf==3.8.0
pycparser==2.19
pyparsing==2.4.2
python-dateutil==2.8.0
pytz==2019.2
resampy==0.2.2
scikit-learn==0.21.3
scipy==1.3.1
setuptools==41.0.1
six==1.12.0
SoundFile==0.10.2
tensorboard==1.12.2
tensorflow-estimator==1.13.0
tensorflow-gpu==1.12.0 termcolor==1.1.0
tqdm==4.35.0
Unidecode==1.1.1
Werkzeug==0.15.5
wheel==0.33.4
wrapt==1.11.2

prepend attribute((visibility("default"))) before the line 57 of freq.h fixed the issue which looks like: attribute((visibility("default"))) float lpc_from_cepstrum(float lpc, const float cepstrum);

Bro, can I take a look at your pip list? from tensorflow.compat.v1.keras.layers import CudnnGRU is always having issues, your method really works well! thanks