wav2letter
wav2letter copied to clipboard
Facing below issue when I am trying to build wav2letter in Docker
Steps I followed:
- sudo docker run --rm -itd --ipc=host --name w2l wav2letter/wav2letter:cpu-latest
- sudo docker exec -it w2l bash
- export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64:$LD_LIBRARY_PATH
- cd /root/flashlight && git pull
- cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DFLASHLIGHT_BACKEND=CPU
- make -j8 && make install
- export KENLM_ROOT_DIR=/root/kenlm
- cd /root/wav2letter
- git pull (Did not work due to authentication issue, i tried adding ssh key but also did not work )
- rm -rf build/*
- cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DW2L_LIBRARIES_USE_CUDA=OFF -DW2L_BUILD_INFERENCE=ON
Then I encountered below issue. Please help me regarding the same. Thank you.
root@287c7bdde47f:~/wav2letter/build# cmake .. -DCMAKE_BUILD_TYPE=Release -DW2L_LIBRARIES_USE_CUDA=OFF -DW2L_BUILD_INFERENCE=ON
-- ArrayFire found (include: /usr/local/include, library: ArrayFire::afcpu)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- GLOG found
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- GFLAGS found
-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Found OpenMP: TRUE
-- OpenMP found
-- flashlight found (include: lib: flashlight::flashlight )
CMake Error at CMakeLists.txt:103 (message):
flashlight must be build in distributed mode for wav2letter++
-- Configuring incomplete, errors occurred!
See also "/root/wav2letter/build/CMakeFiles/CMakeOutput.log".
Currently we are merging code from w2l into flashlight, so doing git pull on flashlight is taking new version (which has another flags of building). You have two options:
- do git pull on flashlight and then checkout on tag v0.2 - with it w2l should be built finely
- switch to flashlight - check there the way we install, and there we have latest docker images too.