title: Tensorflow Op: how to include libtensorflow_framework.so?
body: <p>I followed the instructions of this tutorial:
  <a href="https://www.tensorflow.org/extend/adding_an_op#implement_the_gradient_in_python" rel="noreferrer">https://www.tensorflow.org/extend/adding_an_op#implement_the_gradient_in_python</a>.
  There is this comment provided: <code>g++ -std=c++11 -shared zero_out.cc -o zero_out.so -fPIC -I$TF_INC -I$TF_INC/external/nsync/public -L$TF_LIB -ltensorflow_framework -O2</code></p>
  
  <p>But the linker cannot find <code>-ltensorflow_framework</code> (it should be a tensorflow_frameowork.so file!?)</p>
  
  <p>After some research, I found following links:</p>
  
  <ul>
  <li><a href="https://github.com/tensorflow/tensorflow/issues/1569" rel="noreferrer">https://github.com/tensorflow/tensorflow/issues/1569</a></li>
  <li><a href="https://github.com/eaplatanios/tensorflow_scala/issues/26" rel="noreferrer">https://github.com/eaplatanios/tensorflow_scala/issues/26</a> --> I downloaded the .jar and linked it via <code>-l/pathto/tensorflow_framework.so</code>, still the <code>fatal error: tensorflow/core/framework/op_kernel.h: No such file or directory</code> is not found.</li>
  <li><a href="https://github.com/tensorflow/tensorflow/issues/1270" rel="noreferrer">https://github.com/tensorflow/tensorflow/issues/1270</a>  last comment does not work and so does not help me. </li>
  </ul>
  
  <p>I tried to search for <code>sudo find /usr/. -name "tensorflow_framework.so"</code> recursively but I could not find anything. Tensorflow is installed for sure via anaconda and I also cloned and compiled the repository from source.</p>
  
  <p>How to find a way to include the <code>-ltensorflow_framework</code>?</p>