Gr-smart meters Setup on other distros: Difference between revisions
added instructions for how to build on Arch |
→Arch: fixed formatting |
||
| Line 4: | Line 4: | ||
This is a container file (for use with Docker or Podman) that shows how to build the relevant modules under Arch Linux. | This is a container file (for use with Docker or Podman) that shows how to build the relevant modules under Arch Linux. | ||
<syntaxhighlight lang="docker"> | |||
FROM archlinux:base-20240101.0.204074 | FROM archlinux:base-20240101.0.204074 | ||
RUN mkdir -p /tmp/work | RUN mkdir -p /tmp/work | ||
| Line 23: | Line 23: | ||
WORKDIR /tmp/work/gr-fhss_utils | WORKDIR /tmp/work/gr-fhss_utils | ||
RUN cmake -B build && cmake --build build -t install | RUN cmake -B build && cmake --build build -t install | ||
</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. You can ignore the "FROM" line. You will want to adjust the directories for your own computer. | ||