-
Notifications
You must be signed in to change notification settings - Fork 95
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
Is it possible to link d2d1 statically on Windows? #443
Comments
It's getting that DLL from the system, it's not bundled with the executable. Is there a specific problem you're trying to solve here? |
@raphlinus , I built my app(based on druid) on Windows 10 with "-C target-feature=+crt-static". I wonder if linking d2d1 statically will solve the problem. |
I don't understand all subtleties in linking and packaging. To be honest, when testing on Windows 7 I always build on Windows 7, but I definitely see the value in being able to distribute a binary that can run across multiple versions. From what I do understand, it seems unlikely that statically linking would solve the problem. I can't imagine that a version of d2d1 for Windows 10 would work on Windows 7, and can imagine other problems. |
I made a mistake, there IS a d2d1.dll shipped with Windows 7 system.
I may need to open an issue for druid. |
Hmm, odd for that function to be failing (it's D2D1CreateFactory - here's where it's being called). Does this crash if compiled on the Windows 7 machine, or only when compiled on Windows 10 and the executable is run on Windows 7. The error code is E_NOINTERFACE, which is odd. One thing to try is removing the |
My Windows 7 box doesn't have a good network, I can't setup the rust build tools there. |
Does your Windows 7 box have the platform update applied? https://www.microsoft.com/en-ca/download/details.aspx?id=36805 |
@jrmuizel , the update fixes the problem. |
No, we've chosen platform update as the minimum compatibility level for piet and druid. Being compatible with earlier versions would require significant compromise, which we do not think is worth it given that it is pretty far out of date. I think this issue can be closed? |
This should be documented. |
I want to build a single file app with druid on Windows.
But druid depends on direct2d, d2d1.dll is dynamically linked.
The text was updated successfully, but these errors were encountered: