Coder Social home page Coder Social logo

Comments (11)

cjaentsch avatar cjaentsch commented on July 20, 2024 1

It's a Raspberry Pi 3 Model B Plus Rev1.3 (copied from raspi-config)

This model actually should work with arm64, correct? But os.arch only says "arm". We'll I'll try to force arm64 then and see if it works. Today I'm not in the office but I will report tomorrow.

from fiskaly-kassensichv-sma.

pgaubatz avatar pgaubatz commented on July 20, 2024 1

It's a Raspberry Pi 3 Model B Plus Rev1.3

Oh... then you should probably try loading the arm64 variant...

from fiskaly-kassensichv-sma.

cjaentsch avatar cjaentsch commented on July 20, 2024 1

It's a Raspberry Pi 3 Model B Plus Rev1.3

Oh... then you should probably try loading the arm64 variant...

As said in the "edit" of my comment, I'll try that tomorrow and report back.

from fiskaly-kassensichv-sma.

cjaentsch avatar cjaentsch commented on July 20, 2024 1

Hi, sorry for the delayed answer. Please try com.fiskaly.kassensichv.sma-linux-armhf.so (added in 340bfed).

Thumbs up! This works!

from fiskaly-kassensichv-sma.

pgaubatz avatar pgaubatz commented on July 20, 2024

We've just added an experimental build for linux ARM/ARM64 in #2.
Maybe you could give it a try?

from fiskaly-kassensichv-sma.

cjaentsch avatar cjaentsch commented on July 20, 2024

Unfortunately it does not work...

I get an Error:

java.lang.UnsatisfiedLinkError: /tmp/com.fiskaly.kassensichv.sma-linux-arm.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
at jnr.ffi.provider.jffi.NativeLibrary.loadNativeLibraries(NativeLibrary.java:87)
at jnr.ffi.provider.jffi.NativeLibrary.getNativeLibraries(NativeLibrary.java:70)
at jnr.ffi.provider.jffi.NativeLibrary.getSymbolAddress(NativeLibrary.java:49)
at jnr.ffi.provider.jffi.NativeLibrary.findSymbolAddress(NativeLibrary.java:59)
at jnr.ffi.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:158)
at jnr.ffi.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:89)
at jnr.ffi.provider.jffi.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:44)
at jnr.ffi.LibraryLoader.load(LibraryLoader.java:325)
at jnr.ffi.LibraryLoader.load(LibraryLoader.java:304)
at com.fiskaly.kassensichv.sma.SmaLoader.load(SmaLoader.java:110)
at com.fiskaly.kassensichv.sma.GeneralSMA.(GeneralSMA.java:11)

The file is there (and I also added all rights to exclude any problems concering rights)...

pi@gn_server:/tmp $ ls -la
insgesamt 14180
drwxrwxrwt 12 root root 4096 Sep 16 17:48 .
drwxr-xr-x 21 root root 4096 Nov 12 2018 ..
-rwxrwxrwx 1 pi pi 7185348 Sep 16 17:29 com.fiskaly.kassensichv.sma-linux-arm.so

Environment (Raspberry Pi):
os.name: Linux
os.version: 4.14.70-v7+
os.arch: arm
java.runtime.name: Java(TM) SE Runtime Environment
java.runtime.version: 1.8.0_65-b17

from fiskaly-kassensichv-sma.

pgaubatz avatar pgaubatz commented on July 20, 2024

Hi, is this a raspberry pi 1, or 2+?

from fiskaly-kassensichv-sma.

pgaubatz avatar pgaubatz commented on July 20, 2024

Hi again! Could you test it again with the com.fiskaly.kassensichv.sma-linux-armel.so library? You'd have to manually adapt the source code of the client library loader to use the armel suffix until we've added a hard-float/soft-float detection mechanism in the client libraries (something like https://github.com/java-native-access/jna/blob/cc1acdac02e4d0dda93ba01bbe3a3435b8933dab/src/com/sun/jna/Platform.java#L262)...

from fiskaly-kassensichv-sma.

cjaentsch avatar cjaentsch commented on July 20, 2024

So, when using the "armel.so" I still get
java.lang.UnsatisfiedLinkError: /tmp/com.fiskaly.kassensichv.sma-linux-arm.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

When using the "arm64.so" I get
java.lang.UnsatisfiedLinkError: /tmp/com.fiskaly.kassensichv.sma-linux-arm.so: falsche ELF-Klasse: ELFCLASS64

FYI: uname -a returns the following
Linux gn_server 4.14.70-v7+ #1144 SMP Tue Sep 18 17:34:46 BST 2018 armv7l GNU/Linux

from fiskaly-kassensichv-sma.

cjaentsch avatar cjaentsch commented on July 20, 2024

I just wanted to ask if I can provide any more information concerning the Pi ARM issue... I did some research and it says that the armv7l uses "armhf".

from fiskaly-kassensichv-sma.

pgaubatz avatar pgaubatz commented on July 20, 2024

Hi, sorry for the delayed answer. Please try com.fiskaly.kassensichv.sma-linux-armhf.so (added in 340bfed).

from fiskaly-kassensichv-sma.

Related Issues (3)

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.