cjweeks / tensorflow-cmake

Integrate TensorFlow with CMake projects effortlessly
MIT License
331 stars 83 forks source link

no such target '//tensorflow:libtensorflow_all.so' #22

Closed mozi22 closed 7 years ago

mozi22 commented 7 years ago

Hi, I am using Ubuntu 14.04. I tried to follow the instructions from here but i get an error saying

ERROR: no such target '//tensorflow:libtensorflow_all.so': target 'libtensorflow_all.so' not declared in package 'tensorflow' (did you mean 'libtensorflow_cc.so'?) defined by /home/muazzam/mywork/python/tensorflow/tensorflow/BUILD. INFO: Elapsed time: 0.047s

This error occurs when I use the following command from the repository documentation bazel build tensorflow:libtensorflow_all.so.

The ./configure command is not generating this file and I dont know why.

anybody has any clues ?

cjweeks commented 7 years ago

I have a few questions and suggestions:

When you execute the bazel build command, Bazel looks for the build rule that you specified in the BUILD file of the directory you specified. If checking these items does not work, let me know.

mozi22 commented 7 years ago

thanks, got it working. The problem was that I was copying the build rule inside the (tensorflow-root)/BUILD instead of (tensorflow-root)/tensorflow/BUILD because the (tensorflow-root) is also called tensorflow in my case. It was confusing.