Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make problem #2

Closed
kuaikuaikim opened this issue Aug 5, 2017 · 4 comments
Closed

make problem #2

kuaikuaikim opened this issue Aug 5, 2017 · 4 comments

Comments

@kuaikuaikim
Copy link

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 to TF_DeleteSession' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_DeleteGraph'
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_Message' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_TensorData'
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_NewGraph' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_NewSessionOptions'
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_SessionRun' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_NewSession'
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_CloseSession' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_GraphOperationByName'
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_GraphImportGraphDef' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_NewStatus'
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_Dim' /home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_NewTensor'
/home/sg/workspace/mtcnn/libmtcnn/libmtcnn.so: undefined reference to TF_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

@cyberfire
Copy link
Contributor

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

@cyberfire
Copy link
Contributor

Please re-open if meet new issue

@flankechen
Copy link

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?

@kapildevkumara
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants