eddie-z-ng / inception_cmake

Tensorflow Serving inception client via CMake
6 stars 4 forks source link

build errors #2

Open oregonduckman opened 6 years ago

oregonduckman commented 6 years ago

After following the instructions in README.md I get the following errors, please advise.

CMake Error at CMakeLists.txt:17 (find_package): By not providing "FindTensorflowCC.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "TensorflowCC", but CMake did not find one.

Could not find a package configuration file provided by "TensorflowCC" with any of the following names:

TensorflowCCConfig.cmake
tensorflowcc-config.cmake

Add the installation prefix of "TensorflowCC" to CMAKE_PREFIX_PATH or set "TensorflowCC_DIR" to a directory containing one of the above files. If "TensorflowCC" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!

ghost commented 5 years ago

When you build tensorflow_cc add an install path prefix of your choice cmake -DCMAKE_INSTALL_PREFIX=/home/somedir/project/tfcc_install/ ..

Then when you build inception_cmake add the same path to your cmake, basically the same line as above.

You are not out of the wood yet though: inception_cmake is looking for SHARED libs, whereas tensorflow_cc builds STATIC by default. Find the fix for that in my second issue post