Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin_make error in dvo_slam on ROS Kinetic #68

Open
karlnirvana opened this issue Jun 20, 2019 · 1 comment
Open

catkin_make error in dvo_slam on ROS Kinetic #68

karlnirvana opened this issue Jun 20, 2019 · 1 comment

Comments

@karlnirvana
Copy link

Hey,guys.I have a problem in catkin_make file dvo_slam on ROS kinetic
karl@karl-PC:~/catkin_ws$ catkin_make
......
[ 33%] Built target _dvo_slam_generate_messages_check_deps_PoseStampedArray
[ 37%] Built target dvo_visualization
[ 40%] Built target kinect2_bridge_nodelet
[ 43%] Built target kinect2_bridge
[ 46%] Built target dvo_slam_generate_messages_py
[ 49%] Built target kinect2_calibration
[ 52%] Built target dvo_slam_generate_messages_eus
[ 53%] Built target dvo_slam_generate_messages_cpp
[ 55%] Built target dvo_slam_generate_messages_nodejs
[ 57%] Built target kinect2_viewer
[ 59%] Built target dvo_slam_generate_messages_lisp
[ 59%] Built target dvo_slam_generate_messages
[ 60%] Linking CXX shared library /home/karl/catkin_ws/devel/lib/libdvo_ros.so
[ 65%] Built target dvo_ros
[ 66%] Linking CXX shared library /home/karl/catkin_ws/devel/lib/libcamera_tracker_nodelet.so
[ 68%] Linking CXX executable /home/karl/catkin_ws/devel/lib/dvo_ros/camera_tracker
[ 69%] Building CXX object dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_tracker.cpp.o
[ 71%] Building CXX object dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_constraint_search.cpp.o
[ 72%] Building CXX object dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_graph.cpp.o
c++: fatal error: no input files
compilation terminated.
/bin/sh: 1: -std=c++11: not found
dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/build.make:62: recipe for target 'dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_tracker.cpp.o' failed
make[2]: *** [dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_tracker.cpp.o] Error 127
make[2]: *** 正在等待未完成的任务....
c++: fatal error: no input files
compilation terminated.
c++: fatal error: no input files
compilation terminated.
/bin/sh: 1: /bin/sh: 1: -std=c++11: not found-std=c++11: not found

dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/build.make:86: recipe for target 'dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_graph.cpp.o' failed
make[2]: *** [dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_graph.cpp.o] Error 127
dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/build.make:110: recipe for target 'dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_constraint_search.cpp.o' failed
make[2]: *** [dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/keyframe_constraint_search.cpp.o] Error 127
[ 75%] Building CXX object dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/camera_keyframe_tracking.cpp.o
[ 75%] Building CXX object dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/config.cpp.o
[ 76%] Building CXX object dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/tracking_result_evaluation.cpp.o
c++: fatal error: no input files
c++: fatal error: no input files
compilation terminated.
compilation terminated.
/bin/sh: 1: /bin/sh: 1: -std=c++11: not found-std=c++11: not found

dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/build.make:134: recipe for target 'dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/camera_keyframe_tracking.cpp.o' failed
make[2]: *** [dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/camera_keyframe_tracking.cpp.o] Error 127
dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/build.make:158: recipe for target 'dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/config.cpp.o' failed
make[2]: *** [dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/config.cpp.o] Error 127
c++: fatal error: no input files
compilation terminated.
/bin/sh: 1: -std=c++11: not found
dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/build.make:182: recipe for target 'dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/tracking_result_evaluation.cpp.o' failed
make[2]: *** [dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/src/tracking_result_evaluation.cpp.o] Error 127
CMakeFiles/Makefile2:4093: recipe for target 'dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/all' failed
make[1]: *** [dvo_slam-kinetic-devel/dvo_slam/CMakeFiles/dvo_slam.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
[ 78%] Built target camera_tracker_nodelet
[ 79%] Built target camera_tracker
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

the CMakeList in dvo_slam have been appended the -std=c++11.

cmake_minimum_required(VERSION 2.8.3)

project(dvo_slam)

LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules")

find_package(catkin REQUIRED COMPONENTS roscpp dynamic_reconfigure dvo_core dvo_ros sensor_msgs image_transport message_filters cv_bridge visualization_msgs interactive_markers message_generation geometry_msgs)
find_package(cmake_modules REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(G2O REQUIRED)
#find_package(sophus REQUIRED)
#find_package(Boost REQUIRED thread)
#find_package(OpenCV REQUIRED)
find_package(TBB REQUIRED)

LIST(APPEND CMAKE_CXX_FLAGS "-std=c++11")

if(G2O_FOUND)
message(STATUS "Found G2O")
else()
message(ERROR "G2O missing")
endif()

dynamic reconfigure

generate_dynamic_reconfigure_options(cfg/GraphVisualizer.cfg cfg/KeyframeSlam.cfg)

messages

add_message_files(
FILES
PoseStampedArray.msg
)
generate_messages(
DEPENDENCIES
geometry_msgs
)

catkin_package(
INCLUDE_DIRS include
LIBRARIES dvo_slam
DEPENDS OpenCV
CATKIN_DEPENDS message_runtime
)

include_directories(
"include"
${dvo_slam_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
${G2O_INCLUDE_DIR}
)

add_library(${PROJECT_NAME}
src/keyframe_tracker.cpp
src/keyframe_graph.cpp
src/keyframe_constraint_search.cpp
src/camera_keyframe_tracking.cpp

src/config.cpp

src/tracking_result_evaluation.cpp
src/local_map.cpp
src/local_tracker.cpp

src/constraints/constraint_proposal.cpp
src/constraints/constraint_proposal_voter.cpp
src/constraints/constraint_proposal_validator.cpp

src/serialization/map_serializer_interface.cpp
src/serialization/map_serializer.cpp

src/visualization/graph_visualizer.cpp

src/types.cpp
)

target_link_libraries(${PROJECT_NAME}
${G2O_CORE_LIBRARY}
${G2O_SOLVER_DENSE}
${G2O_SOLVER_EIGEN}
${G2O_TYPES_SLAM3D}
${catkin_LIBRARIES}
)

add_executable(camera_keyframe_tracker
src/camera_keyframe_tracker_node.cpp
)

target_link_libraries(camera_keyframe_tracker
${PROJECT_NAME}
)

add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencfg)

why this problem always arise?

@zhaozhongch
Copy link

check my answer here https://github.com/tum-vision/dvo_slam/issues/70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants