error when catkin_make
tqlblzj opened this issue · 5 comments
I meet the problem when I catkin_make:
CMake Error at lgsvl_utils/autoware_ai_common/lanelet2_extension/CMakeLists.txt:73 (add_library):
Cannot find source file:
lib/autoware_osm_parser.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error at lgsvl_utils/autoware_ai_common/vector_map/CMakeLists.txt:27 (add_library):
Cannot find source file:
lib/vector_map/vector_map.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error at lgsvl_utils/autoware_ai_planning/lane_planner/CMakeLists.txt:30 (add_library):
Cannot find source file:
lib/lane_planner/lane_planner_vmap.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error at lgsvl_utils/autoware_ai_common/map_file/CMakeLists.txt:64 (add_library):
Cannot find source file:
lib/map_file/get_file.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: CMake can not determine linker language for target: lanelet2_extension_lib
CMake Error: Cannot determine link language for target "lanelet2_extension_lib".
CMake Error: CMake can not determine linker language for target: vector_map
CMake Error: Cannot determine link language for target "vector_map".
CMake Error: CMake can not determine linker language for target: lane_planner
CMake Error: Cannot determine link language for target "lane_planner".
CMake Error: CMake can not determine linker language for target: get_file
CMake Error: Cannot determine link language for target "get_file".
Hi,
It might due to unmet package dependencies such as lanelet2
Have you run the command
rosdep install --from-paths src --ignore-src -r -y
beforehand?
I have the same question. I run the command rosdep install --from-paths src --ignore-src -r -y ,then show
#All required rosdeps installed successfully
Hi,there are some new questions:
make[2]: *** No rule to make target 'lgsvl_utils/autoware_ai_common/map_file/CMakeFiles/get_file.dir/build'. Stop.
CMakeFiles/Makefile2:10634: recipe for target 'lgsvl_utils/autoware_ai_common/map_file/CMakeFiles/get_file.dir/all' failed
make[1]: *** [lgsvl_utils/autoware_ai_common/map_file/CMakeFiles/get_file.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 1%] Built target std_srvs_generate_messages_eus
[ 1%] Built target topic_tools_generate_messages_cpp
[ 1%] Built target std_srvs_generate_messages_lisp
[ 1%] Built target _vector_map_server_generate_messages_check_deps_GetCrossRoad
[ 1%] Built target _vector_map_server_generate_messages_check_deps_GetGuardRail
[ 1%] Built target _vector_map_server_generate_messages_check_deps_GetRoadEdge
[ 1%] Built target _vector_map_server_generate_messages_check_deps_GetDriveOnPortion
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
I have same quesetion, have anyone solve it?
Hi,
I have the same problem encountered. I use ubuntu 20.04 distro noetic. This is the error when i catkin_make after run this command rosdep install --from-paths src --ignore-src -r -y .
CMake Error at lgsvl_utils/autoware_ai_common/lanelet2_extension/CMakeLists.txt:73 (add_library):
Cannot find source file:
lib/autoware_osm_parser.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at lgsvl_utils/autoware_ai_common/vector_map/CMakeLists.txt:27 (add_library):
Cannot find source file:
lib/vector_map/vector_map.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at lgsvl_utils/autoware_ai_planning/lane_planner/CMakeLists.txt:30 (add_library):
Cannot find source file:
lib/lane_planner/lane_planner_vmap.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at lgsvl_utils/autoware_ai_common/map_file/CMakeLists.txt:64 (add_library):
Cannot find source file:
lib/map_file/get_file.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at lgsvl_utils/autoware_ai_common/lanelet2_extension/CMakeLists.txt:73 (add_library):
No SOURCES given to target: lanelet2_extension_lib
CMake Error at lgsvl_utils/autoware_ai_common/vector_map/CMakeLists.txt:27 (add_library):
No SOURCES given to target: vector_map
CMake Error at lgsvl_utils/autoware_ai_planning/lane_planner/CMakeLists.txt:30 (add_library):
No SOURCES given to target: lane_planner
CMake Error at lgsvl_utils/autoware_ai_common/map_file/CMakeLists.txt:64 (add_library):
No SOURCES given to target: get_file
CMake Generate step failed. Build files cannot be regenerated correctly.
make: *** [Makefile:1664: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed