I know there are a lot of similar questions on the internet but I tried everything. But nothing works Idk what I am doing wrong.
The CMAKE_C_COMPILER:
/usr/local/bin/cc
is not a full path to an existing compiler tool.
I can find gcc, g++ files under usr/bin but in the error, it searches for the compiler on usr/local/bin.
set(CATKIN_TOPLEVEL TRUE)
set(CMAKE_C_COMPILER "/usr/bin/cc")
Even I changed the path in my CMake list for the compiler. Still no luck and by the way I am using ros1 and ubuntu. and I facing this error when I am trying to catkin_make my workspace.