Skip to content

Commit

Permalink
add alpine build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
anjandev authored and singpolyma committed Oct 9, 2024
1 parent 871118d commit ba48b44
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,44 @@ Also some typings are generated which include documenation comments.

libsnikket.so and cpp/snikket.h, the latter has documentation comments

## Alpine Linux

## Build dependencies

Build haxelib and neko from this aports branch:

https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/69597

Install the required make dependencies:

``` sh
doas apk add opus-dev libdatachannel-dev libstrophe-dev libc++-dev musl-dev --virtual snikket-sdk-makedeps
```

Building the sdk requires a `xlocale.h` file which is the same as the `locale.h` on your computer (provided by the `musl-dev` package).


``` sh
doas ln -s /usr/include/locale.h /usr/include/xlocale.h
```

Install each of the haxe dependencies with each dependency on a new line:

``` sh
haxelib install datetime
haxelib install haxe-strings
haxelib install ...
```

Build the c library using:

``` sh
make libsnikket.so
```

On completion, you can find `libsnikket.so` library at`./cpp/output.dso` and the `snikket.h` header file at `./cpp/snikket.h`.


# Swift

libsnikket.so and cpp/snikket.h are wrapped by cpp/Snikket.swift

0 comments on commit ba48b44

Please sign in to comment.