-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Build error "cannot link directly with dylib/framework" on MacOS Catalina #13
Comments
thanks for the report - haven't dug into this yet but it looks like the same issue as google/s2geometry#87 - presumably need to link against brew openssl instead of system one Will also work on updating the binary releases |
I uploaded a new macOS binary here: https://github.com/protomaps/OSMExpress/releases/tag/0.0.4 I suspect this problem can be isolated by getting s2geometry to compile. It's difficult for me to reproduce though as I'm on MacPorts instead of Homebrew. Can you try building https://github.com/google/s2geometry - It should be cloned already in vendor/s2geometry ? I suspect you may need to pass some configuration flags like this https://stackoverflow.com/a/16249265 to get S2's cmake to find the brew openSSL |
Sorry about the delay in responding. Ultimately I was unsuccessful in getting a build on Catalina. The s2geometry issue you linked states that after a Then I tried building s2geometry following
which fails with
Which is expected since the README told me to install gtest. As far as I can tell there's no brew package for gtest so that's where I stopped rather than building from source and further complicating install. I was also unable to run the pre-built binary you uploaded as 0.0.4, which failed with the error:
I found this stackoverflow which suggests using |
Instead of continuing with MacOS install woes I wrote a minimal Dockerfile based on Ubuntu 18.04. This image is 74mb in size so its definitely bigger than the executable, but its not unwieldy. If this is useful, I'd be happy to open a PR to add it to the repo. |
@CloudNiner when building S2 can you use Thanks for the docker file example - can you verify that the Docker image works correctly on a large file e.g. |
How big is the expanded planet.osmx? My computer only has a 256gb drive. |
Ultimately I think it's a shame that S2 depends on OpenSSL just for its Bignum class. Maybe it won't be too difficult to port it to a standalone library. |
It's about 600 GB. |
:( I don't think I can run on the planet file then.
That fails with
|
PS I commented on the closed s2 issue you linked originally since it looks like we've gone full circle |
@CloudNiner If the Dockerfile is working well for your use case, can you open a PR so I can add it to the repo? |
@CloudNiner thanks. I added (experimental) next to Docker in the readme as I don't have any production experience running osmx inside it; two concerns pop out immediately
If you have success using it in Docker can you post it here? |
Those are great points, thanks for the heads up. I only got as far as generating an osmx file last night, which worked fine. It may be a bit until I have time to go further with this but I'll report back when able. Thanks for all your quick responses! |
I followed the install instructions for MacOS on Catalina. I have openssl installed via brew and also ran
xcode-select --install
.When I run:
I get the error:
The up to date version of openssl on Catalina is
openssl@1.1 1.1.1d
, so I also tried using the include path for that version above, e.g.:and got the same error. I tried omitting the openssl include dir option entirely, and also got the same error.
The text was updated successfully, but these errors were encountered: