Compiling for Windows

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

You can’t simply compile DeepSpeech for Windows, you need to port it. All the errors you’re getting are due to passing GCC flags to MSVC, which doesn’t handle them. You’ll need to figure out what the appropriate flags are for MSVC and specify them on native_client/BUILD.

Thanks, I’ll get into that. Really need the C# wrapper so I’ll put a lot of effort to make it woks, if it is possible.
:smiley:

Well, the -wno-sign is gone, just removed from native_client/BUILD:

copts = ["-Wno-sign-compare", “-fvisibility=hidden”],

Now I’m fixing:

/c native_client/c_speech_features/c_speech_features.cpp
native_client/c_speech_features/c_speech_features.cpp(328): error C2065: ‘M_PI’: undeclared identifier

The error line :

factors[i] = 1 + lifter * csf_sin(M_PI * i / (csf_float)aCepLifter);

The question is, where is declared M_PI, is just the value of PI, is it truncated, I need to know to avoid weird behaviors at the end? I’ll use a constant until someone reply.

Sorry for the spam, just want to someone to tell me where to look, like @reuben did with the native_client/BUILD, @reuben thanks.

These are general Windows development questions, you’ll need to look into Windows documentation or Windows porting tutorial/guidelines, I guess. Hopefully someone else here on the forum can help you out.

@reuben Do you know from where M_PI is imported in non Windows enviroment, from math.h right?
I think this will fix the issue, Pi cmath fix. Will update the result soon.

Fixed, but more errors.

c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(30): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(40): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(40): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(40): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(41): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(59): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(59): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(60): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(79): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(79): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(80): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(100): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(100): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(101): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(114): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(114): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(114): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(115): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(130): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(130): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(130): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(131): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(143): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(143): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(143): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(144): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(155): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(155): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(155): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(156): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(179): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(179): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(179): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(180): error C2448: '__attribute__': function-style initializer appears to be a function definition
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(192): error C3861: 'visibility': identifier not found
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(192): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(192): error C2374: '__attribute__': redefinition; multiple initialization
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(29): note: see declaration of '__attribute__'
c:\users\neoxz\_bazel_neoxz\khcg3xfd\execroot\org_tensorflow\native_client\deepspeech.h(193): error C2448: '__attribute__': function-style initializer appears to be a function definition
native_client/deepspeech.cc(391): error C3861: 'DS_PrintVersions': identifier not found
native_client/deepspeech.cc(511): error C3861: 'DS_SetupStream': identifier not found
native_client/deepspeech.cc(515): error C3861: 'DS_FeedAudioContent': identifier not found
native_client/deepspeech.cc(516): error C3861: 'DS_FinishStream': identifier not found
native_client/deepspeech.cc(580): error C3861: 'DS_DiscardStream': identifier not found
cl : Command line warning D9002 : ignoring unknown option '-O3'
cl : Command line warning D9002 : ignoring unknown option '-fvisibility=hidden'

:smile: Well, at least the errors are well explained, now I’m looking for fixes, will share results if I achieve something.

Fixed with visibility guide.

Now more errors :rofl:

ch.obj /c native_client/deepspeech.cc
native_client/kenlm\util/fake_ostream.hh(79): error C2872: ‘StringPiece’: ambiguous symbol
native_client/kenlm\util/string_piece.hh(95): note: could be ‘StringPiece’
.\tensorflow/core/lib/core/stringpiece.h(34): note: or ‘tensorflow::StringPiece’
native_client/kenlm\util/fake_ostream.hh(79): note: while compiling class template member function ‘util::StringStream &util::FakeOStreamutil::StringStream::operator <<(const char *)’
native_client/kenlm\util/exception.hh(46): note: see reference to function template instantiation ‘util::StringStream &util::FakeOStreamutil::StringStream::operator <<(const char *)’ being compiled
native_client/kenlm\util/string_stream.hh(11): note: see reference to class template instantiation ‘util::FakeOStreamutil::StringStream’ being compiled
cl : Command line warning D9002 : ignoring unknown option ‘-O3’
INFO: Elapsed time: 484,663s, Critical Path: 246,64s
INFO: 530 processes: 530 local.

Now fixing

ative_client/kenlm/lm/model_buffer.cc(11): fatal error C1083: Cannot open include file: ‘boost/lexical_cast.hpp’: No such file or directory

Need help, which version of boost I have to use?

Not sure what you are doing, there’s no such native_client/kenlm/lm/model_buffer.cc file

You right, looks like at some point I copied the wrong folder. I’ll start over tomorrow. Thanks

BTW, it’d be easier to verify / help if you document exactly which branches / commits you are working from

Master, but I edited a file on my local machine then upload that folder to my VM, I think I moved files from older brach. I’ll try again tomorrow being more careful.

master of which repo ? Have you carefully read the documentation ? Current DeepSpeech/master relies on mozilla’s tensorflow/r1.11

Hi, now I’ll try with DeepSpeechv0.3.0 and Tensorflow r1.11

there’s a lot of changes since 0.3.0, you should directly get current master

Ok, I’ll use the current master of DeepSpeech with Tensorflow r1.11, thanks for the quick reply

I got stuck with this error:

native_client/ctcdecode/third_party/openfst-1.6.7/src/include\fst/generic-register.h(8): fatal error C1083: Cannot open include file: ‘dlfcn.h’: No such file or directory

It’s ctcdecoder related, ctcdecoder uses dlfcn.h which is not available on Windows by default, but there is an aproach dlfcn-win32 that I’m trying to include to the Bazel Build, still reading how to achieve that with Bazel.

Upstream chimed in on the Github issue, so maybe it’s something workable?

There’s quite a few resources on building OpenFST for Windows on the Web. Hopefully you can just switch the code to use one of the Windows ports, or use Cygwin.

1 Like