fixed lib import errors

This commit is contained in:
Nickiel 2024-10-31 17:50:50 -07:00
parent e4cd8bd855
commit 6bfd3c9c3f
2 changed files with 11 additions and 8 deletions

View file

@ -28,7 +28,9 @@ pub fn build(b: *std.Build) void {
exe.linkSystemLibrary("c"); exe.linkSystemLibrary("c");
exe.addIncludePath(.{ .cwd_relative = "/usr/include/hailo" }); exe.addIncludePath(.{ .cwd_relative = "/usr/include/hailo" });
// Gstreamer makes it unhappy
// exe.linkSystemLibrary("gstreamer-1.0"); // exe.linkSystemLibrary("gstreamer-1.0");
// exe.linkSystemLibrary("gstapp-1.0"); // exe.linkSystemLibrary("gstapp-1.0");
// exe.linkSystemLibrary("glib-2.0"); // exe.linkSystemLibrary("glib-2.0");
// exe.linkSystemLibrary("gstvideotestsrc"); // exe.linkSystemLibrary("gstvideotestsrc");
@ -39,9 +41,10 @@ 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.addLibraryPath( .{ .cwd_relative = "/lib/aarch64-linux-gnu" }); // glib // exe.addLibraryPath( .{ .cwd_relative = "/lib/aarch64-linux-gnu" }); // glib
exe.addLibraryPath( .{ .cwd_relative = "/lib/aarch64-linux-gnu/gstreamer-1.0" }); // gstreamer // exe.addLibraryPath( .{ .cwd_relative = "/lib/aarch64-linux-gnu/gstreamer-1.0" }); // gstreamer
exe.addLibraryPath( .{ .cwd_relative = "/usr/lib" }); // hailort exe.addLibraryPath( .{ .cwd_relative = "/usr/lib" }); // hailort
exe.addLibraryPath( .{ .cwd_relative = "/lib/aarch64-linux-gnu/" });
// 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

@ -54,11 +54,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1729665710, "lastModified": 1729880355,
"narHash": "sha256-AlcmCXJZPIlO5dmFzV3V2XF6x/OpNWUV8Y/FMPGd8Z4=", "narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2768c7d042a37de65bb1b5b3268fc987e534c49d", "rev": "18536bf04cd71abd345f9579158841376fdd0c5a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -128,11 +128,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1729858295, "lastModified": 1730334608,
"narHash": "sha256-Ia6PEIsGiaP3d4ewuJ3QR46pd0b3qyt2/RM2yUZZtL8=", "narHash": "sha256-NT/xmtGvwkiFfDC+FdIThG387OakQS0hnnT3etJbbNE=",
"owner": "mitchellh", "owner": "mitchellh",
"repo": "zig-overlay", "repo": "zig-overlay",
"rev": "71a0618a10c2fb8d6c60b3498bcdb5dc4573e403", "rev": "0802240ae001576ebf9cf0bbc003a8b1291c910b",
"type": "github" "type": "github"
}, },
"original": { "original": {