-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
z3 java API fails to detect libz3.dylib on BigSur #4979
Comments
Hi @polgreen, together with @no-preserve-root, I maintain an artifact called z3-turnkey: https://github.com/tudo-aqua/z3-turnkey Today, I worked on bouncing the included binaries to z3-4.8.10, but it is still work in progress. Something is not working on the linux side at the moment. Hopefully, I can fix it in the next couple of days. We had to run The otool output changed as follows:
to z3-turnkey version:
Now, the loader should look for the related libz3.dylib next to the libz3java.dylib. No prefix means, that it should be in the same folder as the binary loading the library. Therefore, the default builds should work the way you described it but has no chance to finde the library anywhere else on the system. We load the library from a tmp folder as described in this method. Eventually, this might give you some hints to resolve the issue on your machine. |
Replaces libz3[java].dylib with the corresponding files from z3-turnkey (version 4.8.14) as suggested in this issues: Z3Prover/z3#4979 z3-turnkey was downloaded from the Maven Central repository: https://mvnrepository.com/artifact/io.github.tudo-aqua/z3-turnkey/4.8.14 For further information on z3-turnkey see: https://github.com/tudo-aqua/z3-turnkey
Hi,
I'm using z3 java bindings in a project (https://github.com/uclid-org/uclid) on Big Sur 11.1, and I think I am running into issue #294 again:
I've tried the solution in that thread, which worked on my intel mac on Mojave and Catalina with openJDK11 (and also openJDK8 but it didn't work with a later version of openJDK):
As far as I can tell, this solution doesn't work on BigSur and I get the error:
The only way I can fix this error is to put libz3.dylib in the same directory that I call the binary from (I can leave libz3java.dylib in /Libary/Java/Extensions).
I've recreated this on two different setups:
Has anyone else encountered this and got a solution?
The text was updated successfully, but these errors were encountered: