luxonis / depthai-viewer

Log images, point clouds, etc, and visualize them effortlessly. Built in Rust using egui
https://rerun.io
Apache License 2.0
28 stars 2 forks source link

# Instructions to build Depthai-Viewer on Jetson Nano: #71

Open ammar3010 opened 4 months ago

ammar3010 commented 4 months ago
          # Instructions to build Depthai-Viewer on Jetson Nano: 
  1. Install RUST
  2. python3 -m pip install maturin==0.14.10
  3. [dependencies - needed for build to complete]
    sudo apt-get update && sudo apt-get install libssl-dev pkg-config
    python3 -m pip install patchelf
  4. maturin build --compatibility manylinux_2_31 --manifest-path rerun_py/Cargo.toml --release --no-default-features --features pypi --universal2 --out dist
  5. python3 -m pip install dist/<wheel>
  6. You should now be able to run the viewer with depthai-viewer

Originally posted by @jakaskerl in https://github.com/luxonis/depthai-viewer/issues/33#issuecomment-1964127996

This command:

maturin build --compatibility manylinux_2_31 --manifest-path rerun_py/Cargo.toml --release --no-default-features --features pypi --universal2 --out dist --verbose

is giving this error: 💥 maturin failed Caused by: No such file or directory (os error 2)

I am new to rust so have no idea how to solve it

jakaskerl commented 4 months ago

Hi @ammar3010 Can you give a bit more info on the OS version you are using? Maybe just recheck the paths since it seems like one path is wrong/the file at that path is missing.

Thanks.

ammar3010 commented 4 months ago

This issue was resolved, but now when I am installing the wheel, it is giving unsupported platform error.

OS: Ubuntu 20.04 Device: Jetson Nano

hellkrusher commented 3 weeks ago

I get this error: dist/depthai_viewer-0.2.5-cp38-abi3-manylinux_2_31_aarch64.whl ERROR: depthai_viewer-0.2.5-cp38-abi3-manylinux_2_31_aarch64.whl is not a supported wheel on this platform. when compiling on seeed studio reComputer Industrial J4012 with Jetson Orin I get the same when installing the pre built release.

hellkrusher commented 3 weeks ago

I get this error: dist/depthai_viewer-0.2.5-cp38-abi3-manylinux_2_31_aarch64.whl ERROR: depthai_viewer-0.2.5-cp38-abi3-manylinux_2_31_aarch64.whl is not a supported wheel on this platform. when compiling on seeed studio reComputer Industrial J4012 with Jetson Orin I get the same when installing the pre built release.

Oh, that's right, Python requires wheels to be named a certain way. Renaming to depthai_viewer-0.2.5-cp39-cp39-linux_aarch64.whl in my case allowed the installation to proceeded.