ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

configs/nuttx_px4fmu-v2_default

asked 2015-10-31 01:05:24 -0600

zshn25 gravatar image

I followed the tutorials from https://pixhawk.org/dev/ros/sitl and in the end when I did catkin_make, i got the following error. I did not change any files, all I did was follwed that tutorial. Please help!!

CMake Error at Firmware/CMakeLists.txt:158 (include):
  include could not find load file:

    configs/nuttx_px4fmu-v2_default


CMake Error at Firmware/CMakeLists.txt:171 (message):
  configs/nuttx_px4fmu-v2_default must implement px4_os_prebuild_targets


-- Configuring incomplete, errors occurred!
See also "/home/zee/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/zee/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

Additional Details:

My Firmware/CMakeLists.txt file includes these lines in the line 158 and 171

151) # switch to ros CMake file if building ros
152) if (${OS} STREQUAL "ros")
153)    include("cmake/ros-CMakeLists.txt")
154) else()  # otherwise use the rest of this file
155) 
156) list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
157) set(config_module "configs/${CONFIG}")
158) include(${config_module})
159) 
160) # cmake modules
161) include(ExternalProject)
162) 
163) # require px4 module interface
164) set(px4_required_interface
165)    px4_os_prebuild_targets
166)    px4_os_add_flags
167)    )
168) 
169) foreach(cmd ${px4_required_interface})
170)    if(NOT COMMAND ${cmd})
171)    message(FATAL_ERROR "${config_module} must implement ${cmd}")
172)    endif()
173) endforeach()
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2016-02-08 03:45:56 -0600

zshn25 gravatar image

The Issue for this thread https://github.com/PX4/Firmware/issue...

Just download the updated firmware and it works perfectly fine.

edit flag offensive delete link more
1

answered 2015-12-08 08:02:36 -0600

Alexandr Buyval gravatar image

Try to use:

catkin_make --cmake-args -DCONFIG=ros_sitl_simple

instead of 'catkin_make'

edit flag offensive delete link more

Comments

That didn't work!

AloshkaD gravatar image AloshkaD  ( 2016-07-08 23:17:37 -0600 )edit
0

answered 2015-11-08 19:01:29 -0600

postal gravatar image

Hi,

I have the same problem. Did you manage to find the solution?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-10-31 01:05:24 -0600

Seen: 1,616 times

Last updated: Feb 08 '16