fixed build errors

This commit is contained in:
Nicholas Young 2024-10-25 18:57:39 -07:00
parent cac4fe8ad2
commit a43f3d7b8d
2 changed files with 5 additions and 4 deletions

View file

@ -63,9 +63,9 @@ pub fn build(b: *std.Build) void {
exe.root_module.addImport("gst", gobject.module("gst1")); exe.root_module.addImport("gst", gobject.module("gst1"));
exe.root_module.addImport("gstapp", gobject.module("gstapp1")); exe.root_module.addImport("gstapp", gobject.module("gstapp1"));
// exe.addIncludePath(.{ .cwd_relative = "/usr/include/hailo" }); exe.addIncludePath(.{ .cwd_relative = "/usr/include/hailo" });
// exe.addLibraryPath(.{ .cwd_relative = "/home/nixolas/Documents/hailort/build/hailort/libhailort/src"}); exe.addLibraryPath(.{ .cwd_relative = "/home/nixolas/Documents/hailort/build/hailort/libhailort/src"});
// exe.linkSystemLibrary("hailort"); exe.linkSystemLibrary("hailort");

View file

@ -129,7 +129,8 @@ pub fn main() !void {
const sample = sink.pullSample() orelse unreachable; const sample = sink.pullSample() orelse unreachable;
const buffer: *gst.Buffer = sample.getBuffer() orelse unreachable; const buffer: *gst.Buffer = sample.getBuffer() orelse unreachable;
buffer.extract(0, input_data, input_frame_size); const buf_ret = buffer.extract(0, @ptrCast(input_data), input_frame_size);
std.debug.print("Buffer extract returned: '{d}'\n", .{ buf_ret });