Paravim
Paravim copied to clipboard
Running on mac gives `Failed to locate library: libobjc.dylib` error
I'm getting this error while running on OSX
$ clojure -Sdeps "{:deps {paravim {:mvn/version ""RELEASE""}}}" -J-XstartOnFirstThread -m paravim.start
[LWJGL] Failed to load a library. Possible solutions: a) Install the library or the driver that provides the library. b) Ensure that the library is accessible from the system library paths. [LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics. [LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics. Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: libobjc.dylib
Interesting. What version of OSX are you on?
I'm running Mojave 10.14.5
I just pushed a snapshot, can you let me know if this fixes it for you?
clojure -Sdeps "{:deps {paravim {:mvn/version \""0.3.0-SNAPSHOT\""}}}" -J-XstartOnFirstThread -m paravim.start
I'm still getting the same problem:
$ clojure -Sdeps "{:deps {paravim {:mvn/version \""0.3.0-SNAPSHOT\""}}}" -J-XstartOnFirstThread -m paravim.start
Downloading: paravim/paravim/0.3.0-SNAPSHOT/maven-metadata.xml from https://repo.clojars.org/
Downloading: paravim/paravim/0.3.0-SNAPSHOT/paravim-0.3.0-20190910.170230-1.pom from https://repo.clojars.org/
Downloading: libvim-clj/libvim-clj/0.5.0/libvim-clj-0.5.0.pom from https://repo.clojars.org/
Downloading: libvim-clj/libvim-clj/0.5.0/libvim-clj-0.5.0.jar from https://repo.clojars.org/
Downloading: paravim/paravim/0.3.0-SNAPSHOT/paravim-0.3.0-20190910.170230-1.jar from https://repo.clojars.org/
[LWJGL] Failed to load a library. Possible solutions:
a) Install the library or the driver that provides the library.
b) Ensure that the library is accessible from the system library paths.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: libobjc.dylib
at org.lwjgl.system.Library.loadNative(Library.java:324)
at org.lwjgl.system.Library.loadNative(Library.java:222)
at org.lwjgl.system.Library.loadNative(Library.java:203)
at org.lwjgl.system.macosx.ObjCRuntime.<clinit>(ObjCRuntime.java:103)
at org.lwjgl.glfw.EventLoop.isMainThread(EventLoop.java:85)
at org.lwjgl.glfw.EventLoop.access$000(EventLoop.java:26)
at org.lwjgl.glfw.EventLoop$OffScreen.<clinit>(EventLoop.java:30)
at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1892)
at paravim.start$__GT_window.invokeStatic(start.clj:171)
Alright maybe i rebuilt the binary wrong. I did it again but starting from a clean repo. I pushed a new snapshot with the same name, can you try it again? You'll need to kill the old one unfortunately...
cd ~
rm -r .m2/repository/paravim/paravim/0.3.0-SNAPSHOT/
rm -r .clojure/.cpcache/
If that still doesn't work, i'll probably need to update my mac to mojave and try it myself.
I decided to update to mojave anyway and I can't reproduce this error, either with the snapshot or the current release =\
yeah. it's really weird. libobjc.dylib
for me is in /usr/lib/
. I also tried different java versions as well but it's still giving the same message.
the same thing happens if I clone the repo and run clj -A:dev:macos native
:
Downloading: org/clojure/clojure/1.10.1/clojure-1.10.1.jar from https://repo1.maven.org/maven2/
[LWJGL] Failed to load a library. Possible solutions:
a) Install the library or the driver that provides the library.
b) Ensure that the library is accessible from the system library paths.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Syntax error (UnsatisfiedLinkError) compiling at (dev.clj:23:1).
Failed to locate library: libobjc.dylib