Closed ivanmikh closed 4 years ago
So the problem was that library was not linking against libboost_chrono
I was able to fix it by adding this to CMakeLists.txt:
add_definitions(-lboost_chrono)
add_definitions(-DBOOST_CHRONO_DYN_LINK)
add_definitions(-lboost_timer)
add_definitions(-DBOOST_TIMER_DYN_LINK)
And adding -lboost_chrono -lboost_timer flags to gr-iio/build/lib/CMakeFiles/gnuradio-iio.dir/link.txt.
This is just a temporary hack, what would be the right way to fix this issue?
Can you tell us what version of boost are you running and what version of gnuradio (and where you installed from ) ?
I installed GNU Radio from Ubuntu repository using apt. My OS is Lubuntu 20.04 LTS (Focal Fossa).
GNU radio:
ii gnuradio 3.8.1.0~rc1-2build2 amd64 GNU Radio Software Radio Toolkit
ii gnuradio-dev:amd64 3.8.1.0~rc1-2build2 amd64 GNU Software Defined Radio toolkit development
libbosst:
ii libboost-all-dev 1.71.0.0ubuntu2 amd64 Boost C++ Libraries development files (ALL) (default version)
I can confirm this issue using Ubuntu-20.04 and that @ivanmikh's solution works.
main-3.8
with volk on v2.2.1
upgrade-3.8
mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr
echo "
add_definitions(-lboost_chrono)
add_definitions(-DBOOST_CHRONO_DYN_LINK)
add_definitions(-lboost_timer)
add_definitions(-DBOOST_TIMER_DYN_LINK)
"
sed -i.bak "$ s/$/ -lboost_chrono -lboost_timer/" lib/CMakeFiles/gnuradio-iio.dir/link.txt
make -j $(nproc)
sudo make install
sudo ldconfig
I have a problem with FMComms2/3/4 or PlutoSDR blocks in GNU Radio. I have GNU Radio 3.8 and PlutoSDR connected via USB.
I am trying to run cyclic-sine_pluto.grc from gr-iio/iio-examples and I get an error:
Symbol demangling:
Symbol in library:
I have compiled and installed library using AD wiki.
Does anybody know how to fix this issue? I would be really grateful for any help or tip.