-
Notifications
You must be signed in to change notification settings - Fork 50
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
Problems with installation #463
Comments
Hello, |
If you'd prefer to use Ant/Ivy I've now written an example project here: |
Thank you, this helped a lot! However, I am still struggling with the available solvers. The example project outputs that only Princess and SMTInterpol are available (I work on a Windows x64 machine). How can I install Bitwuzla, Z3 and CVC5? Edit: I managed to install at least CVC5 to Java-SMT (via WSL). Its version is 1.0.5, the latest version is 1.2.1. Is there a possibility to access a newer (or even the newest) version of a solver, e.g. CVC5? |
That's great to hear!
Did you use the Maven project or the zip file I uploaded? If you used the project from the zip file the solver binaries should already have been downloaded. However, on Windows they still have to be copied/linked to a different location before they can be used. You can either do this manually by following these instructions, or as part of the Ant build script. Here is an updated version of the project that copies the binaries automatically:
We're working on an upgrade for CVC5 and it should be available soon. Currently Z3, Mathsat, Bitwuzla, SMTInterpol and Princess are supported on Windows. With the update CVC5 it will also become available. |
There should be no need to copy dependencies (or create symlink) in a user-sided application. The copy- or symlink-approach is only required for internal development in JavaSMT itself. Other projects should use a proper environment variable like PATH or CLASSPATH or LD_LIBRARY_PATH to load native libraries. An example project using JavaSMT with Ant/Ivy is CPAchecker: https://gitlab.com/sosy-lab/software/cpachecker , e.g., with CLASSPATH settings from here: https://gitlab.com/sosy-lab/software/cpachecker/-/blob/main/bin/cpachecker?ref_type=heads#L69 |
The availability of CVC5 on Windows is currently waiting on PR #454 . We still try to minimize the number of dependencies and libraries required by CVC5, e.g., by static linking. |
Hi, I understand that you updgraded CVC5 in the meantime (from looking at the linked PR). Ant/Ivy did not automatically synchronize this upgrade locally. What is the easiest way to do so? Thank you in advance! |
We updated CVC5 as dependency in our development (master) branch. This is not synchronized with any already released version. There are several ways that your installation receives the newest version of CVC5:
For point 1: I will provide a release version on weekend. Additionally, you need to check that your dependency management updates any dependent copied files of binary libraries. This is under your own control, as only you know about your project, i.e., where Ivy or Maven copy any files. |
Update: |
Hi, I am facing problems during the installation of JavaSMT. Could anyone please help me with appropriate build.xml and ivy.xml? You can find my current attempts attached, but they do not work as intended. Furthermore, I am not sure if I am to use ivysettings.xml (as given under /build) and where to put it. If you need any more information, please let me know.
Thank you in advance!
The text was updated successfully, but these errors were encountered: