Coder Social home page Coder Social logo

Comments (7)

hypfvieh avatar hypfvieh commented on August 14, 2024

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.

masato-ka avatar masato-ka commented on August 14, 2024

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.

hypfvieh avatar hypfvieh commented on August 14, 2024

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.

masato-ka avatar masato-ka commented on August 14, 2024

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.

masato-ka avatar masato-ka commented on August 14, 2024

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.

  1. Specified search path
  2. classpath
  3. LD_LIBRARY_PATH

I suggestion that change the priority below to

  1. Specified path
  2. LD_LIBRARY_PATH
  3. classpath

Thank you.

from bluez-dbus.

hypfvieh avatar hypfvieh commented on August 14, 2024

I will take a look at that, when I have some spare time.
Thanks for working this out

from bluez-dbus.

masato-ka avatar masato-ka commented on August 14, 2024

Thanks for your comment.
I close this issue.

Best Regards.

from bluez-dbus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.