AVSystem / Anjay-java

Anjay LwM2M client library port for Java applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compilation of command `./gradlew :library:build` fails on Mac M1

lmorek opened this issue · comments

I have an issue while running command: ./gradlew :library:build on Mac M1 (Monterey 12.4).
Stack trace attached
anjay-java.txt

I performed git submodule update --init --recursive before running ./gradlew :library:build as stated in README file.

soft_version.txt

Hi,

I suppose that you have Mbed TLS 3.1 installed via Homebrew.

Anjay 2.14.1 is not compatible with Mbed TLS 3.1. You can either manually upgrade the Anjay dependency to 2.15.0 (3.0 would need updating the Java integration layer, so it's not recommended for now):

cd native-library/deps/anjay
git checkout 2.15.0
cd ../../..
git add -u
git submodule update --init --recursive

or alternatively, you could install Mbed TLS 2.x on your system:

brew install mbedtls@2
brew unlink mbedtls
brew link mbedtls@2

We plan on releasing an official upgrade for this integration layer shortly, which will fix this issue. Sorry for the inconvenience.

Thank you for your response.
Looks like steps that you have described here works. I was able to compile and start service.