tanmaykm / Thrift.jl

Thrift for Julia
Other
27 stars 14 forks source link

Using BinDeps to install Thrift compiler #20

Closed jpfairbanks closed 7 years ago

jpfairbanks commented 7 years ago

Hello @tanmaykm,

Currently you use a script to install the Thrift compiler for travis-ci, would it make sense to convert that to a ./deps/build.jl script possible using Bindeps to handle the dependencies on libssl-dev, flex, bison, and libboost-all-dev?

tanmaykm commented 7 years ago

Thanks @jpfairbanks for the suggestion.

The script used to set things up for travis builds Thrift with a fixed set of options and language support. I think in most setups, people may want to do that on their own and add languages they want to work with. My thought has been to eventually add the Julia plugin to apache/thrift (see #2).

In any case, it is definitely a good idea to use BinDeps to detect and build Thrift if necessary (with a default set of options). Will be happy to accept a PR if you have something going.

jpfairbanks commented 7 years ago

Do you want this to use your fork of thrift? I used the latest release with your compiler plugin as described in the readme of this project, but then the thrift executable did not pick up the -gen jl option.

It also looks like https://github.com/JuliaLang/BinDeps.jl/issues/213 will be helpful because we need the bison executable to build thrift and the thrift executable rather than as a shared library.

tanmaykm commented 7 years ago

I was using the fork just for convenience and to avoid surprises. Using the latest release is better. The only change in my fork was to t_jl_generator.cc.

You seem to have found the solution in #21. :+1: