baidu / baidu/lac

LAC的Java版本依赖的Paddle的预测库最高版本是多少?用最高v2.1.2版本编译的结果有问题。

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

Description

LAC的Java版本依赖的Paddle的预测库最高版本是多少?使用最高的v2.1.2版本编译出现问题。
git clone https://github.com/PaddlePaddle/Paddle.git
cd Paddle
git checkout v2.1.2

PADDLE_ROOT=/path/of/paddle

# 编译运行
cmake -DFLUID_INFERENCE_INSTALL_DIR=$PADDLE_ROOT \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_PYTHON=OFF \
-DWITH_MKL=OFF \
-DWITH_GPU=OFF \
-DON_INFER=ON \
../

make
make inference_lib_dist

编译之后,PADDLE_ROOT目录无法自动生成,在build文件里面有多个文件夹
![image](https://user-images.githubusercontent.com/7709440/130430123-c94a1d06-b29a-4bbe-9867-fd6d1b706fbc.png)
使用paddle_inference_install_dir 作为 jni编译的PADDLE_ROOT,会报如下错误:
![image](https://user-images.githubusercontent.com/7709440/130431024-fc3f39e2-f51d-4f5e-b135-5249f139c93e.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported build with Paddle v2.1.2 using the shown CMake options, then inspect the generated build directories and the paddle_inference_install_dir used as PADDLE_ROOT for JNI compilation. Compare the resulting error with the LAC Java build requirements; done means identifying the highest compatible Paddle inference version and confirming a successful JNI build.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, java
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.