diff --git a/build.zig b/build.zig index 5d7e6e0..134ee70 100644 --- a/build.zig +++ b/build.zig @@ -45,13 +45,15 @@ pub fn build(b: *std.Build) void { exe.addIncludePath(.{ .cwd_relative = b.fmt("{s}/include/gstreamer-1.0/gst", .{gst_dev_path.?}) }); // it won't compile without them exe.addIncludePath(.{ .cwd_relative = b.fmt("{s}/include/glib-2.0", .{glib_dev_path.?}) }); exe.addIncludePath(.{ .cwd_relative = b.fmt("{s}/lib/glib-2.0/include", .{glib_path.?}) }); - exe.addIncludePath(.{ .cwd_relative = "lib/hailo" }); + + exe.addIncludePath(.{ .cwd_relative = "/usr/include/hailo" }); + exe.addLibraryPath(.{ .cwd_relative = "/usr/lib"}); + exe.linkSystemLibrary("hailort"); exe.linkSystemLibrary("gstreamer-1.0"); exe.linkSystemLibrary("glib-2.0"); exe.linkSystemLibrary("gobject-2.0"); - exe.linkSystemLibrary("hailo"); // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default diff --git a/src/main.zig b/src/main.zig index d67a869..2d49c88 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,7 +1,7 @@ const std = @import("std"); const hlo = @cImport({ - @cInclude("hlort.h"); + @cInclude("hailort.h"); }); const Allocator = std.mem.Allocator;