-
Notifications
You must be signed in to change notification settings - Fork 25
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
Windows Support #6
Comments
I couldn't get it to build on MacOS (Ventura 13.5, Intel Mac using Zig 0.11.0 in a Nix shell) either with the same error. I did some digging and I believe the problem lies not within the ffmpeg tree, nor the build.zig file here. I believe it originates from the nasm dependency in build.zig.zon. It points to a fork by @andrewrk which may perhaps only build successfully on Linux? The error, I did try manually messing with the compiler.h file in the zig cache (probably a very bad idea, having watched Andrew's talk on building from source :p, but hey at least I'm reporting the original issue amirite?) and that did seem to make the build process move beyond that point, but it resulted in another error down the line which I won't clutter this issue with. |
For the record ffmpeg did build fine on Debian 12 x86_64 with Zig 0.11.0 and the |
@sqrt-minus-one I've opened a PR (allyourcodebase/nasm#2) to fix @andrewrk 's nasm fork build on MacOS. I probably have to do something similar for Windows. Would you mind telling me how you set up your environment on Windows to try to build this? I will try to replicate the build and the error and try to fix it. As I suspected it was the failure to build nasm that caused the build error in ffmpeg. Once I substituted my own fork of nasm into the |
@michaelshmitty Hello, thanks for looking into it! :) I'm on Windows 10 and was getting After using this nasm fork of yours in ffmpeg's Here is my
|
@MyNameIsTrez Hi, no problem. Haven't look at this in a while because I haven't gotten any upstream reaction yet. I have not tried compiling on Windows, so no help there from me I'm afraid. All I did was add some more logic to what build flags get set depending on the environment to make it work on macos, because the original zon file assumed Linux. Maybe you can try the same process for Windows? |
Current status of windows support:
and many more errors. the build.zig script needs work. |
Hey! I'm trying to build the project on windows but it fails with the following error
I'm using the zig 0.11, specifically
zig-windows-x86_64-0.11.0-dev.3910+689f3163a.zip
(the latest as of the time of writing).The text was updated successfully, but these errors were encountered: