Comments (7)
Bluez-dbus requires libmatthew, which you have to install using apt.
The library itself will work on raspberry. I use it myself.
from bluez-dbus.
Thank you for your response.
I already installed libmatthew-io-java with below command.
$sudo apt-get install libmatthew-io-java
result is below
pi@raspberrypi:~ $ dpkg -L libmatthew-io-java
/.
/usr
/usr/share
/usr/share/java
/usr/share/java/io-0.1.jar
/usr/share/doc
/usr/share/doc/libmatthew-io-java
/usr/share/doc/libmatthew-io-java/copyright
/usr/share/doc/libmatthew-io-java/changelog.Debian.gz
/usr/share/doc/libmatthew-io-java/changelog.gz
/usr/share/java/io.jar
However I can not find libunix-java.so in my raspbian.
I will check the library is installing completely again.
Thank you.
from bluez-dbus.
I think libmatthew-io-java is not the correct library.
Afaik there are multiple libraries which are part of the libmatthew stuff.
If I remember correctly the package is called libmatthew-java (or maybe libunixsocket-java).
Sorry, I cannot look on my raspberry atm... :(
from bluez-dbus.
I installed libunixsocket-java. but result is not change.
And i change JDK to oracle-idk from open-idk, but same it...
but I get another error message.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0xac624e18, pid=2137, tid=3057173600
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode linux-arm )
# Problematic frame:
# C [libunix-java.so+0xe18]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/pi/bluez-dbus-sample/hs_err_pid2137.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
This error is not unsatisfied library exception. I guess your library load own libunix-java.so that in matthew.jar(https://github.com/hypfvieh/libmatthew).
May be The library is not running on raspberry pi zero w. Because fatal error is SIGILL at libunix-java.so
OK, I will try to running libunix-java on raspberry Pi zero w.
If you have any information please tell me.
Thank you.
from bluez-dbus.
Good news
I copy libunix-java.so to [execution-path]/lib and it work.
When library load from system, It seems to be not loading from LD_LIBRARY_PATH or PATH. At line 113 in NativeLibraryLoad::findProperNativeLib, _trySystemLibToo is always false this time. And , matthew.jar have library then the library is always read from the resource folder in matthew.jar.
Now library load priority.
- Specified search path
- classpath
- LD_LIBRARY_PATH
I suggestion that change the priority below to
- Specified path
- LD_LIBRARY_PATH
- classpath
Thank you.
from bluez-dbus.
I will take a look at that, when I have some spare time.
Thanks for working this out
from bluez-dbus.
Thanks for your comment.
I close this issue.
Best Regards.
from bluez-dbus.
Related Issues (20)
- How to pair a new device (phone) using bluez-dbus HOT 2
- New minor release with recent fixes HOT 1
- how to response to ATT `Handle Value Notification` HOT 1
- Possible Map marshalling/de-marshalling issue HOT 1
- Scan Response (Question) HOT 2
- GATTService address wrong ? HOT 3
- "could not load FFI provider jnr.ffi.provider.jffi.Provider" when using module-info.java HOT 1
- Ability to remove property and signal handlers from the com.github.hypfvieh.bluetooth.DeviceManager HOT 2
- Can I write a descriptor to enable notification? HOT 2
- bluez-dbus license HOT 1
- Question Mesh API support HOT 4
- File descriptors in method returns HOT 3
- Create A BLE Server HOT 1
- bluez-dbus with dbus-java 3.3.2 HOT 2
- How to use this library for Bluetooth intermediate communication HOT 22
- How to set bluetooth mtu HOT 3
- Unable to get Metadata PropertiesChanged of org.mpris.MediaPlayer2.Player HOT 4
- get RSSI fail HOT 2
- Bluetooth scanning can scan for devices that are turned off HOT 4
- Method "Disconnect" on interface "org.bluez.Device1" doesn't exist HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluez-dbus.