Skip to content

Generates JNI packages for each architecture and OS used by TDLight Java

License

Notifications You must be signed in to change notification settings

dimitree54/tdlight-java-natives

 
 

Repository files navigation

Native libraries used by TDLight Java for Mac OS AARCH64

This repository generates JNI packages for each architecture and OS used by TDLight Java.

In that repository I publish settings and some workaround that helped me to compile tdlight-java natives for M1 processor.

Note, that repo dependencies should be cloned. To do that run git submodule update --init --recursive in root of this repo.

Note that I had to specify some environment variables. The first one to resolve coreutils between the one installed from brew and existing one), the second one is the path to java.

Run following command from dir scripts/utils:

PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH" JAVA_HOME=~/Library/Java/JavaVirtualMachines/temurin-17.0.6/Contents/Home ./compile-natives-package.sh

After successful compilation tdlight-natives-osx-aarch64:4.0.0-SNAPSHOT will be placed to you mavenLocal repository (for me, it is ~/.m2/repository/it/tdlight/tdlight-natives-osx-aarch64/4.0.0-SNAPSHOT) To use that natives in tdlite-java you need to recompile it as well: https://github.com/dimitree54/tdlight-java

About

Generates JNI packages for each architecture and OS used by TDLight Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 64.7%
  • C++ 15.5%
  • sed 8.0%
  • CMake 5.4%
  • Java 4.9%
  • Dockerfile 1.5%