Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eleveldb dependency doesn't build .so #801

Closed
marianoguerra opened this issue Sep 13, 2015 · 3 comments
Closed

eleveldb dependency doesn't build .so #801

marianoguerra opened this issue Sep 13, 2015 · 3 comments

Comments

@marianoguerra
Copy link
Contributor

run:

rebar3 new release myrel1
cd myrel1

add dep:

{eleveldb, ".*", {git, "git://github.com/basho/eleveldb.git", {tag, "2.1.3"}}}

run:

rebar3 compile
find -name eleveldb.so

should return:

_build/default/lib/eleveldb/priv/eleveldb.so

but it's not there.

if I do:

cd _build/default/lib/eleveldb
make

then it's created

@tsloughter
Copy link
Collaborator

Right, eleveldb is not configured to build with rebar3. So you need to use overrides:

{overrides,
 [{override, eleveldb,
   [
     {artifacts, ["priv/eleveldb.so"]},
     {pre_hooks, [{compile, "c_src/build_deps.sh get-deps"},
                  {compile, "c_src/build_deps.sh"}]},

     {post_hooks, [{clean, "c_src/build_deps.sh clean"}]},

     {plugins, [pc]},

     {provider_hooks, [{post,
                         [{compile, {pc, compile}},
                          {clean, {pc, clean}}
                         ]
                       }]
     }
   ]
  }
 ]}.

@marianoguerra
Copy link
Contributor Author

great, you can close it then. Maybe should be useful to have a section in the docs with gotchas and specific projects that require some workarounds?

is there anything I can propose to the eleveldb guys to make this easier for rebar3?

@tsloughter
Copy link
Collaborator

Yea, I probably need to start a page of projects like this.

You could comment here basho/eleveldb#135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants