WasmEdge: [wasmedge-java] Failing to build bindings, please help or provide binaries
Description
Current State
Currently, bindings for Go and Rust have been published, but the Java bindings have to be built manually. By the way, the building fails locally on my end:
wasmedge-java $ gradle build
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Task :compileJava
Note: .../wasmedge-java/src/main/java/org/wasmedge/ExternRef.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :compileJNI FAILED
-- wasmedge root:
-- wasmedge include dirs: WasmEdge_INCLUDE_DIRS-NOTFOUND
-- wasmedge lib:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find WasmEdge (missing: WasmEdge_INCLUDE_DIRS WasmEdge_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
FindWasmEdge.cmake:63 (find_package_handle_standard_args)
CMakeLists.txt:10 (find_package)
$HOME/.wasmedge
├── bin
│ ├── show-tflite-tensor
│ ├── wasmedge
│ ├── wasmedge-tensorflow
│ ├── wasmedge-tensorflow-lite
│ └── wasmedgec
├── env
├── include
│ └── wasmedge
│ ├── enum.inc
│ ├── enum_configure.h
│ ├── enum_errcode.h
│ ├── enum_types.h
│ ├── int128.h
│ ├── version.h
│ ├── wasmedge-image.h
│ ├── wasmedge-tensorflow.h
│ ├── wasmedge-tensorflowlite.h
│ └── wasmedge.h
├── lib
│ ├── libtensorflow.so -> /home/direnc/.wasmedge/lib/libtensorflow.so.2.6.0
│ ├── libtensorflow.so.2 -> /home/direnc/.wasmedge/lib/libtensorflow.so.2.6.0
│ ├── libtensorflow.so.2.6 -> /home/direnc/.wasmedge/lib/libtensorflow.so.2.6.0
│ ├── libtensorflow.so.2.6.0
│ ├── libtensorflow_framework.so -> /home/direnc/.wasmedge/lib/libtensorflow_framework.so.2.6.0
│ ├── libtensorflow_framework.so.2 -> /home/direnc/.wasmedge/lib/libtensorflow_framework.so.2.6.0
│ ├── libtensorflow_framework.so.2.6 -> /home/direnc/.wasmedge/lib/libtensorflow_framework.so.2.6.0
│ ├── libtensorflow_framework.so.2.6.0
│ ├── libtensorflowlite_c.so
│ ├── libwasmedge-image_c.so
│ ├── libwasmedge-tensorflow_c.so
│ ├── libwasmedge-tensorflowlite_c.so
│ ├── libwasmedge.so -> libwasmedge.so.0
│ ├── libwasmedge.so.0 -> libwasmedge.so.0.0.1
│ └── libwasmedge.so.0.0.1
└── plugin
└── libwasmedgePluginWasmEdgeProcess.so
Expected
Could you kindly provide the binaries for Java so that users are able to integrate it directly?
Environment
x86_64 Ubuntu 20.04
The following information is optional. Please provide them only if you have built from source.
- C++ Compiler version: gcc 9.4.0
- CMake version: 3.16.3
- CMake flags: (e.g.
-DCMAKE_BUILD_TYPE=Release -DWASMEDGE_BUILD_AOT_RUNTIME=ON) see wasmedge-java - wasmedge: 0.11.2
I have installed wasmedge with install.sh without setting any env vars.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (16 by maintainers)
I’ll come back to this issue next weekend. Have a baby recently, keepes me busy for a while. Sorry for the delay.
@proohit Thanks for your suggestion. I’m working on publishing a ready to use package. It’s delayed. because of the Chinese New Year. I’ll continue working on it once I’m back from holidays.
Thanks, Kenvi
Oh just seeing now that work was started in https://github.com/WasmEdge/WasmEdge/pull/2297 for that. Is there anything I can help with or do you have other priorities right now?