awtfdb icon indicating copy to clipboard operation
awtfdb copied to clipboard

doesnt cross compile for windows

Open lun-4 opened this issue 4 years ago • 4 comments

  • [ ] use argsWithAllocator rather than args

lun-4 avatar Apr 03 '22 00:04 lun-4

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

lun-4 avatar May 15 '22 21:05 lun-4

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 avatar Nov 04 '22 03:11 lun-4

also required: https://github.com/lun-4/libmagic.zig/issues/1

lun-4 avatar Nov 05 '22 21:11 lun-4

Same issue

Rajala1404 avatar Dec 01 '23 23:12 Rajala1404