Paddle-Lite Ubuntu18.04编译V2.8版本Android库失败

muk1a3rh  于 2021-12-01  发布在  Java
关注(0)|答案(6)|浏览(309)

所有编译环境均按文档要求配置:

gcc、g++、git、make、wget、python、adb
Java environment
cmake
Android NDK

但在编译过程中提示:

-- branch: release/v2.8
-- commit: a0e1460
-- Collected 57 ops
-- Collected 0 X86 kernels
-- Collected 0 CUDA kernels
-- Collected 18 Host kernels
-- Collected 41 ARM kernels
-- Collected 0 OpenCL kernels
-- Collected 0 NPU kernels
-- Collected 0 APU kernels
-- Collected 0 XPU kernels
-- Collected 0 RKNPU kernels
-- Collected 0 FPGA kernels
-- Collected 0 BM kernels
-- Collected 0 MLU kernels
-- Collected 0 HUAWEI_ASCEND_NPU kernels
-- Collected 0 IMAGINATION_NNA kernels
CMake Error at /opt/cmake-3.10/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Java (missing: Java_JAVAH_EXECUTABLE) (found version
"11.0.11")
Call Stack (most recent call first):
/opt/cmake-3.10/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/opt/cmake-3.10/share/cmake-3.10/Modules/FindJava.cmake:271 (find_package_handle_standard_args)
lite/api/android/jni/CMakeLists.txt:6 (find_package)

-- Configuring incomplete, errors occurred!

其中提到的Java环境已配置:
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
但仍提示找不到,请问是何原因导致?

xyhw6mcr

xyhw6mcr1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

6uxekuva

6uxekuva2#

由于Java环境之前已经安装过,但我在编译前还是执行了你们文档上给的命令:apt-get install -y default-jdk
提示如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
default-jdk is already the newest version (2:1.11-68ubuntu1~18.04.1).
请问该如何解决?

vybvopom

vybvopom3#

请问该问题有解决办法吗?望回复,不胜感激!

0x6upsns

0x6upsns4#

请问你们这边到底有没有技术支持在关注issue上这些问题,这个问题我都提了十几天了,连个回复都没有,如果编译这种问题都不能帮忙解决,你们这套部署框架基本是很难推广开的

q9rjltbz

q9rjltbz5#

#2752 参考一下这个issue的解决方案吧

相关问题