You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+93-82Lines changed: 93 additions & 82 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,32 @@
1
-
# PDAL Java bindings
1
+
# PDAL Java Bindings
2
2
3
3
[](https://github.com/PDAL/java/actions)[](https://gitter.im/PDAL/PDAL?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[](https://search.maven.org/search?q=g:io.pdal)[](https://oss.sonatype.org/content/repositories/snapshots/io/pdal/)
4
4
5
-
Java bindings to use PDAL on JVM (supports PDAL >= 2.0).
6
-
Mac users can experience some issues with bindings that were build against a different PDAL version,
7
-
so try to use a consistent PDAL version.
5
+
6
+
Java bindings to use PDAL on JVM (supports PDAL >= 2.0). Mac users can experience some issues with bindings that were build against a different PDAL version, so try to use a consistent PDAL version.
8
7
9
8
It is released independently from PDAL itself as of PDAL 1.7.
10
9
11
-
See [https://pdal.io/java.html](https://pdal.io/java.html) for more info.
10
+
See [https://pdal.io/java.html](https://pdal.io/java.html) for more info.
11
+
12
12
13
-
## Using PDAL JNI with SBT
13
+
## Table of Contents
14
+
-[Usage](#usage)
15
+
-[Examples](#examples)
16
+
-[Build](#build)
17
+
-[Possible issues and solutions](#possible-issues-and-solutions)
18
+
-[How To Release](#how-to-release)
19
+
20
+
## Usage
21
+
You can use `pdal-native` dep published into maven central in case you don't have installed JNI bindings and to avoid steps described below.
22
+
Dependency contains bindings for `x86_64-darwin` and `x86_64-linux`, other versions are not supported yet.
14
23
24
+
### Using PDAL JNI With SBT
15
25
```scala
16
26
// pdal is published to maven central, but you can use the following repos in addition
17
-
resolvers ++=
18
-
Resolver.sonatypeOssRepos("releases") ++
27
+
resolvers ++=
28
+
Resolver.sonatypeOssRepos("releases") ++
19
29
Resolver.sonatypeOssRepos("snapshots") // for snaphots
20
-
21
30
// `<latest version>` refers to the version indicated by the badge above
3. Build native libs `sbt native/nativeCompile` (optionally, binaries would be built during tests run) or `sbt native/publishLocal` for the built jar only
216
+
4. Run `sbt core/test` to run PDAL tests
213
217
214
-
Only Java development purposes compilation:
215
-
1. Provide `$LD_LIBRARY_PATH` or `$DYLD_LIBRARY_PATH`
216
-
2. If you don't want to provide global variable you can pass `-Djava.library.path=<path>` into sbt:
217
-
`./sbt -Djava.library.path=<path>`
218
-
3. Set `PDAL_DEPEND_ON_NATIVE=false` (to disable `native` project build)
219
-
4. Run `PDAL_DEPEND_ON_NATIVE=false ./sbt`
220
218
219
+
Only Java development purposes compilation:
220
+
1. Provide `$LD_LIBRARY_PATH` or `$DYLD_LIBRARY_PATH`
221
+
2. If you don't want to provide global variable you can pass `-Djava.library.path=<path>` into sbt:
222
+
`./sbt -Djava.library.path=<path>`
223
+
3. Set `PDAL_DEPEND_ON_NATIVE=false` (to disable `native` project build)
224
+
4. Run `PDAL_DEPEND_ON_NATIVE=false sbt`
221
225
Finally the possible command to launch and build PDAL JNI bindings could be:
Natives for arm64 are still not pre-built. If you need to get them, follow the guide above for a self build and finally go to `../pdal-java/native/target/`, here you will find the built `pdal-native.jar`. If you want to use it in a Java project, for example, you can go to `./m2/repository/io/pdal/pdal-native/<your-version>/` and replace the one taken from Maven with the one you have just built.
232
236
233
-
###Possible issues and solutions
237
+
## Possible issues and solutions
234
238
235
-
1. In case of not installed as global PDAL change [this](./java/native/src/CMakeLists.txt#L25) line to:
239
+
#### - In case of not installed as global PDAL change [this](./java/native/src/CMakeLists.txt#L25) line to:
0 commit comments