- Source code of this repository
- CMake
- C & CPP Compiler
- Little knowledge of C & CPP
- A search engine if compilation failed
cd native
mkdir cmake-build
cd cmake-build
cmake -DCMAKE_BUILD_TYPE=Release "-DCMAKE_CACHEFILE_DIR=$PWD" ..
cmake --build . --target silk_codec -- -j 3
- Create a folder (Here named it
/root/silk-native
) - Move native lib to
/root/silk-native/silk.so
- Edit java bootstrap command. Add
-Dsilk-codec.data-path=/root/silk-native
- Type
vim /root/silk-native/settings.properties
- Type following content into it
native.path=/root/silk-native/silk.so
Remember rebuild native when updating silk-codec
Version mismatch may crash java runtime