free5G / free5GRAN

free5GRAN is an open-source 5G RAN stack. The current version includes a receiver which decodes MIB & SIB1 data. It also acts as a cell scanner. free5GRAN works in SA mode.
Apache License 2.0
96 stars 40 forks source link

UHD thread error while compiling #2

Open adejavel opened 3 years ago

adejavel commented 3 years ago

Error trace

free5GRAN/src/main.cc:17:10: fatal error: uhd/utils/thread.hpp: No such file or directory
#include <uhd/utils/thread.hpp>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/free5GRAN.dir/build.make:62: recipe for target 'CMakeFiles/free5GRAN.dir/src/main.cc.o' failed
make[2]: *** [CMakeFiles/free5GRAN.dir/src/main.cc.o] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/free5GRAN.dir/all' failed
make[1]: *** [CMakeFiles/free5GRAN.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Explanation

Wrong version of libuhd is installed on the host device.

Fixing

sudo add-apt-repository ppa:ettusresearch/uhd
sudo apt-get update
sudo apt-get install libuhd-dev libuhd003 uhd-host