abs-tudelft / fletcher

Fletcher: A framework to integrate FPGA accelerators with Apache Arrow
https://abs-tudelft.github.io/fletcher/
Apache License 2.0
217 stars 31 forks source link

Build Arrow from source when lib not found #231

Closed mbrobbel closed 4 years ago

mbrobbel commented 4 years ago

I did a small experiment with FetchContent in CMake to see if we can build Arrow on demand when thee library is not installed to make it easier to build from source. It seems to work. Tested with the apache-arrow-1.0.0 branch of Arrow. We should add this.

[ 98%] Linking CXX shared library ../../release/libarrow.dylib
[ 98%] Built target arrow_shared
[ 99%] Building CXX object CMakeFiles/main.dir/main.cpp.o
[100%] Linking CXX executable main
[100%] Built target main

❯ otool -L main
main:
    @rpath/libarrow.100.dylib (compatibility version 100.0.0, current version 100.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 902.1.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
mbrobbel commented 4 years ago

It turns out that this doesn't work without some hacks for libraries so I'm closing this.