Cannot statically link against Tensorflow library in Golang #15563
Describe the problem
I'm trying to compile a statically-linked binary of the hello world app against the TF 1.4.0 binary per the golang install & hello-world instructions and am not able to successfully link against the TF library as it reports that
The command used is:
I've tried linking against
The only related issue I've encountered for this is: https://stackoverflow.com/questions/44428816/tensorflow-for-go-demo-example-run-failed, but that didn't help much either.
That being said, I can dynamically link and build the helloworld go code e.g.
Any help or advice would be greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
TensorFlow for Go depends on the
Once bazelbuild/bazel#1920 is resolved, we should be able to build static libraries as part of our release and hopefully that will help.
Till then, you'd have to either live with dynamic linking or figure out how to build a static
Hope that helps.