basic environment: macOS 10.1.3.1 + freeswitch 1.9.x
now let's begin fs compiling & make procedure step by step
1. a reference link page you must take a look at:
https://freeswitch.org/confluence/display/FREESWITCH/macOS+Manual+Installation#macOSManualInstallation-InstallPackageManagerandPrerequisites
you should do strictly according to above wiki and if lucky enough, you can leave this blog, but occasionally, more or less troubles will occurs and you have to read this page through:
2. error 1 as below:
.
2.1
as the error log shown, compiler failed to find crypto.h, we need to add it's including path to below file:
/usr/local/src/freeswitch/build/modmake.rules
the modified part of the file shown below:
most likely, you can get through the compile procedure, see the successful log at the end.
tips: if you have errors when trying to compile your own fs project, you can try 'git clean -fdx' which may bring some help

本文档详细介绍了在macOS环境下从源码编译FreeSWITCH的过程,并解决常见错误,如未能找到crypto.h等问题。
2258





