Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 3.43 KB

README-buildnotes.md

File metadata and controls

59 lines (44 loc) · 3.43 KB

Build Notes

Some random notes on building - this is all in progess and subject to change

About requirements.txt

We don't really use this anymore - switched to Pipfile. Keeping it here for posterity by running: pipenv lock -r > requirements.txt

Manually creating a release

2022-02-03: There were a bunch of odd errors using pyinstaller which look like bug with the latest release. For now I have switched to using the dev release, which you can see in the Pipfile (pyinstaller = {file = "https://github.com/pyinstaller/pyinstaller/archive/develop.zip"})

The way to create a release: pyinstaller --add-data .clivrt:. --onefile clivrt.py

Which dumps clivrt into ./dist/clivrt

On missing OS dependencies

You might get some errors due to missing OS packages, here are some that have been seen:

  1. ImportError: libGL.so.1: cannot open shared object file: No such file or directory

    apt-get install ffmpeg libsm6 libxext6 -y

Building on a Jetson Nano (arm64)

I've been experimenting with building this on a NVIDIA Jetson Nano. Here are some extra steps you'll need to take to get that going. (Note: I'm not sure these are the best way to get it working, but it is what I did)

  • Setup Python 3.8
sudo apt-get install python3-pip python3.8 python3.8-dev
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 3
sudo update-alternatives --config python3
sudo pip3 install pipenv
echo "deb https://repo.download.nvidia.com/jetson/ffmpeg main main" |  sudo tee -a /etc/apt/sources.list
echo "deb-src https://repo.download.nvidia.com/jetson/ffmpeg main main" |  sudo tee -a /etc/apt/sources.list
sudo apt update
  • Install dependencies for aiortc

There seems to be an issue on the jetson with a mismatch in dependencies with NVIDIA's ffmpeg and pyAv - more details here, looks like I might need to build ffmpeg from source. The challenge will be to ensure I can still leverage any patches/build options NVIDIA added for leveraging their hardware performance.

sudo apt-get install libopus-dev libvpx-dev