Closed mengyuest closed 5 years ago
Do you have ros installed? And if so it seems the ros environment might not be source, e.g. source /opt/ros/<ROS-DISTRO>/setup.bash
where you need to replace <ROS-DISTRO>
with the version of ros you are running.
Thanks for your in-time response. I sourced my ros-kinetic
and catkin make again, but it showed the following error. I am not sure how to let the package find the tensorflow
. In the virtual environment I can import tensorflow in python3, and I also tried to set FORCE_TF_PIP_SEARCH=True
but it still failed. Do you have any suggestions on how to declare the library path or something? Thanks again.
(segmappyenv) meng@meng:~/segmap_ws$ catkin build tensorflow_ros_cpp
---------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/kinetic
Workspace: /home/meng/segmap_ws
---------------------------------------------------------
Source Space: [exists] /home/meng/segmap_ws/src
Log Space: [exists] /home/meng/segmap_ws/logs
Build Space: [exists] /home/meng/segmap_ws/build
Devel Space: [exists] /home/meng/segmap_ws/devel
Install Space: [unused] /home/meng/segmap_ws/install
DESTDIR: [unused] None
---------------------------------------------------------
Devel Space Layout: merged
Install Space Layout: None
---------------------------------------------------------
Additional CMake Args: -DCMAKE_BUILD_TYPE=Release
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
---------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
---------------------------------------------------------
Workspace configuration appears valid.
---------------------------------------------------------
[build] Found '31' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> tensorflow_ros_cpp
_________________________________________________________________________________________________________________________________
Errors << tensorflow_ros_cpp:cmake /home/meng/segmap_ws/logs/tensorflow_ros_cpp/build.cmake.006.log
-- tensorflow_ros_cpp is probing the system
-- - The system uses C++11 ABI, the use of tensorflow from pip is possible, but problematic; consider compiling tensorflow yourself
-- - Not searching for Tensorflow installed by pip since the system uses C++11 ABI. Set FORCE_TF_PIP_SEARCH to force the search.
-- - Trying to find Tensorflow compiled by bazel
CMake Warning at /home/meng/segmap_ws/src/tensorflow_ros_cpp/cmake/detect_tf_bazel.cmake:21 (message):
Bazel-compiled Tensorflow library
/home/meng/segmap_ws/devel/../libtensorflow_cc.so not found.
Call Stack (most recent call first):
CMakeLists.txt:89 (include)
-- - Trying to find Tensorflow from tensorflow_catkin
CMake Warning at /home/meng/segmap_ws/src/tensorflow_ros_cpp/cmake/detect_tf_catkin.cmake:4 (message):
tensorflow_catkin was not found
Call Stack (most recent call first):
CMakeLists.txt:104 (include)
CMake Error at /home/meng/segmap_ws/src/tensorflow_ros_cpp/CMakeLists.txt:115 (message):
Tensorflow was not found
cd /home/meng/segmap_ws/build/tensorflow_ros_cpp; catkin build --get-env tensorflow_ros_cpp | catkin env -si /usr/bin/cmake /home/meng/segmap_ws/src/tensorflow_ros_cpp --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/meng/segmap_ws/devel -DCMAKE_INSTALL_PREFIX=/home/meng/segmap_ws/install -DCMAKE_BUILD_TYPE=Release; cd -
.................................................................................................................................
Failed << tensorflow_ros_cpp:cmake [ Exited with code 1 ]
Failed <<< tensorflow_ros_cpp [ 0.5 seconds ]
[build] Summary: 0 of 1 packages succeeded.
[build] Ignored: 30 packages were skipped or are blacklisted.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 0.6 seconds total.
I am stuck in the
Build tensorflow_ros_cpp
section failing to compile thetensorflow_ros_cpp
. I use Ubuntu16.04 and have successfully compiled tensorflow1.8 from source. The error message showsIs there any extra step shall I do before compiling
tensorflow_ros_cpp
? Thanks for your help~Also I am using virtual env for python3.5 and the result from
pip list
is