osfans / trime

同文安卓輸入法平臺3.x/Android-rime/Rime Input Method Engine for Android
http://osfans.github.io/trime/
GNU General Public License v3.0
3.09k stars 372 forks source link

librime_jni.so 与 librime.so 在哪里可以下载 #144

Closed huangyg11 closed 7 years ago

huangyg11 commented 7 years ago

没找到下载的地方,尝试自己在 macOS 下编译,报了这个错:

> 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/
osfans commented 7 years ago

可能要先config一下才能生成。或者cmake可能也可以生成。

huangyg11 commented 7 years ago

可以具体一些吗,在哪个目录下执行什么命令。因为第一次接触这些东西,谢谢!

huangyg11 commented 7 years ago

好像可以了,在jni/snappy目录下 ./autogen.sh 再运行 ./configure

huangyg11 commented 7 years ago

成功安装了,可以close了