Although the file addd_two_ints_client.cpp is present in /src/ ,I'm getting this error. Please help me out. I'm stuck here [closed]

asked 2016-01-30 08:51:21 -0600

kvmanohar22 gravatar image

updated 2016-01-30 09:50:47 -0600

 kv@kv:~/catkin_ws$ catkin_make
Base path: /home/kv/catkin_ws
Source space: /home/kv/catkin_ws/src
Build space: /home/kv/catkin_ws/build
Devel space: /home/kv/catkin_ws/devel
Install space: /home/kv/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/kv/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/kv/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/kv/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/kv/catkin_ws/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/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/kv/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.16
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
-- beginner_tutorials: 1 messages, 1 services
-- Configuring done
CMake Error at beginner_tutorials/CMakeLists.txt:211 (add_executable):
  Cannot find source file:

    src/add_two_ints_client.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hppkv@kv:~/catkin_ws$ catkin_make
Base path: /home/kv/catkin_ws
Source space: /home/kv/catkin_ws/src
Build space: /home/kv/catkin_ws/build
Devel space: /home/kv/catkin_ws/devel
Install space: /home/kv/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/kv/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/kv/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/kv/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/kv/catkin_ws/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/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/kv/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.16
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
-- beginner_tutorials: 1 messages, 1 services
-- Configuring done
CMake Error at beginner_tutorials/CMakeLists.txt:211 (add_executable):
  Cannot find source file:

    src/add_two_ints_client.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /home/kv/catkin_ws/build
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

  .hxx .in .txx


-- Build files have been written to: /home/kv/catkin_ws/build
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed



/* src is present in the following path */
~catkin_ws/src
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2016-01-30 10:34:18.284867

Comments

It would help to have more information. Where is src located relative to ~/catkin_ws/? Is the file in ~/catkin_ws/src/beginner_tutorials/src/? Also, use the preformatted button for terminal output, looks like 101010. If you add extra info put it as an edit to original question, not as answer

Thomas D gravatar imageThomas D ( 2016-01-30 09:44:06 -0600 )edit

This is a duplicate of invoking catkin_make failed.

gvdhoorn gravatar imagegvdhoorn ( 2016-01-30 10:31:32 -0600 )edit

@kvmanohar22: why did you post this question yet another time? You already had two open questions about the same thing.

gvdhoorn gravatar imagegvdhoorn ( 2016-01-30 10:34:03 -0600 )edit