Willena / sqlite-jdbc-crypt

SQLite JDBC Driver with encryption support
Apache License 2.0
172 stars 33 forks source link

SQLiteMC native library support for Mac M1 (aarch64) #36

Closed xmucaicai closed 2 years ago

xmucaicai commented 3 years ago

May I have know that there would be any way to support for Mac m1(aarch64) please? thanks!

Willena commented 3 years ago

Mac M1 support is planned, but not yet ready (not ETA yet). The only blocking thing is the cross-compilation of the native library included. You should be able to build the native library yourself on a M1 if really needed. I have to check if the necessary tooling to cross-compile the SQLiteMC library is available or not.

xmucaicai commented 3 years ago

Mac M1 support is planned, but not yet ready (not ETA yet). The only blocking thing is the cross-compilation of the native library included. You should be able to build the native library yourself on a M1 if really needed. I have to check if the necessary tooling to cross-compile the SQLiteMC library is available or not.

OK. thanks

ScottPierce commented 3 years ago

@Willena I'm also interested in this as well

ScottPierce commented 3 years ago

@Willena Soon this will become a blocking issue for me. Is there any ETA on this?

Willena commented 3 years ago

Hi ! I've no ETA for now, sorry. The cross-compilation docker images are not yet ready to be used with this project. I'm working on it. I made some progress but nothing usable for now. It would have been easier if I had a Mac M1 with me (at least in the beginning to produce first versions)

ScottPierce commented 3 years ago

@Willena Hey - any update on this? I have access to an m1 mac mini if that helps you in any way.

Willena commented 3 years ago

@ScottPierce I'm sorry, I'm very busy these days and I've not a lot of time left that I can spend on other projects.

ScottPierce commented 3 years ago

@ScottPierce I'm sorry, I'm very busy these days and I've not a lot of time left that I can spend on other projects.

What needs to be done to complete this effort?

Willena commented 3 years ago

Hi ! Sorry for the late reply,

The Makefile should already contain part of the required configuration for a macOS aarch64 build (https://github.com/Willena/sqlite-jdbc-crypt/blob/f27db642675fc03e1a30813378776dc6aaf03f94/Makefile.common#L197). It should work if the machine used is a M1 Mac when issuing the make jni-header native OS_NAME=Mac OS_ARCH=aarch64 command, then mvn package to generate the final jar (only compatible with M1 mac). If you have docker installed, you can try cross compiling all other targets (Windows, Linux, ...).

Specifically for the project, here what I need to do:

Any help on that subject would very be appreciated 😄

benthecarman commented 2 years ago

Seem support was added recently for xerial

https://github.com/Willena/sqlite-jdbc-crypt/commit/63c6c4a9671bd1ab764db7e255b806f6a159ea44

Willena commented 2 years ago

Release 3.39.3.0 now includes Mac aarch64 library