Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aliakseis/bb3d5b5e32604ee88418475b4c13c537 to your computer and use it in GitHub Desktop.

Select an option

Save aliakseis/bb3d5b5e32604ee88418475b4c13c537 to your computer and use it in GitHub Desktop.
ROS changes to build on Windows
Edit: C:\opt\ros\noetic\x64\share\catkin\cmake\all.cmake
test/catkin_download_test_data
# test/gtest
test/nosetests
Edit: C:\opt\ros\noetic\x64\share\ros\core\rosbuild\private.cmake
- check_same_directories.py => check_same_directories
- added string(REPLACE "\\" "/" _pyl "${_pyl}")
- _rosbuild_cmakelist_to_pylist calls modified
macro(_rosbuild_cmakelist_to_pylist _cmakelist _pylist)
# Convert a CMake list into a Python list
set(_pyl "[")
foreach(_f ${_cmakelist})
set(_pyl "${_pyl} '${_f}',")
endforeach(_f)
set(_pyl "${_pyl}]")
string(REPLACE "\\" "/" _pyl "${_pyl}")
set(${_pylist} "${_pyl}")
endmacro(_rosbuild_cmakelist_to_pylist _cmakelist _pylist)
macro(_rosbuild_compare_manifests var _t _c _m)
if("${_t}" STREQUAL "")
# No time was given, so it's too old
set(${var} 1)
else("${_t}" STREQUAL "")
#_rosbuild_cmakelist_to_pylist("${_m}" _pylist)
#_rosbuild_cmakelist_to_pylist("${_c}" _cached_pylist)
_rosbuild_cmakelist_to_pylist(_m _pylist)
_rosbuild_cmakelist_to_pylist(_c _cached_pylist)
Edit: C:\opt\ros\noetic\x64\share\ros\core\rosbuild\public.cmake
test_results_dir.py => test_results_dir
Edit: C:\opt\ros\noetic\x64\share\ros\core\rosbuild\rosconfig.cmake
if(NOT DEFINED ROS_COMPILE_FLAGS)
#set(ROS_COMPILE_FLAGS "-W -Wall -Wno-unused-parameter -fno-strict-aliasing")
set(ROS_COMPILE_FLAGS "-Wall -fno-strict-aliasing")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment