Skip to content

Commit

Permalink
Update faqs to enable CGO for sherpa-onnx. (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored May 14, 2024
1 parent 3bf2bf9 commit a83f0c4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/source/onnx/faqs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,19 @@ Then please run::
sudo apt-get install libportaudio2

and then re-try.

imports github.com/k2-fsa/sherpa-onnx-go-linux: build constraints exclude all Go files
--------------------------------------------------------------------------------------

If you have the following output when running ``go build``::

[root@VM-0-3-centos non-streaming-decode-files]# go build
package non-streaming-decode-files
imports github.com/k2-fsa/sherpa-onnx-go/sherpa_onnx
imports github.com/k2-fsa/sherpa-onnx-go-linux: build constraints exclude all Go files in /root/go/pkg/mod/github.com/k2-fsa/[email protected]

Please first run::

go env -w CGO_ENABLED=1

And then re-run ``go build``.

0 comments on commit a83f0c4

Please sign in to comment.