OSError: sndfile library not found

I have build issue using quick start (python3 ./build_default.py --toolchain arm) after I synced to head (49482d5 (HEAD → main, tag: 23.11-rc1, origin/main, origin/HEAD) MLECO-4371 Update dependencies to 23.11 release components) in WSL2 Ubuntu 22.04.2 LTS which is also newly installed. The error message shown below:
– Generating audio files from /home/kli/ml-embedded-evaluation-kit/resources/ad/samples
Traceback (most recent call last):
File “/home/kli/ml-embedded-evaluation-kit/scripts/py/gen_audio_cpp.py”, line 30, in
from gen_utils import GenUtils, AudioSample
File “/home/kli/ml-embedded-evaluation-kit/scripts/py/gen_utils.py”, line 28, in
import soundfile as sf
File “/home/kli/ml-embedded-evaluation-kit/resources_downloaded/env/lib/python3.10/site-packages/soundfile.py”, line 142, in
raise OSError(‘sndfile library not found’)
OSError: sndfile library not found
CMake Error at scripts/cmake/source_gen_utils.cmake:73 (message):
Failed to generate audio files.
Call Stack (most recent call first):
source/use_case/ad/usecase.cmake:52 (generate_audio_code)
CMakeLists.txt:186 (include)

– Configuring incomplete, errors occurred!
See also “/home/kli/ml-embedded-evaluation-kit/cmake-build-mps3-sse-300-ethos-u55-128-arm/CMakeFiles/CMakeOutput.log”.
See also “/home/kli/ml-embedded-evaluation-kit/cmake-build-mps3-sse-300-ethos-u55-128-arm/CMakeFiles/CMakeError.log”.
Failed to configure the project.

Anyone see similar issue if so please share your solution.

Please help me to resolve this issue.

Thanks!
Kaiping

I have fixed the problem by download below package, and the build has completed.
sudo apt-get install libsndfile1-dev

Thanks,
Kaiping

Great to hear Kaiping - thank you for letting us know and for sharing your solution for others