Building for Windows

Hey all,

I have been trying to build Deepspeech for windows following the readme provided at the repository, however I have been some issues with trying to build it.

  1. It told me to use bazel 0.17.2 but running configure.py would throw out this error
    “You have bazel 0.17.2 installed.
    Please upgrade your bazel installation to version 0.19.0 or higher to build TensorFlow!”

They also had complained when I used bazel 0.23.0 which was too new of a version.

  1. When I switched to another version of bazel (0.22) and run the configure.py (this is okay) and then the command provided in the readme, I get
    “Skipping ‘//native_client:libdeepspeech.so’: error loading package ‘native_client’: Unable to load package for ‘@org_tensorflow//tensorflow/contrib/lite:build_def.bzl’: BUILD file not found on package path”

I am running it from the main directory of tensorflow which I can see the native_client directory as directory within this directory.

Thanks all.

Have you checked out the correct tensorflow repository ?

Hm, re-checking the docs: https://github.com/mozilla/DeepSpeech/tree/master/examples/net_framework#getting-the-code we don’t document here to checkout r1.12, so that’s likely your issue.

BTW we now have prebuilt binaries for Windows and NuGet packages on nuget.org, is there any reason you need to rebuild?

Ah okay. Didn’t realize that there were already prebuilt binaries.

Okay, tested it and everything works fine. Sorry for the trouble!

1 Like

Perfect, just don’t forget this platform is quite new, so don’t hesitate to test and report issues!