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

Running on mac gives Failed to locate library: libobjc.dylib error #3

Open
zcaudate opened this issue Sep 10, 2019 · 9 comments
Open

Comments

@zcaudate
Copy link

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

@oakes
Copy link
Owner

oakes commented Sep 10, 2019

Interesting. What version of OSX are you on?

@zcaudate
Copy link
Author

I'm running Mojave 10.14.5

@oakes
Copy link
Owner

oakes commented Sep 10, 2019

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

@zcaudate
Copy link
Author

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)

@oakes
Copy link
Owner

oakes commented Sep 10, 2019

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/

@oakes
Copy link
Owner

oakes commented Sep 10, 2019

If that still doesn't work, i'll probably need to update my mac to mojave and try it myself.

@oakes
Copy link
Owner

oakes commented Sep 10, 2019

I decided to update to mojave anyway and I can't reproduce this error, either with the snapshot or the current release =\

@zcaudate
Copy link
Author

zcaudate commented Sep 11, 2019

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.

@zcaudate
Copy link
Author

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

clojure-15479912811981949528.txt

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

No branches or pull requests

2 participants