Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ammar3010 opened this issue Jul 18, 2024 · 4 comments
Open

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

ammar3010 opened this issue Jul 18, 2024 · 4 comments
Assignees

Comments

@ammar3010
Copy link

ammar3010 commented Jul 18, 2024

          # 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 #33 (comment)

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants