I'm not able to build my package using catkin_build after I create the package?

asked 2019-11-12 05:48:20 -0500

farhan13 gravatar image

updated 2019-11-12 06:29:28 -0500

gvdhoorn gravatar image

And since the package is not building, I'm not able to run any of the nodes I've written. Please bear with me, I'm new to ROS and I'm using Kinetic. The following error is displayed:

Base path: /home/farhan/catkin_ws
Source space: /home/farhan/catkin_ws/src
Build space: /home/farhan/catkin_ws/build
Devel space: /home/farhan/catkin_ws/devel
Install space: /home/farhan/catkin_ws/install
#### Running command: "make cmake_check_build_system" in "/home/farhan/catkin_ws/build"
-- Using CATKIN_DEVEL_PREFIX: /home/farhan/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/farhan/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/googletest': gmock will be built
CMake Error at /usr/src/googletest/googlemock/CMakeLists.txt:51 (add_subdirectory):
  add_subdirectory given source "../gtest" which is not an existing

CMake Error at /usr/src/googletest/googlemock/CMakeLists.txt:56 (config_compiler_and_linker):
  Unknown CMake command "config_compiler_and_linker".

-- Configuring incomplete, errors occurred!
See also "/home/farhan/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/farhan/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
edit retag flag offensive close merge delete