Skip to content

Instantly share code, notes, and snippets.

@jh4xsy
Last active December 10, 2025 07:02
Show Gist options
  • Select an option

  • Save jh4xsy/74f243f77a46192d6596292c246f903c to your computer and use it in GitHub Desktop.

Select an option

Save jh4xsy/74f243f77a46192d6596292c246f903c to your computer and use it in GitHub Desktop.
gr-satellietsをvenvにインストールする手順
$ unset PYTHONPATH
$ unset LD_LIBRARY_PATH
$ python3.11 -m venv --system-site-packages .venv
$ source .venv/bin/activate
$ pip3 install construct==2.9.49 websocket-client requests
$ python -c "import sys; print(sys.path)"
['', '/usr/lib/python3.11/dist-packages', '/home/jh4xsy/gr-satellites-5.8.0/.venv/lib/python3.11/site-packages', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/usr/local/lib/python3.11/dist-packages', '/usr/lib/python3/dist-packages']
$ mkdir build
$ cd build/
$ cmake .. -DCMAKE_INSTALL_PREFIX=/home/jh4xsy/gr-satellites-5.8.0/.venv -DPYTHON_EXECUTABLE=/home/jh4xsy/gr-satellites-5.8.0/.venv/bin/python3
$ make
$ make install
$ make test
...
$ ls .venv/lib/aarch64-linux-gnu/
libgnuradio-satellites.so libgnuradio-satellites.so.5.8.0.0
libgnuradio-satellites.so.5.8.0
$ mkdir .venv/lib/python3.11/site-packages/satellites/bindings
$ mv .venv/lib/python3.11/site-packages/satellites/satellites_python.cpython-311-aarch64-linux-gnu.so .venv/lib/python3.11/site-packages/satellites/bindings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment