This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from joeltucci/jira/COMMON-5148
COMMON-5148 Added support for AARCH64 in Linux
- Loading branch information
Showing
9 changed files
with
65 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
# util-compress | ||
|
||
## About | ||
util-compress is a library for compressing and uncompressing data. Includes snappy and gzip. | ||
util-compress is a library for compressing and uncompressing data. Includes snappy and gzip and a pluggable framework to support other codecs. | ||
|
||
A binary is included for Linux-amd64. It will not work on 32-bit platforms. Other platforms will need to compile from source and may not compile or work as-is. | ||
A binary is included for X86_64 and AARCH64 on both Linux and MacOS. Other platforms, including 32 bit platforms, will need to compile from source and may not compile or work as-is. | ||
|
||
## Compiling native code on 64-bit linux | ||
|
||
**Requires libsnappy-dev** | ||
**Requires libsnappy-dev and libz-dev** | ||
|
||
You can build the native code for compress yourself by executing the `updateNative` task. It compiles the native code | ||
using the provided Makefile, which depends on GCC. On Linux, a 64-bit environment with `gcc-multilib` installed is | ||
required so both 64-bit and 32-bit versions will be installed. On macOS, a universal dylib for both `x86_64` and `arm64` | ||
is built automatically. Binaries are installed to `compress/src/main/resources/`. for inclusion in the packaged jar. | ||
using the provided Makefile, which depends on GCC. | ||
For Linux if you are running on an x86 you will need to install "aarch64-linux-gnu-gcc" compiler, if you are running on an AARCH64 you will need to install "x86_64-linux-gnu-gcc" compiler. | ||
|
||
On macOS, a universal dylib for both `x86_64` and `arm64` is built automatically. Binaries are installed to `compress/src/main/resources/`. for inclusion in the packaged jar. | ||
|
||
The makefile can also be invoked directly with: | ||
|
||
``` | ||
$ ./gradlew :mmap:compileJava | ||
$ ./gradlew :compress:compileJava | ||
$ cd compress/src/main/c/ | ||
$ make clean install | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+28.9 KB
compress/src/main/resources/native/Linux-aarch64/libindeedcompress.so
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
mmap/src/main/resources/native/Linux-amd64/libindeedmmap.so.1.0.1
Binary file not shown.
Binary file not shown.