-
Notifications
You must be signed in to change notification settings - Fork 110
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
z3-sys fails to build on Windows? #87
Comments
Thanks for filing an issue. I have to admit that I'm not super familiar with either windows or cmake. I basically have just done enough to get it building in CI, and that pushed me to the limits of my windows/cmake knowledge. I do see an "Access is denied." message in there, maybe it is a directory permissions thing? If you or anyone else can help resolve this, that would be very appreciated! |
I don't even get this far. Here's my error, also while trying to do a static build: Build error
This is while running it in the x64 Native Tools Command Prompt for VS 2019, so
I believe this is because I have MSYS2 installed and it's using that version of cmake. I will uninstall it and then see what happens. |
I uninstalled MSYS2 and installed cmake from chocolatey; got significantly further, ending in the following error:
Full build output
Not sure why it's looking for clang instead of using MSVC. Upon looking at the github actions workflow in this repo it seems clang is required though, so I'll install it then try again. |
After installing llvm from chocolatey the build now succeeds! Unfortunately was not able to reproduce the OP's issue; would be nice to have the build dependencies documented somewhere, or linked to from the project's or package's README. |
z3-sys uses bindgen in the build process to re-generate the ffi, and bindgen depends on libclang. Imo bindgen shouldn't be part of the regular build process, the dependency hell that is unleashed on consuming crates is horrible :| |
Hey there! I'm trying to play around with this crate on Windows, and z3-sys is failing to build when I try to do a static build. I'm super new to this and I don't really understand the build errors. Does anyone have any idea what I can do to get this working?
Error output
The text was updated successfully, but these errors were encountered: