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

Support for Mac M1 arm64 #284

Closed
danielporto opened this issue Apr 5, 2021 · 9 comments
Closed

Support for Mac M1 arm64 #284

danielporto opened this issue Apr 5, 2021 · 9 comments

Comments

@danielporto
Copy link

Title sums it up.
Currently there is no release nor the code compiles for Mac M1
Would be nice to have an universal version that installs via brew on both Mac architectures.

thanks

@angryziber
Copy link
Collaborator

angryziber commented Apr 5, 2021 via email

@nickp-ca
Copy link

nickp-ca commented May 16, 2021

Was also using SWT in another project and it looks like in the last two weeks they have addressed this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=565690

@dragoshenron
Copy link

@angryziber indeed you are right.
However SWT for M1 is available. Do you know when we can expect a new release?
Thanks

@luckman212
Copy link

I am trying to launch Angry on macOS Monterey 12.0.1 on an M1 Mac Mini... it just bounces forever and requires a force-quit.

I tried to launch from Terminal so I could see what was going on, it seems to be complaining about SWT still. I have java JDK 17.0.1 (arm) installed

java -XstartOnFirstThread -jar ./ipscan-mac-3.7.6.jar
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
	no swt-cocoa-4940r23 in java.library.path: /Users/luke/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
	no swt-cocoa in java.library.path: /Users/luke/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
	/Users/luke/.swt/lib/macosx/aarch64/libswt-cocoa-4940r23.jnilib: dlopen(/Users/luke/.swt/lib/macosx/aarch64/libswt-cocoa-4940r23.jnilib, 0x0001): tried: '/Users/luke/.swt/lib/macosx/aarch64/libswt-cocoa-4940r23.jnilib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libswt-cocoa-4940r23.jnilib' (no such file)
	Can't load library: /Users/luke/.swt/lib/macosx/aarch64/libswt-cocoa.jnilib
	/Users/luke/.swt/lib/macosx/aarch64/libswt-cocoa-4940r23.jnilib: dlopen(/Users/luke/.swt/lib/macosx/aarch64/libswt-cocoa-4940r23.jnilib, 0x0001): tried: '/Users/luke/.swt/lib/macosx/aarch64/libswt-cocoa-4940r23.jnilib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libswt-cocoa-4940r23.jnilib' (no such file)

	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:338)
	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:257)
	at org.eclipse.swt.internal.C.<clinit>(C.java:19)
	at org.eclipse.swt.widgets.Display.<clinit>(Display.java:107)
	at net.azib.ipscan.gui.GUI.<init>(GUI.java:29)
	at net.azib.ipscan.Main.main(Main.java:47)

@ju5t
Copy link

ju5t commented Dec 20, 2021

It doesn't even bounce here, it just doesn't do anything. The icon doesn't even appear. I tried the PR from @aplr but that didn't work for me due to some java errors (got the JRE and JDK).

@aplr
Copy link
Contributor

aplr commented Dec 20, 2021

@ju5t what exactly did not work for you? I also had to mess around with the jdk/jre settings in Idea, I'm definitely not a Java guy. However I did not commit these changes as I thought these were quite environment-specific and might interfere with the existing release configuration.

@ju5t
Copy link

ju5t commented Dec 20, 2021

@aplr I'm not a Java guy either. I just installed the JRE and JDK and tried to run the ./gradle commands. The error I got was:

java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x76e64c94) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x76e64c94

@angryziber
Copy link
Collaborator

@ju5t Normally, you need Java 11 to build the app.
I have updated master branch to be able to build with Java 17 as well.

@aplr PR has been merged to master as well, thanks!

@angryziber
Copy link
Collaborator

3.8.0 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants