cmake error TF_FRAMEWORK-NOTFOUND
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
cmake error while build in docker
```
-- tensorflow_framework library found: in TF_FRAMEWORK-NOTFOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TF_FRAMEWORK
```
The reason is that `libtensorflow_framework.so` does't exist, so make a link to the so.
Solution:
```
root@16497131a7c1:/tmp/Euler/build# python -c "import tensorflow as tf; print(tf.sysconfig.get_lib())"
/usr/local/lib/python2.7/dist-packages/tensorflow
root@16497131a7c1:/tmp/Euler/build# ll /usr/local/lib/python2.7/dist-packages/tensorflow/libtensorflow_framework.so.1
-rwxr-xr-x 1 root staff 34748520 Sep 2 02:51 /usr/local/lib/python2.7/dist-packages/tensorflow/libtensorflow_framework.so.1*
root@16497131a7c1:/tmp/Euler/build# cd /usr/local/lib/python2.7/dist-packages/tensorflow/
root@16497131a7c1:/usr/local/lib/python2.7/dist-packages/tensorflow# ln -s libtensorflow_framework.so.1 libtensorflow_framework.so
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Docker build and inspect the CMake files that define and test TF_FRAMEWORK. Compare the lookup with the TensorFlow library path returned by tf.sysconfig.get_lib() and the libtensorflow_framework.so.1 location shown in the report. Done means the build resolves TF_FRAMEWORK without a manual symlink.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, docker, tensorflow
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100