Gr-smart meters Setup on other distros: Difference between revisions

Add some notes about patches.
Arch: show equivalent bash commands
Line 25: Line 25:
</syntaxhighlight>
</syntaxhighlight>


To run these commands on a real distribution (that is, not in a container), you can simply execute each "RUN" command exactly as it appears and then substitute `cd` commands for the "WORKDIR" lines.  You can ignore the "FROM" line.  You will want to adjust the directories for your own computer.
To run these commands on a real distribution (that is, not in a container), you can simply execute each "RUN" command exactly as it appears and then substitute `cd` commands for the "WORKDIR" lines (or use <code>pushd</code>/<code>popd</code> pairs as shown in the example below).  You can ignore the "FROM" line.  You will want to adjust the directories for your own computer. So for example, one could use the following commands:
 
<syntaxhighlight lang="bash">
mkdir FHSS_Utils
cd FHSS_Utils
pacman --noconfirm -Sy git make cmake gcc gnuradio boost doxygen graphviz pybind11
git clone https://github.com/sandialabs/gr-pdu_utils.git
git clone https://github.com/sandialabs/gr-timing_utils.git
git clone https://github.com/sandialabs/gr-fhss_utils.git
for fn in * ; do pushd $fn && git checkout maint-3.10 && popd ; done
pushd gr-pdu_utils
git fetch origin refs/pull/23/head:pull_23
git checkout pull_23
cmake -B build && cmake --build build -t install
popd
pushd gr-timing_utils
git fetch origin refs/pull/9/head:pull_9
git checkout pull_9
cmake -B build && cmake --build build -t install
popd
pushd gr-fhss_utils
RUN cmake -B build && cmake --build build -t install
popd
</syntaxhighlight>