garverp / gr-analysis

Tools for High Sample Rate Recording and Post-Processing in GNURadio
GNU General Public License v3.0
21 stars 11 forks source link

Compile fails on Ubuntu 18.04.1 with uhd/utils/atomic.hpp: No such file or directory #11

Open leebc opened 5 years ago

leebc commented 5 years ago

When attempting to compile under Ubuntu 18.04.1, I receive this fatal error:

gr-analysis/apps/record/specrec.cpp:36:10: fatal error: uhd/utils/atomic.hpp: No such file or directory

include <uhd/utils/atomic.hpp>

^~~~~~ compilation terminated. apps/record/CMakeFiles/specrec.dir/build.make:62: recipe for target 'apps/record/CMakeFiles/specrec.dir/specrec.cpp.o' failed make[2]: [apps/record/CMakeFiles/specrec.dir/specrec.cpp.o] Error 1 CMakeFiles/Makefile2:657: recipe for target 'apps/record/CMakeFiles/specrec.dir/all' failed make[1]: [apps/record/CMakeFiles/specrec.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

The fix for this seems to be just to comment out line 36:

//#include <uhd/utils/atomic.hpp>

(Although I still get doxygen warnings.)

leebc commented 5 years ago

This is related to gr-analysis issue #7. Ettus had deprecated and has since moved uhd/utils/atomic.hpp to a private repo, so it's no longer available.