javacpp-presets icon indicating copy to clipboard operation
javacpp-presets copied to clipboard

Build Arrow using LLVM preset

Open junlarsen opened this issue 4 years ago • 5 comments
trafficstars

This is a follow up to #1029

Builds the Apache Arrow preset using the LLVM preset instead of compiling LLVM on its own.

This does not work in its current state (as discussed on Gitter)

junlarsen avatar Apr 30 '21 09:04 junlarsen

It appears that the CMake config files from LLVM that Arrow uses needs all the static libraries, so to do things correctly we would need to bundle all of them in the JAR files for all platforms. Right now, we're bundling them only for Windows because it doesn't support dynamic libraries for LLVM, and that's why the JAR files for that platform are so huge. We could hack the CMake build files to remove all traces of the static libraries, but Arrow itself was designed to link statically with LLVM anyways, so it may be more trouble than it's worth trying to figure out a way to make it all work with the dynamic libraries...

saudet avatar May 03 '21 14:05 saudet

I see, I think we should do what we did for the LLVM build here as well then right?

junlarsen avatar May 05 '21 20:05 junlarsen

We could, but it doesn't build as much of LLVM and it looks like we won't need it: https://github.com/bytedeco/javacpp-presets/actions/runs/820400693

saudet avatar May 07 '21 22:05 saudet

Okay, I suppose I can close this then?

junlarsen avatar May 07 '21 23:05 junlarsen

I suppose, but we can keep it open as a reminder that it would be nice to do something. :)

saudet avatar May 08 '21 00:05 saudet