devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
248 stars 60 forks source link

new PeerConnectionFactory failed #142

Closed dannyxu2015 closed 1 month ago

dannyxu2015 commented 2 months ago

Describe the bug when I try to new PeerConnectionFactory, it failed: java.lang.UnsatisfiedLinkError: /private/var/folders/9m/7cp15xsx4js2sw0_8wrdvj8h0000gn/T/libwebrtc-java5955403832921971662.dylib: dlopen(/private/var/folders/9m/7cp15xsx4js2sw0_8wrdvj8h0000gn/T/libwebrtc-java5955403832921971662.dylib, 0x0001): tried: '/private/var/folders/9m/7cp15xsx4js2sw0_8wrdvj8h0000gn/T/libwebrtc-java5955403832921971662.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/9m/7cp15xsx4js2sw0_8wrdvj8h0000gn/T/libwebrtc-java5955403832921971662.dylib' (no such file), '/private/var/folders/9m/7cp15xsx4js2sw0_8wrdvj8h0000gn/T/libwebrtc-java5955403832921971662.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) ~[na:na] at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388) ~[na:na] at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232) ~[na:na] at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174) ~[na:na] at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394) ~[na:na] at java.base/java.lang.Runtime.load0(Runtime.java:755) ~[na:na] at java.base/java.lang.System.load(System.java:1957) ~[na:na] at dev.onvoid.webrtc.internal.NativeLoader.loadLibrary(NativeLoader.java:71) ~[webrtc-java-0.8.0.jar:na] at dev.onvoid.webrtc.PeerConnectionFactory.<clinit>(PeerConnectionFactory.java:42) ~[webrtc-java-0.8.0.jar:na]

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context JDK17.0.10 zulu