> make apk
copy opencc data:
python jni/OpenCC/data/scripts/merge.py jni/OpenCC/data/dictionary/TWPhrases*.txt assets/rime/opencc/TWPhrases.txt
python jni/OpenCC/data/scripts/reverse.py assets/rime/opencc/TWPhrases.txt assets/rime/opencc/TWPhrasesRev.txt
python jni/OpenCC/data/scripts/reverse.py jni/OpenCC/data/dictionary/TWVariants.txt assets/rime/opencc/TWVariantsRev.txt
python jni/OpenCC/data/scripts/reverse.py jni/OpenCC/data/dictionary/HKVariants.txt assets/rime/opencc/HKVariantsRev.txt
ndk-build
make[1]: Entering directory `/Users/hyg/playground/android/trime'
[armeabi-v7a] Compile++ thumb: leveldb <= builder.cc
In file included from jni/leveldb/db/builder.cc:7:
In file included from jni/leveldb/db/filename.h:14:
In file included from jni/leveldb/port/port.h:14:
In file included from jni/leveldb/port/port_posix.h:43:
jni/snappy/snappy.h:45:10: fatal error: 'snappy-stubs-public.h' file not found
#include "snappy-stubs-public.h"
^
1 error generated.
make[1]: *** [obj/local/armeabi-v7a/objs/leveldb/db/builder.o] Error 1
make[1]: Leaving directory `/Users/hyg/playground/android/
没找到下载的地方,尝试自己在 macOS 下编译,报了这个错: