-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
dylib linking issue #164
Comments
Hi, as far as I can see it doesn't fail on stable rust, so maybe you can use that as a workaround for now. But it fails on beta so I'm definitely looking into it. |
Oh I see, thank you for your answer. Unfortunately my project uses nightly. |
No worries, I have already fixed this locally, I’ll make a release in a couple of hours |
Can you please test v0.46.0? |
I tested with 0.46.0 and it works on the minimal example and it now links in my project too. However I have another strange issue. When I load my compiled plugin (the I'll try to make a minimal project to reproduce the issue but it's hard since my project has a lot of interdependencies. |
Can you post the full list of the undefined imports as given by Generally it's strange, the |
Yes that's what I thought. Here's
And here's
|
It looks like the problem you're having is not only related to to opencv crate, e.g. you have |
After further digging, it seems related to this issue: rust-lang/rust#67070. |
Hello,
I'm having trouble building a
dylib
that depends on theopencv
crate. Until now I used it in my project and it worked fine but I need to make one of my crate that depends on opencv adylib
and it won't link anymore.I made a minimal example that reproduces the issue available here.
Operating system: Ubuntu 20.04
OpenCV installation: via apt:
sudo apt install libopencv-dev
Version: 4.2.0
rustc version: 1.47.0-nightly (7e6d6e5f5 2020-08-16)
Build command output:
The text was updated successfully, but these errors were encountered: