-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update faqs to enable CGO for sherpa-onnx. (#589)
- Loading branch information
1 parent
3bf2bf9
commit a83f0c4
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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``. |