Gr-smart meters Setup Guide: Difference between revisions
No edit summary |
|||
| Line 72: | Line 72: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Install FHSS Utilities ==== | ====Install FHSS Utilities==== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git clone https://github.com/sandialabs/gr-fhss_utils.git | git clone https://github.com/sandialabs/gr-fhss_utils.git | ||
| Line 85: | Line 85: | ||
cd .. | cd .. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Install Timing Utilities ==== | |||
<syntaxhighlight lang="bash"> | |||
git clone https://github.com/sandialabs/gr-timing_utils.git | |||
cd gr-timing_utils/ | |||
git checkout maint-3.8 | |||
mkdir build | |||
cd build | |||
cmake .. | |||
make -j8 | |||
sudo make install | |||
sudo ldconfig | |||
cd .. | |||
</syntaxhighlight> | |||
==== Install Sandia Utilities ==== | |||
<syntaxhighlight lang="bash"> | |||
git clone https://github.com/sandialabs/gr-sandia_utils.git | |||
cd gr-sandia_utils/ | |||
git checkout maint-3.8 | |||
mkdir build | |||
cd build/ | |||
cmake .. | |||
make -j8 | |||
sudo make install | |||
sudo ldconfig | |||
cd .. | |||
</syntaxhighlight> | |||
=== Setup PYTHONPATH === | |||
gnuradio-companion will give you errors if it can't find your python libraries that were just installed. Also highly suggest starting gnuradio-companion from a terminal as opposed to the icon in Ubuntu. It gives you a nice way to see console output and you have to configure path variables in other places to run gnuradio-companion with the icon. | |||
# Figure out where your dist-packages is located | |||
# Open your .bashrc file and add that path | |||
# close all open terminals and re-open them | |||
==== Figure out where dist-packages is located ==== | |||
If your system is like mine they will be in: | |||
<code>/usr/local/lib/python3/dist-packages</code> | |||
You can easily confirm by using "ls" to show all the files there, if you see folder names corresponding to the packages installed above you have the correct folder. If not, try searching for other occurrences of "dist-packages" on your system where they may have been placed. | |||
==== Edit .bashrc and add PYTHONPATH ==== | |||
Add the following to the end of your .bashrc if there is no PYTHONPATH variable. | |||
<code>export PYTHONPATH=/usr/local/lib/python3/dist-packages/</code> | |||
==== Finish up ==== | |||
Close all open terminal windows and then open a new one. | |||
=== Start GNU Radio and open FHSS Flowgraph === | |||