Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 843 Bytes

README.md

File metadata and controls

46 lines (31 loc) · 843 Bytes

Kotlin LinuxCNC

Kotlin library to communicate with LinuxCNC using JNI.

Setup

Assuming you have linuxcnc installed

Variables

You need to define the paths first, in env variables or gradle.properties for genereting the jar.

Env Property Description
LINUXCNC_HOME linuxcnc.home The linuxcnc home folder
LINUXCNC_JDK linuxcnc.jdk The jdk to be used for JNI

Example using env(required for make):

export LINUXCNC_HOME=/path/to/linuxcnc
export LINUXCNC_JDK=/path/to/jdk

Generating JNI files

cd ktlcnc/native
make

If you need to regenerate:

make clean
make

Generating jar

./gradlew :ktlcnc:build

The jar will be located in: /ktlcnc/libs