compile freeswitch based on macOS

来源:互联网 发布:英伟达优化软件 编辑:程序博客网 时间:2024/06/05 22:52

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