baidu / baidu/lac

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

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
4k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/48116707/203680656-4ca093fb-0784-4506-9903-45c4067e3a3d.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the JNI build configuration and the generated Makefile references to /opt/paddle_inference_avx-mkl/paddle/lib/libpaddle_fluid.a, then verify whether that archive exists in the downloaded inference package. The work is done when make install builds liblacjni.so without the missing-target error on the reported Ubuntu 18.04 environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, java, ubuntu
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.