Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with ARM on Windows #24

Open
Anthony2be opened this issue Jul 11, 2024 · 6 comments
Open

Compatibility with ARM on Windows #24

Anthony2be opened this issue Jul 11, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Anthony2be
Copy link

When trying to run the file it gives this error

PS C:\Users\adubo\Downloads> java -jar open-ds-v0.2.4.jar
Exception in thread "main" com.boomaa.opends.util.NativeSystemError: Unsupported architecture aarch64
        at com.boomaa.opends.util.Architecture.getCurrent(Architecture.java:22)
        at com.boomaa.opends.util.Libraries.init(Libraries.java:18)
        at com.boomaa.opends.display.DisplayEndpoint.main(DisplayEndpoint.java:64)
@Boomaa23 Boomaa23 self-assigned this Jul 11, 2024
@Boomaa23 Boomaa23 added the bug Something isn't working label Jul 11, 2024
@Boomaa23
Copy link
Owner

There's a small bug that broke aarch64 support with v0.2.4. Using the latest commit in the master branch should resolve this issue. Here's the commit that fixes the issue: 1638bb1.

You can either build it yourself or download it from here (if you're in the US): https://opends.aptapus.net/builds/a796a01.jar

@Boomaa23
Copy link
Owner

That being said I don't have an aarch64 windows computer so it may have issues with not being able to find the native function bindings. Please let me know if this is the case; and if so there may be something you can provide to fix it for the whole repo as well.

@Anthony2be
Copy link
Author

Anthony2be commented Jul 11, 2024

That being said I don't have an aarch64 windows computer so it may have issues with not being able to find the native function bindings. Please let me know if this is the case; and if so there may be something you can provide to fix it for the whole repo as well.

yep this is the case, currently it displays this error on start

PS C:\Users\adubo\Downloads> java -jar a796a01.jar
2024-07-10T23:21:31.342 [INFO]: Starting OpenDS
Exception in thread "main" com.boomaa.opends.util.NativeSystemError: Could not find native file (invalid system configuration): opends-lib-win32-aarch64.dll
        at com.boomaa.opends.util.Libraries.init(Libraries.java:32)
        at com.boomaa.opends.display.DisplayEndpoint.main(DisplayEndpoint.java:75)

What should I do to get the native bindings?

@Anthony2be
Copy link
Author

I tried building the bindings myself but I unfortunately have no idea how cmake works and I couldn’t get it to run the file

@Anthony2be
Copy link
Author

okay finally got the native bindings and got it to build but now its giving this error when I try to run it

PS C:\Users\adubo\source\repos\open-ds\target> java -jar open-ds-v0.2.4-SNAPSHOT-jar-with-dependencies.jar
2024-07-12T01:10:37.776 [INFO]: Starting OpenDS
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to extract the native library /com/github/kwhat/jnativehook/lib/windows/arm64/JNativeHook.dll!

        at com.github.kwhat.jnativehook.GlobalScreen.<clinit>(GlobalScreen.java:91)
        at com.boomaa.opends.display.frames.MainFrame.listenerInit(MainFrame.java:169)
        at com.boomaa.opends.display.frames.MainFrame.display(MainFrame.java:71)
        at com.boomaa.opends.display.DisplayEndpoint.main(DisplayEndpoint.java:80)

@Boomaa23
Copy link
Owner

Ah it looks like the library I use for global input capturing doesn't support aarch64 Windows, sorry (source). I haven't had a chance to write my own version of that library but it is on the potential improvements list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants