From 456fa93c29c0150390c95b6bb6aac6e43e2e6ec9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 8 Jun 2021 17:11:45 +0200 Subject: [PATCH 1/5] finished cppbuild for windows x64 --- cppbuild.sh | 2 +- leapmotion/cppbuild.sh | 80 ++++++++++++++++++++++++++++++++++++++++++ leapmotion/pom.xml | 0 platform/pom.xml | 1 + pom.xml | 1 + 5 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 leapmotion/cppbuild.sh create mode 100644 leapmotion/pom.xml diff --git a/cppbuild.sh b/cppbuild.sh index 895065044d8..ebe6a15b017 100755 --- a/cppbuild.sh +++ b/cppbuild.sh @@ -164,7 +164,7 @@ function sedinplace { } if [[ -z ${PROJECTS:-} ]]; then - PROJECTS=(opencv ffmpeg flycapture spinnaker libdc1394 libfreenect libfreenect2 librealsense librealsense2 videoinput artoolkitplus chilitags flandmark arrow hdf5 hyperscan mkl mkl-dnn dnnl openblas arpack-ng cminpack fftw gsl cpython numpy scipy gym llvm libpostal leptonica tesseract caffe openpose cuda nvcodec opencl mxnet pytorch tensorflow tensorflow-lite tensorrt depthai ale onnx ngraph onnxruntime tvm liquidfun qt skia cpu_features modsecurity systems) + PROJECTS=(opencv ffmpeg flycapture spinnaker libdc1394 libfreenect libfreenect2 librealsense librealsense2 videoinput artoolkitplus chilitags flandmark arrow hdf5 hyperscan mkl mkl-dnn dnnl openblas arpack-ng cminpack fftw gsl cpython numpy scipy gym llvm libpostal leptonica tesseract caffe openpose cuda nvcodec opencl mxnet pytorch tensorflow tensorflow-lite tensorrt depthai ale onnx ngraph onnxruntime tvm liquidfun qt skia cpu_features modsecurity systems leapmotion) fi for PROJECT in ${PROJECTS[@]}; do diff --git a/leapmotion/cppbuild.sh b/leapmotion/cppbuild.sh new file mode 100644 index 00000000000..a0df7be77e8 --- /dev/null +++ b/leapmotion/cppbuild.sh @@ -0,0 +1,80 @@ +#!/bin/bash +# This file is meant to be included by the parent cppbuild.sh script + +if [[ -z "$PLATFORM" ]]; then + pushd .. + bash cppbuild.sh "$@" leapmotion + popd + exit +fi + +mkdir -p $PLATFORM +cd $PLATFORM + +case $PLATFORM in + # android-arm) + # CC="$ANDROID_CC" CFLAGS="$ANDROID_FLAGS" ./configure --prefix=.. --static + # make -j $MAKEJ + # make install + # ;; + # android-arm64) + # CC="$ANDROID_CC" CFLAGS="$ANDROID_FLAGS" ./configure --prefix=.. --static + # make -j $MAKEJ + # make install + # ;; + # android-x86) + # CC="$ANDROID_CC" CFLAGS="$ANDROID_FLAGS" ./configure --prefix=.. --static + # make -j $MAKEJ + # make install + # ;; + # android-x86_64) + # CC="$ANDROID_CC" CFLAGS="$ANDROID_FLAGS" ./configure --prefix=.. --static + # make -j $MAKEJ + # make install + # ;; + # linux-x86) + # CC="gcc -m32 -fPIC" ./configure --prefix=.. --static + # make -j $MAKEJ + # make install + # ;; + # linux-x86_64) + # CC="gcc -m64 -fPIC" ./configure --prefix=.. --static + # make -j $MAKEJ + # make install + # ;; + # macosx-x86_64) + # ./configure --prefix=.. --static + # make -j $MAKEJ + # make install + # ;; + # windows-x86) + # nmake -f win32/Makefile.msc zlib.lib + # mkdir -p ../include ../lib + # cp zconf.h zlib.h ../include/ + # cp zlib.lib ../lib/ + # ;; + windows-x86_64) + LEAPMOTION_VERSION=4.1.0 + EXTENSION=.zip + FOLDER=LeapDeveloperKit_$LEAPMOTION_VERSION+52211_win + FILE=$FOLDER$EXTENSION + cd ../../ + if [ -f $FILE ];then + echo "$FILE exists, unzipping..." + else + echo "$FILE not found. Please download it and place it into this directory." + exit 1 + fi + unzip $FILE + cd cppbuild/$PLATFORM/ + mkdir -p lib + cp ../../$FOLDER/LeapSDK/lib/x64/LeapC.lib lib/ + cp -r ../../$FOLDER/LeapSDK/include include + rm -rf ../../$FOLDER + ;; + *) + echo "Error: Platform \"$PLATFORM\" is not supported" + ;; +esac + +cd ../.. diff --git a/leapmotion/pom.xml b/leapmotion/pom.xml new file mode 100644 index 00000000000..e69de29bb2d diff --git a/platform/pom.xml b/platform/pom.xml index 7e924ae09a1..0ca0e5e2440 100644 --- a/platform/pom.xml +++ b/platform/pom.xml @@ -69,6 +69,7 @@ ../cpu_features/platform ../modsecurity/platform ../systems/platform + ../leapmotion/platform diff --git a/pom.xml b/pom.xml index 2a7913078a4..83ca6d330fd 100644 --- a/pom.xml +++ b/pom.xml @@ -630,6 +630,7 @@ cpu_features modsecurity systems + leapmotion ${os.name}-${os.arch} From 51072735a18663f3d1a39cee50e1bcbfabae8c89 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 9 Jun 2021 18:22:04 +0200 Subject: [PATCH 2/5] debugging compilation with the java config file --- leapmotion/cppbuild.sh | 25 ++- leapmotion/platform/pom.xml | 158 ++++++++++++++++++ leapmotion/pom.xml | 55 ++++++ .../leapmotion/presets/leapmotion.java | 53 ++++++ leapmotion/src/main/java9/module-info.java | 6 + 5 files changed, 291 insertions(+), 6 deletions(-) create mode 100644 leapmotion/platform/pom.xml create mode 100644 leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java create mode 100644 leapmotion/src/main/java9/module-info.java diff --git a/leapmotion/cppbuild.sh b/leapmotion/cppbuild.sh index a0df7be77e8..18e20513b37 100644 --- a/leapmotion/cppbuild.sh +++ b/leapmotion/cppbuild.sh @@ -47,12 +47,25 @@ case $PLATFORM in # make -j $MAKEJ # make install # ;; - # windows-x86) - # nmake -f win32/Makefile.msc zlib.lib - # mkdir -p ../include ../lib - # cp zconf.h zlib.h ../include/ - # cp zlib.lib ../lib/ - # ;; + windows-x86) + LEAPMOTION_VERSION=4.1.0 + EXTENSION=.zip + FOLDER=LeapDeveloperKit_$LEAPMOTION_VERSION+52211_win + FILE=$FOLDER$EXTENSION + cd ../../ + if [ -f $FILE ];then + echo "$FILE exists, unzipping..." + else + echo "$FILE not found. Please download it and place it into this directory." + exit 1 + fi + unzip $FILE + cd cppbuild/$PLATFORM/ + mkdir -p lib + cp ../../$FOLDER/LeapSDK/lib/x86/LeapC.lib lib/ + cp -r ../../$FOLDER/LeapSDK/include include + rm -rf ../../$FOLDER + ;; windows-x86_64) LEAPMOTION_VERSION=4.1.0 EXTENSION=.zip diff --git a/leapmotion/platform/pom.xml b/leapmotion/platform/pom.xml new file mode 100644 index 00000000000..dab68c7c60f --- /dev/null +++ b/leapmotion/platform/pom.xml @@ -0,0 +1,158 @@ + + + 4.0.0 + + + org.bytedeco + javacpp-presets + 1.5.6-SNAPSHOT + ../../ + + + org.bytedeco + leapmotion-platform + 4.1.0-${project.parent.version} + JavaCPP Presets Platform for Leap Motion Controller + + + leapmotion + + + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.android-arm} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.android-arm64} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.android-x86} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.android-x86_64} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.linux-x86} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.linux-x86_64} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.macosx-x86_64} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.windows-x86} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.windows-x86_64} + + + + + + + maven-jar-plugin + + + default-jar + + + + ${javacpp.moduleId}.jar ${javacpp.moduleId}-linux-x86.jar ${javacpp.moduleId}-linux-x86_64.jar ${javacpp.moduleId}-macosx-x86_64.jar ${javacpp.moduleId}-windows-x86.jar ${javacpp.moduleId}-windows-x86_64.jar + + + + + + empty-javadoc-jar + + jar + + + javadoc + + + + empty-sources-jar + + jar + + + sources + + + + + + org.moditect + moditect-maven-plugin + + + add-module-infos + none + + + add-platform-module-info + package + + add-module-info + + + + + ${project.build.directory}/${project.artifactId}.jar + + module org.bytedeco.${javacpp.moduleId}.platform { + requires static org.bytedeco.${javacpp.moduleId}.android.arm; + requires static org.bytedeco.${javacpp.moduleId}.android.arm64; + requires static org.bytedeco.${javacpp.moduleId}.android.x86; + requires static org.bytedeco.${javacpp.moduleId}.android.x86_64; + requires static org.bytedeco.${javacpp.moduleId}.linux.x86; + requires static org.bytedeco.${javacpp.moduleId}.linux.x86_64; + requires static org.bytedeco.${javacpp.moduleId}.macosx.x86_64; + requires static org.bytedeco.${javacpp.moduleId}.windows.x86; + requires static org.bytedeco.${javacpp.moduleId}.windows.x86_64; + } + + + + + + + + + + diff --git a/leapmotion/pom.xml b/leapmotion/pom.xml index e69de29bb2d..f33feed45f4 100644 --- a/leapmotion/pom.xml +++ b/leapmotion/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + + + org.bytedeco + javacpp-presets + 1.5.6-SNAPSHOT + + + org.bytedeco + leapmotion + 4.1.0-${project.parent.version} + JavaCPP Presets for Leap Motion Controller + + + + org.bytedeco + javacpp + + + + + + + maven-resources-plugin + + + maven-compiler-plugin + + + org.bytedeco + javacpp + + + maven-jar-plugin + + + org.moditect + moditect-maven-plugin + + + maven-dependency-plugin + + + maven-source-plugin + + + maven-javadoc-plugin + + + + + \ No newline at end of file diff --git a/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java b/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java new file mode 100644 index 00000000000..6dbb223d6c0 --- /dev/null +++ b/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java @@ -0,0 +1,53 @@ +package org.bytedeco.leapmotion.presets; + +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; +import org.bytedeco.javacpp.tools.*; + +@Properties( + value = { + @Platform( + value = "windows", + include = "LeapC.h", + link = "LeapC") + }, + target = "org.bytedeco.leapmotion", + global = "org.bytedeco.leapmotion.global.leapmotion" +) +public class leapmotion implements InfoMapper { + static { Loader.checkVersion("org.bytedeco", "leapmotion"); } + + public void map(InfoMap infoMap) { +// https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#specifying-names-to-use-in-java + + infoMap.put(new Info("LEAP_EXPORT","LEAP_CALL","LEAP_STATIC_ASSERT","static_assert").cppTypes().annotations()) + + .put(new Info("_LEAP_CONNECTION").pointerTypes("LEAP_CONNECTION")) + .put(new Info("LEAP_CONNECTION").valueTypes("LEAP_CONNECTION").pointerTypes("@Cast(\"LEAP_CONNECTION*\") PointerPointer", "@ByPtrPtr LEAP_CONNECTION")) + + .put(new Info("_LEAP_DEVICE").pointerTypes("LEAP_DEVICE")) + .put(new Info("LEAP_DEVICE").valueTypes("LEAP_DEVICE").pointerTypes("@Cast(\"LEAP_DEVICE*\") PointerPointer", "@ByPtrPtr LEAP_DEVICE")) + + .put(new Info("_LEAP_CLOCK_REBASER").pointerTypes("LEAP_CLOCK_REBASER")) + .put(new Info("LEAP_CLOCK_REBASER").valueTypes("LEAP_CLOCK_REBASER").pointerTypes("@Cast(\"LEAP_CLOCK_REBASER*\") PointerPointer", "@ByPtrPtr LEAP_CLOCK_REBASER")) + + .put(new Info("_LEAP_RECORDING").pointerTypes("LEAP_RECORDING")) + .put(new Info("LEAP_RECORDING").valueTypes("LEAP_RECORDING").pointerTypes("@Cast(\"LEAP_RECORDING*\") PointerPointer", "@ByPtrPtr LEAP_RECORDING")) + + .put(new Info("_LEAP_CALIBRATION").pointerTypes("LEAP_CALIBRATION")) + .put(new Info("LEAP_CALIBRATION").valueTypes("LEAP_CALIBRATION").pointerTypes("@Cast(\"LEAP_CALIBRATION*\") PointerPointer", "@ByPtrPtr LEAP_CALIBRATION")); + + // .put(new Info("FAR").cppText("#define FAR")) + // .put(new Info("OF").cppText("#define OF(args) args")) + // .put(new Info("Z_ARG").cppText("#define Z_ARG(args) args")) + // .put(new Info("Byte", "Bytef", "charf").cast().valueTypes("byte").pointerTypes("BytePointer")) + // .put(new Info("uInt", "uIntf").cast().valueTypes("int").pointerTypes("IntPointer")) + // .put(new Info("uLong", "uLongf", "z_crc_t", "z_off_t", "z_size_t").cast().valueTypes("long").pointerTypes("CLongPointer")) + // .put(new Info("z_off64_t").cast().valueTypes("long").pointerTypes("LongPointer")) + // .put(new Info("voidp", "voidpc", "voidpf").valueTypes("Pointer")) + // .put(new Info("gzFile_s").pointerTypes("gzFile")) + // .put(new Info("gzFile").valueTypes("gzFile")) + // .put(new Info("Z_LARGE64", "!defined(ZLIB_INTERNAL) && defined(Z_WANT64)").define(false)) + // .put(new Info("inflateGetDictionary", "gzopen_w", "gzvprintf").skip()); + } +} diff --git a/leapmotion/src/main/java9/module-info.java b/leapmotion/src/main/java9/module-info.java new file mode 100644 index 00000000000..31c9ce0e658 --- /dev/null +++ b/leapmotion/src/main/java9/module-info.java @@ -0,0 +1,6 @@ +module org.bytedeco.leapmotion { + requires transitive org.bytedeco.javacpp; + exports org.bytedeco.leapmotion; + exports org.bytedeco.leapmotion.global; + exports org.bytedeco.leapmotion.presets; +} \ No newline at end of file From c48d625c2c35330dc5e7326cac44cf3f14eb1d2c Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 Jun 2021 12:09:18 +0200 Subject: [PATCH 3/5] edits to preset file --- .../leapmotion/presets/leapmotion.java | 27 ++++++------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java b/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java index 6dbb223d6c0..d39a8fa3b5a 100644 --- a/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java +++ b/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java @@ -18,36 +18,25 @@ public class leapmotion implements InfoMapper { static { Loader.checkVersion("org.bytedeco", "leapmotion"); } public void map(InfoMap infoMap) { -// https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#specifying-names-to-use-in-java infoMap.put(new Info("LEAP_EXPORT","LEAP_CALL","LEAP_STATIC_ASSERT","static_assert").cppTypes().annotations()) .put(new Info("_LEAP_CONNECTION").pointerTypes("LEAP_CONNECTION")) - .put(new Info("LEAP_CONNECTION").valueTypes("LEAP_CONNECTION").pointerTypes("@Cast(\"LEAP_CONNECTION*\") PointerPointer", "@ByPtrPtr LEAP_CONNECTION")) + .put(new Info("LEAP_CONNECTION").valueTypes("LEAP_CONNECTION").pointerTypes("@Cast(\"LEAP_CONNECTION*\") _LEAP_CONNECTION", "@ByPtrPtr LEAP_CONNECTION")) .put(new Info("_LEAP_DEVICE").pointerTypes("LEAP_DEVICE")) - .put(new Info("LEAP_DEVICE").valueTypes("LEAP_DEVICE").pointerTypes("@Cast(\"LEAP_DEVICE*\") PointerPointer", "@ByPtrPtr LEAP_DEVICE")) + .put(new Info("LEAP_DEVICE").valueTypes("LEAP_DEVICE").pointerTypes("@Cast(\"LEAP_DEVICE*\") _LEAP_DEVICE", "@ByPtrPtr LEAP_DEVICE")) .put(new Info("_LEAP_CLOCK_REBASER").pointerTypes("LEAP_CLOCK_REBASER")) - .put(new Info("LEAP_CLOCK_REBASER").valueTypes("LEAP_CLOCK_REBASER").pointerTypes("@Cast(\"LEAP_CLOCK_REBASER*\") PointerPointer", "@ByPtrPtr LEAP_CLOCK_REBASER")) + .put(new Info("LEAP_CLOCK_REBASER").valueTypes("LEAP_CLOCK_REBASER").pointerTypes("@Cast(\"LEAP_CLOCK_REBASER*\") _LEAP_CLOCK_REBASER", "@ByPtrPtr LEAP_CLOCK_REBASER")) .put(new Info("_LEAP_RECORDING").pointerTypes("LEAP_RECORDING")) - .put(new Info("LEAP_RECORDING").valueTypes("LEAP_RECORDING").pointerTypes("@Cast(\"LEAP_RECORDING*\") PointerPointer", "@ByPtrPtr LEAP_RECORDING")) + .put(new Info("LEAP_RECORDING").valueTypes("LEAP_RECORDING").pointerTypes("@Cast(\"LEAP_RECORDING*\") _LEAP_RECORDING", "@ByPtrPtr LEAP_RECORDING")) .put(new Info("_LEAP_CALIBRATION").pointerTypes("LEAP_CALIBRATION")) - .put(new Info("LEAP_CALIBRATION").valueTypes("LEAP_CALIBRATION").pointerTypes("@Cast(\"LEAP_CALIBRATION*\") PointerPointer", "@ByPtrPtr LEAP_CALIBRATION")); + .put(new Info("LEAP_CALIBRATION").valueTypes("LEAP_CALIBRATION").pointerTypes("@Cast(\"LEAP_CALIBRATION*\") _LEAP_CALIBRATION", "@ByPtrPtr LEAP_CALIBRATION")); - // .put(new Info("FAR").cppText("#define FAR")) - // .put(new Info("OF").cppText("#define OF(args) args")) - // .put(new Info("Z_ARG").cppText("#define Z_ARG(args) args")) - // .put(new Info("Byte", "Bytef", "charf").cast().valueTypes("byte").pointerTypes("BytePointer")) - // .put(new Info("uInt", "uIntf").cast().valueTypes("int").pointerTypes("IntPointer")) - // .put(new Info("uLong", "uLongf", "z_crc_t", "z_off_t", "z_size_t").cast().valueTypes("long").pointerTypes("CLongPointer")) - // .put(new Info("z_off64_t").cast().valueTypes("long").pointerTypes("LongPointer")) - // .put(new Info("voidp", "voidpc", "voidpf").valueTypes("Pointer")) - // .put(new Info("gzFile_s").pointerTypes("gzFile")) - // .put(new Info("gzFile").valueTypes("gzFile")) - // .put(new Info("Z_LARGE64", "!defined(ZLIB_INTERNAL) && defined(Z_WANT64)").define(false)) - // .put(new Info("inflateGetDictionary", "gzopen_w", "gzvprintf").skip()); + // .put(new Info("_LEAP_DISTORTION_MATRIX").pointerTypes("LEAP_DISTORTION_MATRIX")); + // .put(new Info("LEAP_DISTORTION_MATRIX").valueTypes("distortion_matrix").pointerTypes("@Cast(\"LEAP_DISTORTION_MATRIX*\") PointerPointer", "@ByPtrPtr distortion_matrix")); } -} +} \ No newline at end of file From bfc51ac5f9a69b9b5c2ebc75879cfec6ce2ad1b7 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 21 Jun 2021 12:00:14 +0200 Subject: [PATCH 4/5] added readme --- leapmotion/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 leapmotion/README.md diff --git a/leapmotion/README.md b/leapmotion/README.md new file mode 100644 index 00000000000..cd1db6e2658 --- /dev/null +++ b/leapmotion/README.md @@ -0,0 +1,29 @@ +JavaCPP Presets for leapmotion +=============================== + +[![Gitter](https://badges.gitter.im/bytedeco/javacpp.svg)](https://gitter.im/bytedeco/javacpp) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.bytedeco/leapmotion/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.bytedeco/leapmotion) [![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/org.bytedeco/leapmotion.svg)](http://bytedeco.org/builds/) +Build status for all platforms: [![leapmotion](https://github.com/bytedeco/javacpp-presets/workflows/leapmotion/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Aleapmotion) Commercial support: [![xscode](https://img.shields.io/badge/Available%20on-xs%3Acode-blue?style=?style=plastic&logo=appveyor&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////////VXz1bAAAAAJ0Uk5T/wDltzBKAAAAlUlEQVR42uzXSwqAMAwE0Mn9L+3Ggtgkk35QwcnSJo9S+yGwM9DCooCbgn4YrJ4CIPUcQF7/XSBbx2TEz4sAZ2q1RAECBAiYBlCtvwN+KiYAlG7UDGj59MViT9hOwEqAhYCtAsUZvL6I6W8c2wcbd+LIWSCHSTeSAAECngN4xxIDSK9f4B9t377Wd7H5Nt7/Xz8eAgwAvesLRjYYPuUAAAAASUVORK5CYII=)](https://xscode.com/bytedeco/javacpp-presets) + + +Introduction +------------ +This directory contains the JavaCPP Presets module for: + + * leapmotion 4.1.0 https://developer.leapmotion.com/sdk-leap-motion-controller/ + +Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. + +Prerequisites +------------ +Please download the SDK archive for the leapmotion controller [here](https://developer.leapmotion.com/sdk-leap-motion-controller/) and place it in the `/javacpp-presets/leapmotion` directory before building. + + +TODO - Documentation +------------- +Java API documentation is available here: + + * http://bytedeco.org/javacpp-presets/leapmotion/apidocs/ + + +TODO - Sample Usage +------------ \ No newline at end of file From 1ae3fd1bb05da49fa03814129703fe74f2a1969b Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 21 Jun 2021 13:46:35 +0200 Subject: [PATCH 5/5] changes to preset file --- .../java/org/bytedeco/leapmotion/presets/leapmotion.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java b/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java index d39a8fa3b5a..aaa0f003a00 100644 --- a/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java +++ b/leapmotion/src/main/java/org/bytedeco/leapmotion/presets/leapmotion.java @@ -20,10 +20,10 @@ public class leapmotion implements InfoMapper { public void map(InfoMap infoMap) { infoMap.put(new Info("LEAP_EXPORT","LEAP_CALL","LEAP_STATIC_ASSERT","static_assert").cppTypes().annotations()) - + .put(new Info("_LEAP_CONNECTION").pointerTypes("LEAP_CONNECTION")) .put(new Info("LEAP_CONNECTION").valueTypes("LEAP_CONNECTION").pointerTypes("@Cast(\"LEAP_CONNECTION*\") _LEAP_CONNECTION", "@ByPtrPtr LEAP_CONNECTION")) - + .put(new Info("_LEAP_DEVICE").pointerTypes("LEAP_DEVICE")) .put(new Info("LEAP_DEVICE").valueTypes("LEAP_DEVICE").pointerTypes("@Cast(\"LEAP_DEVICE*\") _LEAP_DEVICE", "@ByPtrPtr LEAP_DEVICE")) @@ -35,7 +35,7 @@ public void map(InfoMap infoMap) { .put(new Info("_LEAP_CALIBRATION").pointerTypes("LEAP_CALIBRATION")) .put(new Info("LEAP_CALIBRATION").valueTypes("LEAP_CALIBRATION").pointerTypes("@Cast(\"LEAP_CALIBRATION*\") _LEAP_CALIBRATION", "@ByPtrPtr LEAP_CALIBRATION")); - + // .put(new Info("_LEAP_DISTORTION_MATRIX").pointerTypes("LEAP_DISTORTION_MATRIX")); // .put(new Info("LEAP_DISTORTION_MATRIX").valueTypes("distortion_matrix").pointerTypes("@Cast(\"LEAP_DISTORTION_MATRIX*\") PointerPointer", "@ByPtrPtr distortion_matrix")); }