6
Ich habe manuell geklickt das go-Verzeichnis von Tensorflow (eine Bibliothek, die ich arbeite) in /home/arafat/go/src/github.com/tensorflow/tensorflow/tensorflow/contrib/go
können Sie einen Blick here. Ich habe Änderungen an lib.go alscgo CFLAGS kann nicht verwendet werden
// #cgo LDFLAGS: -ltensorflow
// #cgo CFLAGS: -I /home/arafat/go/src/github.com/tensorflow/tensorflow
// #cgo CXXFLAGS: -I /home/arafat/go/src/github.com/tensorflow/tensorflow -std=c++11
Aber ich erhalte den Fehler
# github.com/tensorflow/tensorflow/tensorflow/contrib/go
In file included from go/src/github.com/tensorflow/tensorflow/tensorflow/contrib/go/tf_session_helper.cc:20:0:
go/src/github.com/tensorflow/tensorflow/tensorflow/contrib/go/tf_session_helper.h:22:49: fatal error: tensorflow/core/public/tensor_c_api.h: No such file or directory
#include "tensorflow/core/public/tensor_c_api.h"
^
compilation terminated.
auf
tungo get github.com/tensorflow/tensorflow/tensorflow/contrib/go
ich nicht in der Lage bin zu verstehen, warum dies nicht funktioniert.
tun Wenn Sie die CFLAGS bearbeiten haben, ist es wahrscheinlich, weil Sie eine veraltete Version von Go verwenden – JimB