Having gone through the ordeal of figuring out how to compile FreeSWITCH for a Raspberry Pi 4 (FreeSWITCH only has prebuilt images for earlier iterations of the Raspberry Pi), I'm jotting down the steps I took in the hopes that it might lessen someone else's suffering. Note, however, that such things will almost inevitably change 5 seconds after I write this.

Downloaded a tested Debian image (2020.11.12) for a Raspberry Pi 4 and wrote it to a SD card.

Booted the Raspberry Pi 4 from said SD card.

Installed these packages: git build-essential cmake autoconf automake libtool libtool-bin pkg-config libtiff-dev libssl-dev libsqlite3-dev libcurl4-openssl-dev libspeexdsp-dev libldns-dev libedit-dev libavformat-dev libswscale-dev libpq-dev uuid-dev libsndfile-dev

Did a git clone and build of the following: spandsp, sofia-sip, libks, signalwire

Downloaded code and build of the following: pcre, lua (IMPORTANT: -fPIC *MUST* be added to CFLAGS), opus

Finally, did a git clone and build of FreeSWITCH with "./configure --disable-libvpx"

.

back to main page contact