baidu / lac

百度NLP:分词,词性标注,命名实体识别,词重要性

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu18.04上LAC的Java调用方式make失败

keido0514 opened this issue · comments

commented
  1. OS环境:Ubuntu18.04的VMware虚拟机,Python-3.10、GCC-8.2、cmake-3.25
  2. Paddle的预测库下载的是paddle_inference-manylinux_cpu_avx_mkl_gcc8.2.tgz
  3. Java是openjdk1.8
  4. 编译JNI,执行make install后出现错误:
    make[2]: *** No rule to make target '/opt/paddle_inference_avx-mkl/paddle/lib/libpaddle_fluid.a', needed by 'liblacjni.so'. Stop.
    CMakeFiles/Makefile2:110: recipe for target 'CMakeFiles/lacjni.dir/all' failed
    make[1]: *** [CMakeFiles/lacjni.dir/all] Error 2
    Makefile:135: recipe for target 'all' failed
    make: *** [all] Error 2
    截图如下:

lacjni