GithubHelp home page GithubHelp logo

native-deps's Introduction

Usage

In order for native-deps to do the right thing you need to make sure to package your jar properly. Create a folder called native for the native libraries. Also create folder lib for any normal jars that your dependency uses. For example the LWJGL 2.2.2 library was packaged for Leiningen like so:

/lib
/lib/*.jar

/native/
/native/macosx/x86/*.dynlib
/native/macosx/x86_64/*.dynlib
/native/windows/x86/*.dll
/native/windows/x86_64/*.dll
/native/linux/x86/*.so
/native/linux/x86_64/*.so
/native/solaris/x86/*.so
/native/solaris/x86_64/*.so

The naming convention is important.

Platforms:
---------------------
Mac OS X -> macosx
Windows  -> windows
Linux    -> linux
SunOS"   -> solaris

Architectures
--------------------
amd64    -> x86_64
x86_64   -> x86_64
x86      -> x86
i386     -> x86
arm      -> arm
sparc    -> sparc

You should then create your jar with the following command:

jar -cMf foo.jar native lib

Your jar is ready to push to Clojars. You can read more about that process here

native-deps's People

Contributors

ianp avatar sritchie avatar swannodette avatar ztellman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sritchie

native-deps's Issues

default-repos does not exist.

I am running leiningen 1.3.0 and running Windows 7. I added native-deps 1.0.3 as a dev-dependency.
When I try to run lein native-deps. I get the following error:
Exception in thread "main" java.lang.IllegalAccessError: default-repos does not exist (native_deps.clj:1)
It seems like the plugin can't see the rest of the leiningen namespace. Maybe this is a leiningen problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.