Skip to content
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

Allow build on Windows when Vcpkg exists but SDL is installed manually #61

Open
wilt00 opened this issue May 5, 2022 · 0 comments
Open

Comments

@wilt00
Copy link

wilt00 commented May 5, 2022

When building on Windows, I get this error:

$ zig build --verbose
cp C:\dev\vcpkg\installed\x64-windows-static\bin\SDL2.dll C:\Users\WT\code\ziggame\zig-out\bin\SDL2.dll error: FileNotFound
C:\Users\WT\scoop\apps\zig\current\lib\std\os\windows.zig:123:35: 0x7ff7e960c8e1 in std.os.windows.OpenFile (build.obj)
        .OBJECT_NAME_COLLISION => return error.PathAlreadyExists,
                                  ^
...

error: the following build command failed with exit code 1:
C:\Users\WT\code\ziggame\zig-cache\o\170af392d93d348114ce947d1eeae7d0\build.exe C:\Users\WT\scoop\apps\zig\current\zig.exe C:\Users\WT\code\ziggame C:\Users\WT\code\ziggame\zig-cache C:\Users\WT\AppData\Local\zig --verbose

I have Vcpkg installed, but I don't want to use it for this project. Here, SDK.zig sees that I have a Vcpkg directory configured, and then tries to copy a nonexistent SDL2.dll from that directory, which crashes the build. If I comment that block out, everything works great.

Would it make sense to add a key to .build_config/sdl.json disabling vcpkg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant