gr-analysis icon indicating copy to clipboard operation
gr-analysis copied to clipboard

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

Open leebc opened this issue 6 years ago • 1 comments

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 avatar Sep 26 '18 16:09 leebc

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.

leebc avatar Sep 26 '18 16:09 leebc