-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Building on mac os issue #37
Comments
This is because libjuice requires libnettle as dependency. It should often be present as GnuTLS crypto backend, but apparently not in your case (I guess for you GnuTLS is linked against gcrypt instead). You have a choice here: you need either to install libnettle, or to switch the TLS backend to OpenSSL by changing the cmake command to |
Thanks for your feedback, so I looked into it and I actually do have gnu tls installed including nettle, see this snippet of output from cmake:
I checked and both libnettle.dylib and libgnutls.dylib are at those locations. Is it expecting a different version? I also tried with open ssl but then ran into this issue:
|
Oh OK, path MTU discovery is only available on Linux, it needs to be disabled otherwise. The missing header for libnettle is weird then, it should work fine since you seem to have everything installed. Do you have the header file |
Yes I have that header file. with open ssl I'm still seeing this issue after pulling your latest changes.
|
OK, then it means you need to add Hum, did you do |
Ah no I didn't update submodules, now I get
with open ssl |
regarding /usr/local/include, I do see it listed when I run |
OK, the If |
Sorry I've been afk for a few days. I ran the clang command, |
That's puzzling. And what if you specify it manually when you run
|
I get the same thing complaining about |
I've just noticed, the nettle directory is a symlink
however, then I tried
but got the same error when I ran make |
That's a good point about the symlink, it could cause the problem somehow, however
|
Ah thanks sorry about that, I tried putting the cppflags at the beginning, still no luck |
Hum, I'm a bit stuck here... Did you have more luck with OpenSSL? |
I've set up a travis build running on macos. I've got to the same point, maybe it will help? can you see this? https://travis-ci.org/willm/libdatachannel/builds/657518778 |
interestingly, if I make a file #include <nettle/hmac.h>
int main() {} then run |
Yes I have acces to the travis build. Thanks, I'll try to investigate a bit. |
I didn't find the actual reason why |
I'm merging the PR, please re-open the issue if you encounter another compilation issue on your side. |
Hi,
I thought I'd start a separate issue for building on mac os. It obviously seems to be a problem with building the juice dependency, but I'm unsure of how to resolve it. I've just noticed that this actually seems to be written by you as well! cmake seems to run without errors, but when I run the generated makefile, I get:
The text was updated successfully, but these errors were encountered: