From e115f2df3a6d333db554cef4550593b327f51cbc Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Wed, 6 Oct 2021 21:29:47 -0300 Subject: [PATCH] compile pybind11 from source --- stage4/04-pisdr-system/00-packages | 5 ++++- stage4/04-pisdr-system/03-run.sh | 1 - stage4/04-pisdr-system/05-run.sh | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100755 stage4/04-pisdr-system/05-run.sh diff --git a/stage4/04-pisdr-system/00-packages b/stage4/04-pisdr-system/00-packages index 136be47..eb6bc3b 100644 --- a/stage4/04-pisdr-system/00-packages +++ b/stage4/04-pisdr-system/00-packages @@ -5,4 +5,7 @@ build-essential git pkg-config re2c -libssl-dev \ No newline at end of file +libssl-dev + +libboost-dev +python3-pytest diff --git a/stage4/04-pisdr-system/03-run.sh b/stage4/04-pisdr-system/03-run.sh index c82b028..946d0ed 100755 --- a/stage4/04-pisdr-system/03-run.sh +++ b/stage4/04-pisdr-system/03-run.sh @@ -3,5 +3,4 @@ on_chroot << EOF python3 -m pip install cmake python3 -m pip install ninja -python3 -m pip install pybind11 EOF diff --git a/stage4/04-pisdr-system/05-run.sh b/stage4/04-pisdr-system/05-run.sh new file mode 100755 index 0000000..2b86f88 --- /dev/null +++ b/stage4/04-pisdr-system/05-run.sh @@ -0,0 +1,19 @@ +#!/bin/bash -e + +on_chroot << EOF +mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/System" +cd "/home/${FIRST_USER_NAME}/PiSDR/System" + +if [ ! -d "pybind11" ]; then + git clone --depth 1 https://github.com/pybind/pybind11.git +fi + +cd pybind11 +mkdir -p build +cd build +cmake -GNinja .. +ninja install +ldconfig +cd .. +rm -fr build +EOF