fixed system lib positions

This commit is contained in:
Nicholas Young 2024-10-11 17:00:19 -07:00
parent 7fd740b8fc
commit 170ace6fa3
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -1,7 +1,7 @@
const std = @import("std");
const hlo = @cImport({
@cInclude("hlort.h");
@cInclude("hailort.h");
});
const Allocator = std.mem.Allocator;