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

Using on MacOS #37

Closed
nospam2k opened this issue Jan 23, 2019 · 2 comments
Closed

Using on MacOS #37

nospam2k opened this issue Jan 23, 2019 · 2 comments

Comments

@nospam2k
Copy link

I saw the Add Mac support was addressed but what is the best way to create a library? I tried running the compile_native.sh and setting target and base dir but it's looking for many libraries. I'd appreciate any help in creating a library.

@hypfvieh
Copy link
Owner

I don't understand the issue...

If there is a suitable binary version for your OS then you can use the binary version of libunix-java which is already part of dbus-java.

In the case you don't want to use the provided binary version or there is no suitable version for you, you have to compile it from source.

Running the 'compile_native.sh' will try to compile the C source code for the libunix-java shared library, which will of course need external libaries/tools/headers as dependencies to be compiled. You have to provide those dependency, otherwise the binary cannot be build.

You need a JDK (at least JDK 1.8), and the Gnu Compiler (GCC, ld) and JAVA_HOME environment variable should be pointing to the JDK 1.8 directory.

@nospam2k
Copy link
Author

Ok, thx. I can't get it working. I'll use another approach. Thx.

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