Skip to content

Installation OS X (experimental)

Florian Tschopp edited this page Jun 28, 2019 · 1 revision

Install ROS

Somehow install ROS based on the following script: https://github.com/mikepurvis/ros-install-osx

Create catkin workspace

Take a look at the ubuntu installation guide to create your catkin workspace and pull all the necessary packages for maplab.

Install additional dependencies

  • brew install wget
  • go to thirdparty_submodules, opencv3_catkin and move on towards the fresh master (it should point to version 3.2)

Catkin build

  • Proceed with the installation using catkin build, same as for Ubuntu.

Issues

  • The compilation failed on a problem of pyport.h and osx locale. You might need to edit /usr/include/python2.7/pyport.h (brew Python) and comment out this block (already commented out here):
/*#ifdef _PY_PORT_CTYPE_UTF8_ISSUE
#include <ctype.h>
#include <wctype.h>
#undef isalnum
#define isalnum(c) iswalnum(btowc(c))
#undef isalpha
#define isalpha(c) iswalpha(btowc(c))
#undef islower
#define islower(c) iswlower(btowc(c))
#undef isspace
#define isspace(c) iswspace(btowc(c))
#undef isupper
#define isupper(c) iswupper(btowc(c))
#undef tolower
#define tolower(c) towlower(btowc(c))
#undef toupper
#define toupper(c) towupper(btowc(c))
#endif*/

Clone this wiki locally