this is the commande is used :
“”“gcc -o hello_tf hello_tf.c -I. -Llib/tensorflow/lite -ltensorflowlite”“”
this is the error msg:
“”"
/usr/bin/ld: /tmp/ccynBol8.o: in function `main’:
hello_tf.c:(.text+0x9): undefined reference to `TfLiteExtensionApisVersion’
collect2: error: ld returned 1 exit status
“”"
can any one help me ?
1-Clone the TensorFlow Lite repository.
2-Build the library using this command: bazel build -c opt //tensorflow/lite/c:libtensorflowlite_c.so
.
3-Copy libtensorflowlite_c.so to your folder from bazel-bin/tensorflow/lite/c/
.
4-Compile: gcc -o hello_tf hello_tf.c -I. -Llib/tensorflow/lite -ltensorflowlite_c
.
5-Copy and paste your dynamic library to /usr/lib : sudo cp lib/tensorflow/lite/libtensorflowlite_c.so /usr/lib
.
6-Almost done: ./hello_tf
.