Ubuntu18.04上LAC的Java调用方式make失败
- 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
截图如下:

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