~mil/mepo-tickets#64: 
The gfxPrimitives C header import failed on Archlinux

Hello,

The Mepo project supports the Arch Linux AUR Distribution Packages : https://aur.archlinux.org/packages/mepo

When I compile it on an aarch64, I have this error:

/usr/bin/zig  build-exe  /home/alarm/build/mepo/src/main.zig -lc -lSDL2 -lSDL2_gfx -lSDL2_image -lSDL2_ttf -lcurl --cache-dir /home/alarm/build/mepo/zig-cache --global-cache-dir /home/alarm/.cache/zig --name mepo --enable-cache
/home/alarm/build/mepo/src/sdlshim.zig:1:20: error: C import failed
pub usingnamespace @cImport({

I success to resolve it with this modification:

-    @cInclude("SDL2_gfxPrimitives.h");
+    @cInclude("SDL2/SDL2_gfxPrimitives.h");

So I report to you this issue and my self solution

Status
RESOLVED FIXED
Submitter
~adjivas
Assigned to
No-one
Submitted
1 year, 6 months ago
Updated
1 year, 2 months ago
Labels
packaging pending-release release_1.2

~mil 1 year, 6 months ago

Thanks for reporting, corrected on master - will be included as default for next release.

~mil REPORTED FIXED 1 year, 2 months ago

Fixed in 1.2.0 release.

Register here or Log in to comment, or comment via email.