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

doesnt cross compile for windows #2

Open
1 task
lun-4 opened this issue Apr 3, 2022 · 4 comments
Open
1 task

doesnt cross compile for windows #2

lun-4 opened this issue Apr 3, 2022 · 4 comments

Comments

@lun-4
Copy link
Owner

lun-4 commented Apr 3, 2022

  • use argsWithAllocator rather than args
@lun-4
Copy link
Owner Author

lun-4 commented May 15, 2022

after a while this is much more than using argsWithAllocator, especially because i'm requiring libz, libmagic, and graphicsmagick.

@lun-4
Copy link
Owner Author

lun-4 commented Nov 4, 2022

current errors


$ zig build -Dtarget=x86_64-windows-gnu
/home/luna/git/awtfdb/src/include_main.zig:514:11: error: C import failed
const c = @cImport({
          ^~~~~~~~
referenced by:
    MimeCookie: /home/luna/git/awtfdb/src/include_main.zig:519:13
    MimeCookie: /home/luna/git/awtfdb/src/include_main.zig:518:20
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

/usr/lib/zig/std/os.zig:149:32: error: root struct of file 'c' has no member named 'empty_sigset'
pub const empty_sigset = system.empty_sigset;
                         ~~~~~~^~~~~~~~~~~~~
/usr/lib/zig/std/process.zig:751:13: error: In Windows, use initWithAllocator instead.
            @compileError("In Windows, use initWithAllocator instead.");
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: wrapper-awtfdb...

@lun-4
Copy link
Owner Author

lun-4 commented Nov 5, 2022

also required: lun-4/libmagic.zig#1

@Rajala1404
Copy link

Same issue

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

2 participants