# [ROS Warning] Unable to locate package velodyne_test build file

I recently reinstalled ROS-Melodic on my Ubuntu 18.04. I am using Qt5 with the ROS plugins I downloaded from here.

I was trying out a sample project from here as I will have to practice using a Velodyne Puck 16 and thought that this could be a good training. The project is successfully parsed but when I compile it I receive the following output:

[ROS Warning] Unable to locate package velodyne_test build file: /home/emanuele/catkin_ws/build/velodyne_test/velodyne_test.cbp.
[ROS Debug] Sourced workspace: /home/emanuele/catkin_ws/devel/setup.bash.
[ROS Debug] Sourced workspace: /home/emanuele/catkin_ws/devel/setup.bash.
[ROS Debug] Sourced workspace: /home/emanuele/catkin_ws/devel/setup.bash.


The output of roscd is the following:

emanuele@pc:/opt/ros/melodic$ Thank you very much for pointing in the right direction. edit retag close merge delete ## 1 Answer Sort by » oldest newest most voted Did you source /opt/ros/melodic/setup.bash? more ## Comments Yes, but I remember that before reinstalling it and running roscd the result was I believe /home/emanuele/catkin_ws/devel. Is it because I sourced it differently? How can I make the compiler find it then? Do I have to reinstall ROS again? ( 2019-12-16 12:26:01 -0600 )edit You have to source that for every terminal you use in every session ( 2019-12-16 12:38:36 -0600 )edit As of now what I do is: emanuele@pc:~/catkin_ws$ catkin_make and it works and compile correctly on terminal. But when I try to build in Qt5 it gives me the messages I posted on the question. I am not sure of what I should do to have Qt5 compiling and building it.

( 2019-12-17 06:13:11 -0600 )edit

I mean if I try to do this emanuele@pc:/opt/ros/melodic\$ catkin_make the terminal says:

Base path: /opt/ros/melodic

The specified source space "/opt/ros/melodic/src" does not exist

( 2019-12-17 06:57:41 -0600 )edit

try opening .bashrc by gedit ~/.bashrc then add the below line at the bottom of the file opened source "/home/emanuele/catkin_ws/devel/setup.bash" then compile from catkin_ws

( 2019-12-19 09:41:00 -0600 )edit

@Abhishekpg111, thank you for your comment. It partially worked! Now it compiles via terminal but I still Qt is not compiling. The problem that is left is that Qt it seems can't find the executable. Where can I find it? Is this and this useful to better understand?

( 2019-12-19 09:58:41 -0600 )edit

Could the executable be inside the devel folder? Here is a print-screen if that could be helpful

( 2019-12-19 10:05:47 -0600 )edit

is your velodyne_simulator package under catkin_ws/src folder ??

( 2019-12-19 10:35:26 -0600 )edit