Closed kuaikuaikim closed 7 years ago
As the pre-built libtensorflow.so is for arm64, and if you are trying this on x86, ld will complain.
You can workaround this by two methods: 1) Skip tensorflow support by setting TF_ON=0 2) Build libtensorflow.so as guided in README.md
Thanks,
cyberfire
Please re-open if meet new issue
Hi, I have the same problem. I follow this https://www.tensorflow.org/install/install_c for tensorflow c apis, but not bazel build. I do have libtensorflow.so in TENSORFLOW_ROOT. I guess I have to link it to test/camera.a as well?
Seems to be similar to this issue. The fix works like charm. I had to add the install library path to variable(LD_LIBRARY_PATH)
i have disable the arm_compute, but met another problem whem make your project. I built the libmtcnn.so successfully. Link the test.a just print these problem below.
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_DeleteTensor' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_DeleteStatus' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_DeleteSession' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_DeleteGraph' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_Message' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_TensorData' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_NewGraph' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_NewSessionOptions' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_SessionRun' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_NewSession' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_CloseSession' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_GraphOperationByName' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_GraphImportGraphDef' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_NewStatus' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_Dim' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_NewTensor' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference toTF_GetCode' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to
TF_NewImportGraphDefOptions' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to `TF_ImportGraphDefOptionsSetPrefix' collect2: error: ld returned 1 exit status Makefile:18: recipe for target 'test' failed make: *** [test] Error 1