tensorflow-cc-examples
tensorflow-cc-examples copied to clipboard
No rule to make target for the libtensorflow_cc.so
Hello, There are two error of your projects on running at my virtual machine.
Scanning dependencies of target intro-basic-graphdef [ 8%] Building CXX object examples/1_Introduction/CMakeFiles/intro-basic-graphdef.dir/src/basic-graphdef.cc.o make[2]: *** No rule to make target '../third-party/tensorflow-cc-sdk-generator/example/third-party/tensorflow-sdk/libs/libtensorflow_cc.so', needed by 'bin/intro-basic-graphdef'. Stop. make[1]: *** [CMakeFiles/Makefile2:161: examples/1_Introduction/CMakeFiles/intro-basic-graphdef.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 This error is for tensorflow-cc-sdk-generator project with build folder.
Scanning dependencies of target example [ 50%] Building CXX object app/CMakeFiles/example.dir/src/main.cc.o make[2]: *** No rule to make target '../third-party/tensorflow-sdk/libs/libtensorflow_cc.so', needed by 'example'. Stop. make[1]: *** [CMakeFiles/Makefile2:133: app/CMakeFiles/example.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 This error is for tensorflow-cc-example project with build folder.
My Tensorflow Github project is using branch with r2.3. My abseil Library is using branch with lts_2018_12_18. My protobuf Library is using branch with 3.9.x. My machine is Ubuntu with 20.04 with WSL2, it is set up on window 11.
My configure: I have installed bazel 3.1.0. Location for python is /home/ubuntu/miniconda3/bin/python3. Location for python Library is /home/ubuntu/miniconda3/lib/python3.10/site-packages. No need to build TensorFlow with OpenCL SYCL support. No need to build TensorFlow with ROCm support. No need to build TensorFlow with CUDA support. No need to download a fresh release of clang. bazel option is -march=native -Wno-sign-compare. No need to interactively configure ./WORKSPACE for Android builds.
After my bazel build command is then: bazel build --config=opt --local_ram_resources==4096 --cpu=4 --jobs=4 --verbose_failures //tensorflow:libtensorflow_cc.so bazel build is no issues.
I hope that I can use CPU to run the tensorflow project or something of tensorflow. Those two error is bazel build command have problem ? I just miss the last one command issues. The command is cmake --build. Please help me to fix the issues.
If you need some information, I can provide that.