aldenml / libtorrent4j

libtorrent for java, a swig Java interface for libtorrent
http://libtorrent4j.org
Other
204 stars 31 forks source link

Support for Raspberry Pi #245

Open garwedgess opened 1 year ago

garwedgess commented 1 year ago

Hi,

Just wondering if there are any arm builds for a raspberry pi, the architecture is armv7l

Thanks

aldenml commented 1 year ago

Hi @garwedgess , there is none, but I can work on one, no ETA. Are you waiting for it?

garwedgess commented 1 year ago

Hey @aldenml, thanks for the response. I am but I can keep going without it for now. I don't expect it ASAP. I'm happy to wait because that would mean that I wouldn't have to scrap my project. So if you can work on it when you have some time it would be much appreciated.

aldenml commented 1 year ago

Hi @garwedgess, latest version maven artifact contains the binary for linux arm. Feel free to try it and report back if any problem. I'm closing this for now.

garwedgess commented 1 year ago

Hey @aldenml , thanks for the build. I have tried it today but unfortunately, it still isn't working.

This is the output when running my application. Caused by: java.lang.UnsatisfiedLinkError: /libs/libtorrent4j.so: /libs/libtorrent4j.so: cannot open shared object file: No such file or directory

Just to be sure that it wasn't something to do with the library path that I have set, I tried the linux x86_64 library which seems to have been picked up since I got the following error:

Caused by: java.lang.UnsatisfiedLinkError: /libs/libtorrent4j.so: /libs/libtorrent4j.so: wrong ELF class: ELFCLASS64 (Possible cause: can't load AMD 64 .so on a ARM platform)

Strangely enough, when I run ldd libtorrent4j.so I get not a dynamic executable

Thanks, I appreciate the effort.

aldenml commented 1 year ago

Opening this to continue research