Skip to content

Commit 5c38377

Browse files
Kirill GolubevKirill Golubev
authored andcommitted
better dependecies
1 parent 4284c0e commit 5c38377

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

liquidjava-umbrella/liquidjava-verifier/regarding_cvc5.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
One need to clone and build cvc5 somewhere in the system. I did it using [official guide](https://cvc5.github.io/docs/cvc5-1.0.0/installation/installation.html).
66
Then use absolute path to jar file in `liquidjava-umbrella/liquidjava-verifier/pom.xml`. It is not the best way, but it is easy to do and reproduce. So it will do for now.
77

8-
9-
108
## Path variables
119

1210
Error looked like this:
@@ -22,7 +20,7 @@ Call Stack (most recent call first):
2220

2321
Solution is to find existing jvm installation or install openjdk. For me it was not enough, there were some path variables to be set. In my case the following did the trick (passing through configuation stage).
2422

25-
```
23+
```bash
2624
export JAVA_HOME=/usr/local/Cellar/openjdk/19/libexec/openjdk.jdk/Contents/Home/
2725
export JAVA_INCLUDE_PATH="${JAVA_HOME}/include"
2826
export JVM="${JAVA_HOME}/lib/server/libjvm.so"
@@ -33,16 +31,39 @@ export AWT="${JAVA_HOME}/lib/libjawt.so"
3331

3432
The easiest and the dirtiest way to do it.
3533

36-
```
34+
```xml
3735
<dependency>
3836
<groupId>io.github.cvc5</groupId>
3937
<artifactId>cvc5</artifactId>
4038
<version>1.0.0</version>
4139
<scope>system</scope>
42-
<systemPath>/Users/frogofjuly/GitReps/cvc5/build/install/share/java/cvc5.jar</systemPath>
40+
<systemPath>absolute/path/to/cvc/repo/build/install/share/java/cvc5.jar</systemPath>
41+
</dependency>
42+
```
43+
44+
## Better dependencies to maven project
45+
46+
After building cvc one needs to install jar to maven local repository.
47+
48+
```bash
49+
mvn install:install-file \
50+
-Dfile=absolute/path/to/cvc/repo/build/install/share/java/cvc5.jar \
51+
-DgroupId=io.github.cvc5 -DartifactId=cvc5 \
52+
-Dversion=1.0 \
53+
-Dpackaging=jar
54+
55+
```
56+
57+
```xml
58+
<dependency>
59+
<groupId>io.github.cvc5</groupId>
60+
<artifactId>cvc5</artifactId>
61+
<version>1.0</version>
4362
</dependency>
4463
```
4564

65+
Then run building process for liquid java
66+
4667
## Symblos not found/loaded
4768

4869
One should compile Liquid Java project with the same JVM as cvc5!

0 commit comments

Comments
 (0)