Ask Your Question
0

Couldn't find source file src/talker.cpp(Tutorials\WritingPublisherSubscriber(c++))

asked 2011-08-15 15:18:55 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I follow the tutorial--Writing a Simple Publisher and Subscriber (C++),when I run make, the console show error(I've added the ros_workspace to my ROS_PACKAGE_PATH):

mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
[rosbuild] Building package beginner_turorials
[rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
[rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
[rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
[rosbuild] Couldn't find source file src/talker.cpp; assuming that it is in /home/duxiaoshi/ros_workspace/beginner_turorials and will be generated later
-- Configuring done
CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:471 (add_executable):
  Cannot find source file "talker.cpp".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
Call Stack (most recent call first):
  CMakeLists.txt:31 (rosbuild_add_executable)

I've added the ros_workspace to my ROS_PACKAGE_PATH,why src/talker.cpp still couldn't be found?

edit retag flag offensive close merge delete

Comments

Needs more info. Could you post your code somewhere?
Martin Günther gravatar image Martin Günther  ( 2011-08-19 23:12:16 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2011-09-02 10:27:31 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Without posting more information this question cannot be answered, please follow the guidelines here: http://www.ros.org/wiki/Support.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-08-15 15:18:55 -0500

Seen: 1,633 times

Last updated: Sep 02 '11