catkin_make doesn't work in conda environment with python2.7

asked 2019-03-01 05:14:46 -0500

BIGJUN gravatar image

Hello, guys. These days, I used canda to set up a virtual environment with python2.7. However, I couldn't use catkin_make in the Ros workspace. I had try pip install rosinstall, but it didn't work. Ubuntu16.04 with Ros Kinetic installed in my PC.The error is following:

(py2.7) birl@birl-Precision-7530:$ catkin_make
Base path: /home/birl/ros_ws
Source space: /home/birl/ros_ws/src
Build space: /home/birl/ros_ws/build
Devel space: /home/birl/ros_ws/devel
Install space: /home/birl/ros_ws/install
Running command: "cmake /home/birl/ros_ws/src -DCATKIN_DEVEL_PREFIX=/home/birl/ros_ws/devel - 
DCMAKE_INSTALL_PREFIX=/home/birl/ros_ws/install -G Unix Makefiles" in "/home/birl/ros_ws/build"
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /home/birl/anaconda2/envs/py2.7/bin/x86_64-conda_cos6-linux-gnu-cc
-- Check for working C compiler: /home/birl/anaconda2/envs/py2.7/bin/x86_64-conda_cos6-linux-gnu-cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/birl/anaconda2/envs/py2.7/bin/x86_64-conda_cos6-linux-gnu-c++
-- Check for working CXX compiler: /home/birl/anaconda2/envs/py2.7/bin/x86_64-conda_cos6-linux-gnu-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/birl/ros_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Found PythonInterp: /home/birl/anaconda2/envs/py2.7/bin/python (found version "2.7.15") 
-- Using PYTHON_EXECUTABLE: /home/birl/anaconda2/envs/py2.7/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/birl/ros_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7 
CMake Error at /opt/ros/kinetic/share/catkin/cmake/assert.cmake:17 (message):
 Assertion failed: check for file existence, but filename
       (RT_LIBRARY-NOTFOUND) unset.  Message: RT Library
  Call Stack (most recent call first):
       /opt/ros/kinetic/share/catkin/cmake/tools/rt.cmake:42 (assert_file_exists)
      /opt/ros/kinetic/share/catkin/cmake/all.cmake:159 (include)
     /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:52 (find_package)
    -- Configuring incomplete, errors occurred!
 See also "/home/birl/ros_ws/build/CMakeFiles/CMakeOutput.log". 
 See also "/home/birl/ros_ws/build/CMakeFiles/CMakeError.log".
 Invoking "cmake" failed
edit retag flag offensive close merge delete