Hi, I’m trying to compile deepspeech for Windows, I’ll create the C# wrapper if i compile it, I’ll keep investigating and trying configurations, but if someone can help me with this I really apreciate it. Let me know if the formatting is wrong.
I followed the configuration of Tensowflow for Bazel compilation. The Tensorflow configuration of configure.py that I am using:
SET PYTHON_BIN_PATH=C:/Users/neoxz/AppData/Local/Programs/Python/Python36/python.exe
SET PYTHON_LIB_PATH=C:/Users/neoxz/AppData/Local/Programs/Python/Python36/lib/site-packages
SET TEMP=C:\Users\neoxz\AppData\Local\Temp
SET TF_DOWNLOAD_CLANG=0
SET TF_NEED_CUDA=0
SET TF_NEED_OPENCL_SYCL=0
SET TF_NEED_ROCM=0
SET TMP=C:\Users\neoxz\AppData\Local\Temp
Then fixed the directory structure, I was wrong, now I am using from a @reuben comment :
DeepSpeech - DeepSpeech.py - native_client - etc. mozilla-tensorflow - tensorflow - tools - native_client -> ../DeepSpeech/native_client - etc.
I created the symbolic link using:
mklink /d “C:\m\mozilla-tensorflow\native_client” “C:\m\DeepSpeech\native_client”
The first command compiled without error, yes the files were generated:
bazel build -c opt --copt=-O3 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" //native_client:libctc_decoder_with_kenlm.so
The error that I’m getting running the command :
bazel build --config=monolithic -c opt --copt=-O3 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-fvisibility=hidden //native_client:libdeepspeech.so //native_client:generate_trie
l : Command line warning D9025 : overriding ‘/w’ with ‘/W3’
cl : Command line warning D9002 : ignoring unknown option ‘-O3’
cl : Command line warning D9002 : ignoring unknown option ‘-fvisibility=hidden’
INFO: From Compiling external/com_google_absl/absl/strings/escaping.cc:
cl : Command line warning D9025 : overriding ‘/w’ with ‘/W3’
cl : Command line warning D9002 : ignoring unknown option ‘-O3’
cl : Command line warning D9002 : ignoring unknown option ‘-fvisibility=hidden’
INFO: From Compiling external/com_google_absl/absl/strings/substitute.cc:
cl : Command line warning D9025 : overriding ‘/w’ with ‘/W3’
cl : Command line warning D9002 : ignoring unknown option ‘-O3’
cl : Command line warning D9002 : ignoring unknown option ‘-fvisibility=hidden’
INFO: From Compiling external/protobuf_archive/src/google/protobuf/descriptor.cc:
cl : Command line warning D9002 : ignoring unknown option ‘-O3’
cl : Command line warning D9002 : ignoring unknown option ‘-fvisibility=hidden’
INFO: From Linking external/protobuf_archive/protobuf.lib:
error_listener.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
ERROR: C:/m/mozilla-tensorflow/native_client/BUILD:13:1: C++ compilation of rule ‘//native_client:libdeepspeech.so’ failed (Exit 2): cl.exe failed: error executing command
cd C:/users/neoxz/bazel_neoxz/khcg3xfd/execroot/org_tensorflow
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64;
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;;C:\Windows\system32
SET PWD=/proc/self/cwd
SET PYTHON_BIN_PATH=C:/Users/neoxz/AppData/Local/Programs/Python/Python36/python.exe
SET PYTHON_LIB_PATH=C:/Users/neoxz/AppData/Local/Programs/Python/Python36/lib/site-packages
SET TEMP=C:\Users\neoxz\AppData\Local\Temp
SET TF_DOWNLOAD_CLANG=0
SET TF_NEED_CUDA=0
SET TF_NEED_OPENCL_SYCL=0
SET TF_NEED_ROCM=0
SET TMP=C:\Users\neoxz\AppData\Local\Temp
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /bigobj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-opt/genfiles /Iexternal/com_google_absl /Ibazel-out/x64_windows-opt/genfiles/external/com_google_absl /Iexternal/bazel_tools /Ibazel-out/x64_windows-opt/genfiles/external/bazel_tools /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Iexternal/local_config_sycl /Ibazel-out/x64_windows-opt/genfiles/external/local_config_sycl /Iexternal/nsync /Ibazel-out/x64_windows-opt/genfiles/external/nsync /Iexternal/gif_archive /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive /Iexternal/jpeg /Ibazel-out/x64_windows-opt/genfiles/external/jpeg /Iexternal/protobuf_archive /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive /Iexternal/com_googlesource_code_re2 /Ibazel-out/x64_windows-opt/genfiles/external/com_googlesource_code_re2 /Iexternal/farmhash_archive /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive /Iexternal/fft2d /Ibazel-out/x64_windows-opt/genfiles/external/fft2d /Iexternal/highwayhash /Ibazel-out/x64_windows-opt/genfiles/external/highwayhash /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Iexternal/snappy /Ibazel-out/x64_windows-opt/genfiles/external/snappy /Iexternal/local_config_cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda /Inative_client/kenlm /Ibazel-out/x64_windows-opt/genfiles/native_client/kenlm /Ibazel-out/x64_windows-opt/bin/native_client/kenlm /Inative_client/boost_locale /Ibazel-out/x64_windows-opt/genfiles/native_client/boost_locale /Ibazel-out/x64_windows-opt/bin/native_client/boost_locale /Inative_client/c_speech_features /Ibazel-out/x64_windows-opt/genfiles/native_client/c_speech_features /Ibazel-out/x64_windows-opt/bin/native_client/c_speech_features /Inative_client/kiss_fft130 /Ibazel-out/x64_windows-opt/genfiles/native_client/kiss_fft130 /Ibazel-out/x64_windows-opt/bin/native_client/kiss_fft130 /Iexternal/eigen_archive /Ibazel-out/x64_windows-opt/genfiles/external/eigen_archive /Ibazel-out/x64_windows-opt/bin/external/eigen_archive /Iexternal/nsync/public /Ibazel-out/x64_windows-opt/genfiles/external/nsync/public /Ibazel-out/x64_windows-opt/bin/external/nsync/public /Iexternal/gif_archive/lib /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/lib /Ibazel-out/x64_windows-opt/bin/external/gif_archive/lib /Iexternal/gif_archive/windows /Ibazel-out/x64_windows-opt/genfiles/external/gif_archive/windows /Ibazel-out/x64_windows-opt/bin/external/gif_archive/windows /Iexternal/protobuf_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/protobuf_archive/src /Ibazel-out/x64_windows-opt/bin/external/protobuf_archive/src /Iexternal/farmhash_archive/src /Ibazel-out/x64_windows-opt/genfiles/external/farmhash_archive/src /Ibazel-out/x64_windows-opt/bin/external/farmhash_archive/src /Iexternal/zlib_archive /Ibazel-out/x64_windows-opt/genfiles/external/zlib_archive /Ibazel-out/x64_windows-opt/bin/external/zlib_archive /Iexternal/double_conversion /Ibazel-out/x64_windows-opt/genfiles/external/double_conversion /Ibazel-out/x64_windows-opt/bin/external/double_conversion /Iexternal/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda /Iexternal/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include /Iexternal/local_config_cuda/cuda/cuda/include/crt /Ibazel-out/x64_windows-opt/genfiles/external/local_config_cuda/cuda/cuda/include/crt /Ibazel-out/x64_windows-opt/bin/external/local_config_cuda/cuda/cuda/include/crt /D__CLANG_SUPPORT_DYN_ANNOTATION_ /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DTF_USE_SNAPPY /DKENLM_MAX_ORDER=6 /showIncludes /MD /O2 /DNDEBUG -w -O3 -D_GLIBCXX_USE_CXX11_ABI=0 -fvisibility=hidden -Wno-sign-compare -fvisibility=hidden /Fobazel-out/x64_windows-opt/bin/native_client/_objs/libdeepspeech.so/fast-dtoa.obj /c native_client/kenlm/util/double-conversion/fast-dtoa.cc
cl : Command line error D8021 : invalid numeric argument '/Wno-sign-compare’
Target //native_client:libdeepspeech.so failed to build
INFO: Elapsed time: 39,873s, Critical Path: 12,54s
INFO: 382 processes: 382 local.
FAILED: Build did NOT complete successfully
Can someone explain what is the argument :
–copt=-O3 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" bazel is ignoring copt -03