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

Update libmrcal_jni.so to load libsuitesparseconfig.so.7 #18

Closed
crschardt opened this issue Jul 4, 2024 · 0 comments · Fixed by #16
Closed

Update libmrcal_jni.so to load libsuitesparseconfig.so.7 #18

crschardt opened this issue Jul 4, 2024 · 0 comments · Fixed by #16
Labels
bug Something isn't working

Comments

@crschardt
Copy link
Contributor

Ubuntu 24 has libcholmod5 and libsuitesparseconfig7, however the libmrcal_jni has been linked against older versions and isn't able to load the newer versions. In order to use MrCal on Ubuntu 24, the JNI will need to be updated.

Jul 04 03:05:13 photonvision java[2131]: [2024-07-04 03:05:13] [Camera - RknnDetectorJNI] [ERROR] Couldn't load shared object mrcal_jni: /tmp/libmrcal_jni.so: libsuitesparseconfig.so.5: cannot open shared object file: No such file or directory
Jul 04 03:05:13 photonvision java[2131]: java.lang.UnsatisfiedLinkError: /tmp/libmrcal_jni.so: libsuitesparseconfig.so.5: cannot open shared object file: No such file or directory
Jul 04 03:05:13 photonvision java[2131]:         at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
Jul 04 03:05:13 photonvision java[2131]:         at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
Jul 04 03:05:13 photonvision java[2131]:         at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
Jul 04 03:05:13 photonvision java[2131]:         at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
Jul 04 03:05:13 photonvision java[2131]:         at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394)
Jul 04 03:05:13 photonvision java[2131]:         at java.base/java.lang.Runtime.load0(Runtime.java:755)
Jul 04 03:05:13 photonvision java[2131]:         at java.base/java.lang.System.load(System.java:1957)
Jul 04 03:05:13 photonvision java[2131]:         at org.photonvision.jni.PhotonJNICommon.forceLoad(PhotonJNICommon.java:64)
Jul 04 03:05:13 photonvision java[2131]:         at org.photonvision.mrcal.MrCalJNILoader.forceLoad(MrCalJNILoader.java:65)
Jul 04 03:05:13 photonvision java[2131]:         at org.photonvision.Main.main(Main.java:380)
@crschardt crschardt added the bug Something isn't working label Jul 4, 2024
@crschardt crschardt linked a pull request Jul 4, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant