add library live555
This commit is contained in:
		
							
								
								
									
										9
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -7,10 +7,11 @@ Hi3516CV500_SDK/
 | 
			
		||||
toolchains/
 | 
			
		||||
arm-himix200-linux/
 | 
			
		||||
build/
 | 
			
		||||
Rouring/
 | 
			
		||||
Rouring-Vision/
 | 
			
		||||
smart_trash_bin/
 | 
			
		||||
nnie-yolov3-demo/
 | 
			
		||||
Rouring
 | 
			
		||||
Rouring-Vision
 | 
			
		||||
smart_trash_bin
 | 
			
		||||
nnie-yolov3-demo
 | 
			
		||||
dtof_sensor_driver
 | 
			
		||||
 | 
			
		||||
# MacOS Cache
 | 
			
		||||
.DS_Store
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										511
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										511
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							@@ -2,66 +2,28 @@
 | 
			
		||||
  "nodes": {
 | 
			
		||||
    "cachix": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "devenv": "devenv_2",
 | 
			
		||||
        "devenv": [
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ],
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "flake-compat"
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ],
 | 
			
		||||
        "git-hooks": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "pre-commit-hooks"
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
        "nixpkgs": "nixpkgs"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1726520618,
 | 
			
		||||
        "narHash": "sha256-jOsaBmJ/EtX5t/vbylCdS7pWYcKGmWOKg4QKUzKr6dA=",
 | 
			
		||||
        "lastModified": 1728672398,
 | 
			
		||||
        "narHash": "sha256-KxuGSoVUFnQLB2ZcYODW7AVPAh9JqRlD5BrfsC/Q4qs=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "cachix",
 | 
			
		||||
        "rev": "695525f9086542dfb09fde0871dbf4174abbf634",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "cachix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "cachix_2": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "devenv": "devenv_3",
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "flake-compat"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "pre-commit-hooks": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "pre-commit-hooks"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1712055811,
 | 
			
		||||
        "narHash": "sha256-7FcfMm5A/f02yyzuavJe06zLa9hcMHsagE28ADcmQvk=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "cachix",
 | 
			
		||||
        "rev": "02e38da89851ec7fec3356a5c04bc8349cae0e30",
 | 
			
		||||
        "rev": "aac51f698309fd0f381149214b7eee213c66ef0a",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "ref": "latest",
 | 
			
		||||
        "repo": "cachix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
@@ -69,113 +31,28 @@
 | 
			
		||||
    "devenv": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "cachix": "cachix",
 | 
			
		||||
        "flake-compat": "flake-compat_2",
 | 
			
		||||
        "nix": "nix_3",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "pre-commit-hooks": "pre-commit-hooks_2"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1728321774,
 | 
			
		||||
        "narHash": "sha256-czYelxR5FxTFRDwSb+9XV4XO7hA3uGjmJkVBQNt2U/E=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "devenv",
 | 
			
		||||
        "rev": "96918383d250cacc60962af0fb9b45ac10d28f00",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "devenv",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "devenv_2": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "cachix": "cachix_2",
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "flake-compat"
 | 
			
		||||
        ],
 | 
			
		||||
        "nix": "nix_2",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "pre-commit-hooks": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "git-hooks"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1723156315,
 | 
			
		||||
        "narHash": "sha256-0JrfahRMJ37Rf1i0iOOn+8Z4CLvbcGNwa2ChOAVrp/8=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "devenv",
 | 
			
		||||
        "rev": "ff5eb4f2accbcda963af67f1a1159e3f6c7f5f91",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "devenv",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "devenv_3": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "flake-compat"
 | 
			
		||||
        ],
 | 
			
		||||
        "flake-compat": "flake-compat",
 | 
			
		||||
        "git-hooks": "git-hooks",
 | 
			
		||||
        "nix": "nix",
 | 
			
		||||
        "nixpkgs": "nixpkgs",
 | 
			
		||||
        "poetry2nix": "poetry2nix",
 | 
			
		||||
        "pre-commit-hooks": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "pre-commit-hooks"
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1708704632,
 | 
			
		||||
        "narHash": "sha256-w+dOIW60FKMaHI1q5714CSibk99JfYxm0CzTinYWr+Q=",
 | 
			
		||||
        "lastModified": 1734605856,
 | 
			
		||||
        "narHash": "sha256-RfNqLS5f9s3aiRZIOjSbM8Vz7x2dT/7zwJhyt9TLEmE=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "devenv",
 | 
			
		||||
        "rev": "2ee4450b0f4b95a1b90f2eb5ffea98b90e48c196",
 | 
			
		||||
        "rev": "f81cf7dc4cbfa46de11618af94e5983c5e600d8c",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "ref": "python-rewrite",
 | 
			
		||||
        "repo": "devenv",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "flake-compat": {
 | 
			
		||||
      "flake": false,
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1673956053,
 | 
			
		||||
        "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
 | 
			
		||||
        "owner": "edolstra",
 | 
			
		||||
        "repo": "flake-compat",
 | 
			
		||||
        "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "edolstra",
 | 
			
		||||
        "repo": "flake-compat",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "flake-compat_2": {
 | 
			
		||||
      "flake": false,
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1696426674,
 | 
			
		||||
@@ -191,7 +68,7 @@
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "flake-compat_3": {
 | 
			
		||||
    "flake-compat_2": {
 | 
			
		||||
      "flake": false,
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1696426674,
 | 
			
		||||
@@ -229,36 +106,31 @@
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "flake-utils": {
 | 
			
		||||
    "git-hooks": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "systems": "systems"
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ],
 | 
			
		||||
        "gitignore": "gitignore",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs-stable": [
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1689068808,
 | 
			
		||||
        "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
 | 
			
		||||
        "lastModified": 1730302582,
 | 
			
		||||
        "narHash": "sha256-W1MIJpADXQCgosJZT8qBYLRuZls2KSiKdpnTVdKBuvU=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "git-hooks.nix",
 | 
			
		||||
        "rev": "af8a16fe5c264f5e9e18bcee2859b40a656876cf",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "flake-utils_2": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1667395993,
 | 
			
		||||
        "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "git-hooks.nix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
@@ -266,7 +138,7 @@
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "pre-commit-hooks",
 | 
			
		||||
          "git-hooks",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
@@ -301,102 +173,22 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nix": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-compat": "flake-compat",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs-regression": "nixpkgs-regression"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1712911606,
 | 
			
		||||
        "narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=",
 | 
			
		||||
        "owner": "domenkozar",
 | 
			
		||||
        "repo": "nix",
 | 
			
		||||
        "rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "domenkozar",
 | 
			
		||||
        "ref": "devenv-2.21",
 | 
			
		||||
        "repo": "nix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nix-github-actions": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "poetry2nix",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1688870561,
 | 
			
		||||
        "narHash": "sha256-4UYkifnPEw1nAzqqPOTL2MvWtm3sNGw1UTYTalkTcGY=",
 | 
			
		||||
        "owner": "nix-community",
 | 
			
		||||
        "repo": "nix-github-actions",
 | 
			
		||||
        "rev": "165b1650b753316aa7f1787f3005a8d2da0f5301",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "nix-community",
 | 
			
		||||
        "repo": "nix-github-actions",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nix_2": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "flake-compat"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs-regression": "nixpkgs-regression_2"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1712911606,
 | 
			
		||||
        "narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=",
 | 
			
		||||
        "owner": "domenkozar",
 | 
			
		||||
        "repo": "nix",
 | 
			
		||||
        "rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "domenkozar",
 | 
			
		||||
        "ref": "devenv-2.21",
 | 
			
		||||
        "repo": "nix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nix_3": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "flake-compat"
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ],
 | 
			
		||||
        "flake-parts": "flake-parts",
 | 
			
		||||
        "libgit2": "libgit2",
 | 
			
		||||
        "nixpkgs": "nixpkgs_2",
 | 
			
		||||
        "nixpkgs-23-11": "nixpkgs-23-11",
 | 
			
		||||
        "nixpkgs-regression": "nixpkgs-regression_3",
 | 
			
		||||
        "pre-commit-hooks": "pre-commit-hooks"
 | 
			
		||||
        "nixpkgs-23-11": [
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs-regression": [
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ],
 | 
			
		||||
        "pre-commit-hooks": [
 | 
			
		||||
          "devenv"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1727438425,
 | 
			
		||||
@@ -415,49 +207,33 @@
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1692808169,
 | 
			
		||||
        "narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=",
 | 
			
		||||
        "lastModified": 1730531603,
 | 
			
		||||
        "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "9201b5ff357e781bf014d0330d18555695df7ba8",
 | 
			
		||||
        "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "ref": "nixpkgs-unstable",
 | 
			
		||||
        "ref": "nixos-unstable",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-23-11": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717159533,
 | 
			
		||||
        "narHash": "sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-python": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-compat": "flake-compat_3",
 | 
			
		||||
        "flake-compat": "flake-compat_2",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1722978926,
 | 
			
		||||
        "narHash": "sha256-sqOOEaKJJSUFBzag/cGeeXV491TrrVFY3DFBs1w20V8=",
 | 
			
		||||
        "lastModified": 1733319315,
 | 
			
		||||
        "narHash": "sha256-cFQBdRmtIZFVjr2P6NkaCOp7dddF93BC0CXBwFZFaN0=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "nixpkgs-python",
 | 
			
		||||
        "rev": "7c550bca7e6cf95898e32eb2173efe7ebb447460",
 | 
			
		||||
        "rev": "01263eeb28c09f143d59cd6b0b7c4cc8478efd48",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -466,70 +242,6 @@
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-regression": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1643052045,
 | 
			
		||||
        "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-regression_2": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1643052045,
 | 
			
		||||
        "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-regression_3": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1643052045,
 | 
			
		||||
        "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-stable": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1720386169,
 | 
			
		||||
        "narHash": "sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "194846768975b7ad2c4988bdb82572c00222c0d7",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "ref": "nixos-24.05",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs_2": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717432640,
 | 
			
		||||
@@ -548,11 +260,11 @@
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs_3": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1728018373,
 | 
			
		||||
        "narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
 | 
			
		||||
        "lastModified": 1734649271,
 | 
			
		||||
        "narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
 | 
			
		||||
        "rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -562,117 +274,12 @@
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "poetry2nix": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-utils": "flake-utils",
 | 
			
		||||
        "nix-github-actions": "nix-github-actions",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "cachix",
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1692876271,
 | 
			
		||||
        "narHash": "sha256-IXfZEkI0Mal5y1jr6IRWMqK8GW2/f28xJenZIPQqkY0=",
 | 
			
		||||
        "owner": "nix-community",
 | 
			
		||||
        "repo": "poetry2nix",
 | 
			
		||||
        "rev": "d5006be9c2c2417dafb2e2e5034d83fabd207ee3",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "nix-community",
 | 
			
		||||
        "repo": "poetry2nix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "pre-commit-hooks": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nix"
 | 
			
		||||
        ],
 | 
			
		||||
        "flake-utils": "flake-utils_2",
 | 
			
		||||
        "gitignore": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nix"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nix",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs-stable": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nix",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1712897695,
 | 
			
		||||
        "narHash": "sha256-nMirxrGteNAl9sWiOhoN5tIHyjBbVi5e2tgZUgZlK3Y=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "pre-commit-hooks.nix",
 | 
			
		||||
        "rev": "40e6053ecb65fcbf12863338a6dcefb3f55f1bf8",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "pre-commit-hooks.nix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "pre-commit-hooks_2": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-compat": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "flake-compat"
 | 
			
		||||
        ],
 | 
			
		||||
        "gitignore": "gitignore",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "devenv",
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs-stable": "nixpkgs-stable"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1726745158,
 | 
			
		||||
        "narHash": "sha256-D5AegvGoEjt4rkKedmxlSEmC+nNLMBPWFxvmYnVLhjk=",
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "pre-commit-hooks.nix",
 | 
			
		||||
        "rev": "4e743a6920eab45e8ba0fbe49dc459f1423a4b74",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "cachix",
 | 
			
		||||
        "repo": "pre-commit-hooks.nix",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "root": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "devenv": "devenv",
 | 
			
		||||
        "nixpkgs": "nixpkgs_3",
 | 
			
		||||
        "nixpkgs-python": "nixpkgs-python"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "systems": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1681028828,
 | 
			
		||||
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
 | 
			
		||||
        "owner": "nix-systems",
 | 
			
		||||
        "repo": "default",
 | 
			
		||||
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "nix-systems",
 | 
			
		||||
        "repo": "default",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "root": "root",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										46
									
								
								live555.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								live555.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,46 @@
 | 
			
		||||
package("live555")
 | 
			
		||||
set_homepage("http://www.live555.com")
 | 
			
		||||
 | 
			
		||||
set_urls("http://www.live555.com/liveMedia/public/live.$(version).tar.gz")
 | 
			
		||||
add_versions("2024.11.28", "a9af16f46d2f4c7ccdbfc4b617480503d27cccb46fa5abb7dfd8a25951b44cc3")
 | 
			
		||||
 | 
			
		||||
local make_scipt = [[
 | 
			
		||||
COMPILE_OPTS =		$(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DNO_OPENSSL=1 -DNO_STD_LIB=1
 | 
			
		||||
C =			c
 | 
			
		||||
C_COMPILER =		cc
 | 
			
		||||
C_FLAGS =		$(COMPILE_OPTS) $(CPPFLAGS) $(CFLAGS)
 | 
			
		||||
CPP =			cpp
 | 
			
		||||
CPLUSPLUS_COMPILER =	c++
 | 
			
		||||
CPLUSPLUS_FLAGS =	$(COMPILE_OPTS) -Wall -DBSD=1 $(CPPFLAGS) $(CXXFLAGS)
 | 
			
		||||
OBJ =			o
 | 
			
		||||
LINK =			c++ -o
 | 
			
		||||
LINK_OPTS =		-L. $(LDFLAGS)
 | 
			
		||||
CONSOLE_LINK_OPTS =	$(LINK_OPTS)
 | 
			
		||||
LIBRARY_LINK =		ar cr
 | 
			
		||||
LIBRARY_LINK_OPTS =	
 | 
			
		||||
LIB_SUFFIX =			a
 | 
			
		||||
LIBS_FOR_CONSOLE_APPLICATION =
 | 
			
		||||
LIBS_FOR_GUI_APPLICATION =
 | 
			
		||||
EXE =
 | 
			
		||||
]]
 | 
			
		||||
 | 
			
		||||
on_install(function(package)
 | 
			
		||||
  -- Create plat make script
 | 
			
		||||
  local script = io.open("config.cross", "w")
 | 
			
		||||
  if script then
 | 
			
		||||
    script:write(make_scipt)
 | 
			
		||||
    script:print("PREFIX =    %s", package:installdir())
 | 
			
		||||
    script:close()
 | 
			
		||||
  end
 | 
			
		||||
  -- Don't forget to append space at the end of line "LIBRARY_LINK"
 | 
			
		||||
  os.vrun("sed -i 's/ar cr/ar cr /g' config.cross")
 | 
			
		||||
 | 
			
		||||
  -- Generate makefile
 | 
			
		||||
  os.vrun("chmod +rw genMakefiles")
 | 
			
		||||
  os.vrun("sed -i 's/\\/bin\\/rm/rm/g' genMakefiles")
 | 
			
		||||
  os.vrun("./genMakefiles cross")
 | 
			
		||||
 | 
			
		||||
  -- Install
 | 
			
		||||
  os.vrun("make clean")
 | 
			
		||||
  import("package.tools.make").install(package)
 | 
			
		||||
end)
 | 
			
		||||
							
								
								
									
										49
									
								
								live555_local.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								live555_local.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,49 @@
 | 
			
		||||
package("live555")
 | 
			
		||||
-- set_homepage("http://www.live555.com")
 | 
			
		||||
--
 | 
			
		||||
-- set_urls("http://www.live555.com/liveMedia/public/live.$(version).tar.gz")
 | 
			
		||||
-- add_versions("2024.11.28", "a9af16f46d2f4c7ccdbfc4b617480503d27cccb46fa5abb7dfd8a25951b44cc3")
 | 
			
		||||
 | 
			
		||||
set_sourcedir(path.join(os.projectdir(), "Rouring/thirdparty/live555"))
 | 
			
		||||
 | 
			
		||||
local make_scipt = [[
 | 
			
		||||
COMPILE_OPTS =		$(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DNO_OPENSSL=1
 | 
			
		||||
C =			c
 | 
			
		||||
C_COMPILER =		cc
 | 
			
		||||
C_FLAGS =		$(COMPILE_OPTS) $(CPPFLAGS) $(CFLAGS)
 | 
			
		||||
CPP =			cpp
 | 
			
		||||
CPLUSPLUS_COMPILER =	c++
 | 
			
		||||
CPLUSPLUS_FLAGS =	$(COMPILE_OPTS) -Wall -DBSD=1 $(CPPFLAGS) $(CXXFLAGS)
 | 
			
		||||
OBJ =			o
 | 
			
		||||
LINK =			c++ -o
 | 
			
		||||
LINK_OPTS =		-L. $(LDFLAGS)
 | 
			
		||||
CONSOLE_LINK_OPTS =	$(LINK_OPTS)
 | 
			
		||||
LIBRARY_LINK =		ar cr
 | 
			
		||||
LIBRARY_LINK_OPTS =	
 | 
			
		||||
LIB_SUFFIX =			a
 | 
			
		||||
LIBS_FOR_CONSOLE_APPLICATION =
 | 
			
		||||
LIBS_FOR_GUI_APPLICATION =
 | 
			
		||||
EXE =
 | 
			
		||||
]]
 | 
			
		||||
 | 
			
		||||
on_install(function(package)
 | 
			
		||||
  -- Create plat make script
 | 
			
		||||
  local script = io.open("config.cross", "w")
 | 
			
		||||
  if script then
 | 
			
		||||
    script:write(make_scipt)
 | 
			
		||||
    script:print("PREFIX =    %s", package:installdir())
 | 
			
		||||
    script:close()
 | 
			
		||||
  end
 | 
			
		||||
  -- Don't forget to append space at the end of line "LIBRARY_LINK"
 | 
			
		||||
  os.vrun("sed -i 's/ar cr/ar cr /g' config.cross")
 | 
			
		||||
 | 
			
		||||
  -- Generate makefile
 | 
			
		||||
  os.vrun("chmod +rw genMakefiles")
 | 
			
		||||
  os.vrun("chmod ugo+rwx config.cross")
 | 
			
		||||
  os.vrun("sed -i 's/\\/bin\\/rm/rm/g' genMakefiles")
 | 
			
		||||
  os.vrun("./genMakefiles cross")
 | 
			
		||||
 | 
			
		||||
  -- Install
 | 
			
		||||
  os.vrun("make clean")
 | 
			
		||||
  import("package.tools.make").install(package)
 | 
			
		||||
end)
 | 
			
		||||
							
								
								
									
										47
									
								
								xmake.lua
									
									
									
									
									
								
							
							
						
						
									
										47
									
								
								xmake.lua
									
									
									
									
									
								
							@@ -1,11 +1,11 @@
 | 
			
		||||
add_rules("mode.debug", "mode.release")
 | 
			
		||||
includes("Hi3516_SDK.lua")
 | 
			
		||||
includes("Hi3516_SDK.lua", "live555.lua")
 | 
			
		||||
 | 
			
		||||
--- Add Cross Compile Toolchain
 | 
			
		||||
toolchain("arm-himix200-linux")
 | 
			
		||||
  set_kind("standalone")
 | 
			
		||||
set_kind("standalone")
 | 
			
		||||
 | 
			
		||||
  set_sdkdir("/home/sikongjueluo/Projects/CatFeeder/arm-himix200-linux")
 | 
			
		||||
set_sdkdir(path.join(os.projectdir(), "arm-himix200-linux"))
 | 
			
		||||
toolchain_end()
 | 
			
		||||
 | 
			
		||||
--- Set toolchain and C/C++ standard
 | 
			
		||||
@@ -15,32 +15,33 @@ set_plat("cross")
 | 
			
		||||
set_languages("c11", "c++14")
 | 
			
		||||
 | 
			
		||||
--- Add requires and dependencies
 | 
			
		||||
add_requires("zlog 1.2.17", {system = false})
 | 
			
		||||
add_requires("live555 2024.11.28")
 | 
			
		||||
add_requires("zlog 1.2.17", { system = false })
 | 
			
		||||
 | 
			
		||||
target("ISP")
 | 
			
		||||
    set_kind("static")
 | 
			
		||||
    add_files("src/isp/*.c")
 | 
			
		||||
    add_includedirs("src")
 | 
			
		||||
    add_deps("sample_common")
 | 
			
		||||
    add_packages("zlog")
 | 
			
		||||
set_kind("static")
 | 
			
		||||
add_files("src/isp/*.c")
 | 
			
		||||
add_includedirs("src")
 | 
			
		||||
add_deps("sample_common")
 | 
			
		||||
add_packages("zlog")
 | 
			
		||||
 | 
			
		||||
target("NNIE")
 | 
			
		||||
    set_kind("static")
 | 
			
		||||
    add_files("src/nnie/*.c")
 | 
			
		||||
    add_includedirs("src")
 | 
			
		||||
    add_deps("sample_common","sample_svp")
 | 
			
		||||
    add_packages("zlog")
 | 
			
		||||
set_kind("static")
 | 
			
		||||
add_files("src/nnie/*.c")
 | 
			
		||||
add_includedirs("src")
 | 
			
		||||
add_deps("sample_common", "sample_svp")
 | 
			
		||||
add_packages("zlog")
 | 
			
		||||
 | 
			
		||||
target("CatFeeder")
 | 
			
		||||
    set_kind("binary")
 | 
			
		||||
    add_includedirs("src")
 | 
			
		||||
    add_files("src/*.cpp")
 | 
			
		||||
    add_deps("hi_library", "ISP", "NNIE")
 | 
			
		||||
    add_packages("zlog")
 | 
			
		||||
    add_links("stdc++fs")
 | 
			
		||||
    after_build(function (target) 
 | 
			
		||||
        os.cp("src/log.conf", "$(buildir)/cross/arm/release")
 | 
			
		||||
    end)
 | 
			
		||||
set_kind("binary")
 | 
			
		||||
add_includedirs("src")
 | 
			
		||||
add_files("src/*.cpp")
 | 
			
		||||
add_deps("hi_library", "ISP", "NNIE")
 | 
			
		||||
add_packages("zlog")
 | 
			
		||||
add_links("stdc++fs")
 | 
			
		||||
after_build(function(target)
 | 
			
		||||
    os.cp("src/log.conf", "$(buildir)/cross/arm/release")
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
if is_mode("debug") then
 | 
			
		||||
    add_defines("DEBUG")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user