I am getting the following error. It is preventing me from compiling my file.
----------------------------------------------------------------------------------
Profile: default
Extending: [cached] /home/simulations/public_sim_ws/devel:/opt/ros/noetic
Workspace: /home/user/catkin_ws
----------------------------------------------------------------------------------
Build Space: [exists] /home/user/catkin_ws/build
Devel Space: [exists] /home/user/catkin_ws/devel
Install Space: [unused] /home/user/catkin_ws/install
Log Space: [exists] /home/user/catkin_ws/logs
Source Space: [exists] /home/user/catkin_ws/src
DESTDIR: [unused] None
----------------------------------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
----------------------------------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
----------------------------------------------------------------------------------Whitelisted Packages: None
Blacklisted Packages: None
----------------------------------------------------------------------------------
Workspace configuration appears valid.
----------------------------------------------------------------------------------
[build] Found '1' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> my_package
_____________________________________________________________________________________________________________________________________________________________
Errors << my_package:cmake /home/user/catkin_ws/logs/my_package/build.cmake.003.log
CMake Error at /home/user/catkin_ws/src/my_package/CMakeLists.txt:150 (add_executable):
Cannot find source file:
src/simple.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at /home/user/catkin_ws/src/my_package/CMakeLists.txt:150 (add_executable):
No SOURCES given to target: simple
CMake Generate step failed. Build files cannot be regenerated correctly.
cd /home/user/catkin_ws/build/my_package; catkin build --get-env my_package | catkin env -si /usr/bin/cmake /home/user/catkin_ws/src/my_package --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/user/catkin_ws/devel/.private/my_package -DCMAKE_INSTALL_PREFIX=/home/user/catkin_ws/install; cd -
.............................................................................................................................................................
Failed << my_package:cmake [ Exited with code 1 ]
Failed <<< my_package [ 1.3 seconds ]
[build] Summary: 0 of 1 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 1.3 seconds total.
I think it has something to do with this problem:
Apparently I cant find the ros.h
file for some reason. Or am I missing something here?