'Building tensorflow lite using bazel didnt produce external static libs in linux
I've added a custom op code to tensorflow lite and trying to compile the c api version using bazel. Now with macos/ios/windows in addition to the shared lib (.dylib/.dll) it'll also create static libs(.a,.lib), for the external code(absl,flattbuffer etc..) and also for the tflite deps code (object_reader etc..). When i try to compile it with linux it’ll only produce one libtensorflow_c.so and thats it, but i also need the other deps against my project or I'll have linking problems. Is there a way to force bazel to create the external libs in addition to the shared?
Bazel line i use to build:
bazel build --java_runtime_version=remotejdk_11 -c opt --define=no_tensorflow_py_deps=true --define tflite_with_xnnpack=true //tensorflow/lite/c:libtensorflowlite_c.so
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
