Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Please add Mac Os X binding #2

Open
desertkun opened this issue Sep 21, 2016 · 6 comments
Open

Please add Mac Os X binding #2

desertkun opened this issue Sep 21, 2016 · 6 comments

Comments

@desertkun
Copy link

Or help with instructions how to build it.

I guess, first of all, I need to build libzmq.dylib and libjzmq.dylib?

@lukepalmer
Copy link
Owner

This should be possible to do by adding an OS X section to the .travis.yml build.

How much interest is out there for this? Could be done but takes a bit of trial and error with travis.

@desertkun
Copy link
Author

So what I tried is essentially to build libzmq, then build jzmq, so I packed these dylib files into a zeromq-native.zip, uploaded it onto my server. Also, added this section:

<execution>
    <id>MacOsX-x86_64</id>
    <phase>process-resources</phase>
    <goals>
        <goal>wget</goal>
    </goals>
    <configuration>
        <skipCache>true</skipCache>
        <overwrite>true</overwrite>
        <url>https://... my binary server ... /zeromq-native.zip</url>
        <unpack>true</unpack>
        <outputDirectory>${libdir}/NATIVE/x86_64/Darwin</outputDirectory>
    </configuration>
</execution>

But yet tests are failing with no jzmq in java.library.path :(

@lukepalmer
Copy link
Owner

With the currently published version of the jzmq your entire library has to be packed up as a monolithic libjzmq.dylib (without a dependency on libzmq).

This makes the build much harder and I've submitted zeromq/jzmq/pull/423 to solve, which you can feel free to comment on if you think it'd be useful.

@desertkun
Copy link
Author

I've cloned your fork and configured it using --enable-self-contained, but unfortunately ended up with compilation errors (like ld: unknown option: -Bstatic).

So is the issue can be solved using your repo (and some instructions) or it is to solve?

@lukepalmer
Copy link
Owner

Ok that's probably compiler differences on OS X. The self-contained thing
is a pretty poor solution anyways and as you've noticed requires a lot of
monkeying.

The maintainers of jzmq are not particularly active, so let me publish an
up-to-date version with that PR included and hope we can get it merged
later.

On Wed, Sep 21, 2016, 18:55 Alex Siryi [email protected] wrote:

I've cloned your fork and configured it using --enable-self-contained,
but unfortunately ended up with compilation errors (like ld: unknown
option: -Bstatic).

So is the issue can be solved using your repo (and some instructions) or
it is to solve?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AExJAW_W8SLqYFQgayBOEgCTcqCrB8e4ks5qsbXsgaJpZM4KDVst
.

@desertkun
Copy link
Author

Thank you very much in advance.

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

No branches or pull requests

2 participants