The error is in the line:
/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake:45 (find_dependency)
find_dependency(Boost "1.65.1" COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
I have changed it for:
find_package(Boost "1.65.1" COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
And it runs fine. But now I have the following errors:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/gnuradio/UseSWIG.cmake:573 (add_library):
Target "ettus_swig" links to target "Boost::thread" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrSwig.cmake:133 (swig_add_library)
swig/CMakeLists.txt:54 (GR_SWIG_MAKE)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/gnuradio/UseSWIG.cmake:573 (add_library):
Target "ettus_swig" links to target "Boost::system" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/gnuradio/GrSwig.cmake:133 (swig_add_library)
swig/CMakeLists.txt:54 (GR_SWIG_MAKE)
And when I compile it:
[ 84%] Linking CXX shared library libgnuradio-ettus.so
/usr/bin/ld: cannot find -lBoost::program_options
/usr/bin/ld: cannot find -lBoost::filesystem
/usr/bin/ld: cannot find -lBoost::system
/usr/bin/ld: cannot find -lBoost::regex
/usr/bin/ld: cannot find -lBoost::thread
I don't know what is the problem, because I have installed libboost-all-dev. I have the same problem when I compile GNURadio manually.
Thank you.