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

Including native libraries #16

Open
GeYebo opened this issue Feb 20, 2013 · 1 comment
Open

Including native libraries #16

GeYebo opened this issue Feb 20, 2013 · 1 comment

Comments

@GeYebo
Copy link

GeYebo commented Feb 20, 2013

How does one include native libraries using sbt-onejar?

@jrmcauliffe
Copy link

I had the same issue. You can add to the mappings that are pulled into jar creation in your build.sbt with something like (for opencv on x64 linux)

mappings in oneJar <+= baseDirectory map { b => (b / "binlib/linux64/libopencv_java246.so") -> "binlib/linux64/libopencv_java246.so" }

one-jar unpacks native libs from binlib/platform but also checks the root binlib directory as well.

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