Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libicu docs #6

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ repositories {
}
```

### Linux

Targeting JVM running on Linux or native Linux, both require a specific version of the libicu dependency. (You will see
an error such as `libLiteCore.so: libicuuc.so.71: cannot open shared object file: No such file or directory` indicating
the expected version.) If the required version isn't available from your distribution's package manager, you can
download it from [GitHub](https://github.com/unicode-org/icu/releases).

### Native Platforms

Native platform targets should additionally link to the Couchbase Lite dependency native binary. See [Supported
Expand Down
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/libcblite.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import org.jetbrains.kotlin.konan.target.Architecture
import org.jetbrains.kotlin.konan.target.Family
import org.jetbrains.kotlin.konan.target.KonanTarget

// On Linux, install libicu v71 from vendor/libicu as -rpath and LD_LIBRARY_PATH both don't work to resolve

fun KotlinMultiplatformExtension.linkLibcblite(delegate: DelegatingProjectDependency) =
linkLibcblite(delegate.dependencyProject)

Expand Down
7 changes: 7 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ Couchbase Maven repository.
}
```

## Linux

Targeting JVM running on Linux or native Linux, both require a specific version of the libicu dependency. (You will see
an error such as `libLiteCore.so: libicuuc.so.71: cannot open shared object file: No such file or directory` indicating
the expected version.) If the required version isn't available from your distribution's package manager, you can
download it from [GitHub](https://github.com/unicode-org/icu/releases).

## Native Platforms

Native platform targets should additionally link to the Couchbase Lite dependency native binary. See [Supported Platforms](
Expand Down
12 changes: 12 additions & 0 deletions docs/platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ An application that enables ProGuard minification must ensure that certain piece
|:---:|:----------------:|:----------------:|:----------------:|
| 8+ | :material-check: | :material-check: | :material-check: |

#### JVM on Linux

Targeting JVM running on Linux requires a specific version of the libicu dependency. (You will see an error such as
`libLiteCore.so: libicuuc.so.71: cannot open shared object file: No such file or directory` indicating the expected
version.) If the required version isn't available from your distribution's package manager, you can download it from
[GitHub](https://github.com/unicode-org/icu/releases).

## iOS + macOS :fontawesome-brands-apple:

Kotbase supports native iOS and macOS apps via the [Couchbase Lite Objective-C SDK](
Expand Down Expand Up @@ -127,6 +134,11 @@ Kotbase, e.g. libcblite {{ version_short }}.x for Kotbase {{ version }}.
Linux also [requires](https://github.com/couchbase/couchbase-lite-core#linux) libz, libicu, and libpthread, which may or
may not be installed on your system.

Targeting Linux requires a specific version of the libicu dependency. (You will see an error such as `libLiteCore.so:
libicuuc.so.71: cannot open shared object file: No such file or directory` indicating the expected version.) If the
required version isn't available from your distribution's package manager, you can download it from [GitHub](
https://github.com/unicode-org/icu/releases).

| Distro | Version | x64 | ARM64 |
|:---------------:|:-------:|:----------------:|:----------------:|
| Debian | 9+ | :material-check: | :material-check: |
Expand Down