fixed build errors
This commit is contained in:
parent
cac4fe8ad2
commit
a43f3d7b8d
2 changed files with 5 additions and 4 deletions
|
@ -63,9 +63,9 @@ pub fn build(b: *std.Build) void {
|
|||
exe.root_module.addImport("gst", gobject.module("gst1"));
|
||||
exe.root_module.addImport("gstapp", gobject.module("gstapp1"));
|
||||
|
||||
// exe.addIncludePath(.{ .cwd_relative = "/usr/include/hailo" });
|
||||
// exe.addLibraryPath(.{ .cwd_relative = "/home/nixolas/Documents/hailort/build/hailort/libhailort/src"});
|
||||
// exe.linkSystemLibrary("hailort");
|
||||
exe.addIncludePath(.{ .cwd_relative = "/usr/include/hailo" });
|
||||
exe.addLibraryPath(.{ .cwd_relative = "/home/nixolas/Documents/hailort/build/hailort/libhailort/src"});
|
||||
exe.linkSystemLibrary("hailort");
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -129,7 +129,8 @@ pub fn main() !void {
|
|||
const sample = sink.pullSample() 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 });
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue