Skip to content

dragossusi/ktlcnc

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published