Modified for headless plugin build for Elk Audio OS
-
Set up the cross-compilation toolchain with:
$ unset LD_LIBRARY_PATH $ source /path/to/environment-setup-cortexa7t2hf-neon-vfpv4-elk-linux-gnueabi
-
(optional) Add flags for more aggressive optimizations than the default ones from the toolchain with:
# for raspberry pi 3 $ export CXXFLAGS="-O3 -pipe -ffast-math -feliminate-unused-debug-types -funroll-loops -mvectorize-with-neon-quad" # for raspberry pi 4 $ export CXXFLAGS="-O3 -pipe -ffast-math -feliminate-unused-debug-types -funroll-loops"
-
Add the vstsdk as described in plugins/LinuxVST/README.md
-
Set up the makefile:
$ cd plugins/LinuxVST $ rm -rf build $ mkdir build && cd build $ cmake .. && ccmake ..
set the flag
COMPILE_FOR_ELK_PI
toON
. -
Finally cross compile the plugins using:
$ make
- Make sure that you update the submodules before trying to build.
- For further compilation help. Look at our documentation.