Skip to content

Commit 3797d6d

Browse files
Add compile instructions
1 parent 0954f9a commit 3797d6d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,31 @@ You can use our [language framework](https://github.com/OnfireNetwork/OnsetJava)
1616
2. Ensure Java 8 JDK/JRE 64bit is installed.
1717
3. Enable "OnsetJavaPlugin" as a plugin inside server_config.json.
1818

19+
#### Compiling from source
20+
##### Ubuntu 18.04
21+
```
22+
# Compiling the plugin requires GCC8 because of <filesystem> usage.
23+
24+
apt install openjdk-8-jdk openjdk-8-jre maven gcc-8 g++-8
25+
26+
export CC=/usr/bin/gcc-8
27+
export CXX=/usr/bin/g++-8
28+
29+
git clone --recurse-submodules https://github.com/OnfireNetwork/OnsetJavaPlugin
30+
cd OnsetJavaPlugin
31+
cmake .
32+
make
33+
34+
# Copy src/OnsetJavaPlugin.so to your OnsetServer/plugins folder.
35+
```
36+
##### Compiling OnsetJavaPluginSupport
37+
```
38+
cd OnsetJavaPluginSupport
39+
mvn package
40+
41+
# Copy OnsetJavaPluginSupport/target/OnsetJavaPluginSupport-1.0.jar to your OnsetServer/java folder.
42+
```
43+
1944
### Data Types we support
2045
#### Method Parameters
2146
* Lua String -> String (java.lang.String)

0 commit comments

Comments
 (0)