Robotics StackExchange | Archived questions

"Invoking "make cmake_check_build_system" failed" how can i fix it?

Now i try to operatate Robotis Waffle with ROS. But when i do "catkin_make", there are lots of error. the error messages are..

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (findpackage): Could not find a package configuration file provided by "mapserver" with any of the following names:

map_serverConfig.cmake
map_server-config.cmake

Add the installation prefix of "mapserver" to CMAKEPREFIXPATH or set "mapserverDIR" to a directory containing one of the above files. If "mapserver" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): turtlebot3/turtlebot3navigation/CMakeLists.txt:10 (findpackage)

-- Could not find the required component 'mapserver'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (findpackage): Could not find a package configuration file provided by "map_server" with any of the following names:

map_serverConfig.cmake
map_server-config.cmake

Add the installation prefix of "mapserver" to CMAKEPREFIXPATH or set "mapserverDIR" to a directory containing one of the above files. If "mapserver" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): turtlebot3/turtlebot3navigation/CMakeLists.txt:10 (findpackage)

-- Configuring incomplete, errors occurred! See also "/home/jeon/catkinws/build/CMakeFiles/CMakeOutput.log". See also "/home/jeon/catkinws/build/CMakeFiles/CMakeError.log". Makefile:2040: recipe for target 'cmakecheckbuildsystem' failed make: *** [cmakecheckbuildsystem] Error 1 Invoking "make cmakecheckbuild_system" failed

and the Cmakelist which is in 'catkin_ws/src' is

toplevel CMakeLists.txt for a catkin workspace

catkin/cmake/toplevel.cmake

cmakeminimumrequired(VERSION 2.8.3)

set(CATKIN_TOPLEVEL TRUE)

search for catkin within the workspace

set(cmd "catkinfindpkg" "catkin" "${CMAKESOURCEDIR}") executeprocess(COMMAND ${cmd} RESULTVARIABLE res OUTPUTVARIABLE out ERRORVARIABLE err OUTPUTSTRIPTRAILINGWHITESPACE ERRORSTRIPTRAILINGWHITESPACE ) if(NOT _res EQUAL 0 AND NOT _res EQUAL 2) # searching fot catkin resulted in an error string(REPLACE ";" " " _cmdstr "${cmd}") message(FATALERROR "Search for 'catkin' in workspace failed (${cmdstr}): ${_err}") endif()

include catkin from workspace or via find_package()

if(res EQUAL 0) set(catkinEXTRASDIR "${CMAKESOURCEDIR}/${out}/cmake") # include all.cmake without addsubdirectory to let it operate in same scope include(${catkinEXTRASDIR}/all.cmake NOPOLICYSCOPE) addsubdirectory("${_out}")

else() # use either CMAKEPREFIXPATH explicitly passed to CMake as a command line argument # or CMAKEPREFIXPATH from the environment if(NOT DEFINED CMAKEPREFIXPATH) if(NOT "$ENV{CMAKEPREFIXPATH}" STREQUAL "") string(REPLACE ":" ";" CMAKEPREFIXPATH $ENV{CMAKEPREFIXPATH}) endif() endif()

# list of catkin workspaces set(catkinsearchpath "") foreach(path ${CMAKEPREFIXPATH}) if(EXISTS "${path}/.catkin") list(FIND catkinsearchpath ${path} index) if(index EQUAL -1) list(APPEND catkinsearchpath ${path}) endif() endif() endforeach()

# search for catkin in all workspaces set(CATKINTOPLEVELFINDPACKAGE TRUE) findpackage(catkin QUIET NOPOLICYSCOPE PATHS ${catkinsearchpath} NODEFAULTPATH NOCMAKEFINDROOTPATH) unset(CATKINTOPLEVELFIND_PACKAGE)

if(NOT catkinFOUND) message(FATALERROR "findpackage(catkin) failed. catkin was neither found in the workspace nor in the CMAKEPREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.") endif() endif()

catkin_workspace()

how can i solve this problem???

Asked by par8057 on 2017-11-06 05:25:44 UTC

Comments

Firstly edit everything code related with 101010 button. Secondly we don't need to see your top level CMakeLists.tx because everybody has this file on their system. Your message is telling you it can't find ros package called map_server. Do you have this package installed?

Asked by l4ncelot on 2017-11-06 06:30:23 UTC

Post here your package's CMakeLists.txt file instead the top level one.

Asked by l4ncelot on 2017-11-06 06:31:55 UTC

Answers