Building Osmocom under Mac OS X

I ran into some trouble when I tried to build osmocom under Mac OS X. This is how I made it work. Thanks to the guys at #osmocom.

First: Make sure the complete build environment comes from within one source. For example from MacPorts. You will need following packages:

  • arm-elf-binutils
  • arm-elf-gcc
  • automake
  • autoconf

Second: Make sure your $PATH variable includes the executable of your build environment. For MacPorts this is usually /opt/local/bin. The path for MacPorts executables should be before the path of the native Mac OS X executables to make sure MacPorts executables are used:
mort:osmocon martin$ echo $PATH

Thats it. You now should be ready to compile your osmocom.