I installed Gnuradio in /home/sp/disk1/install/usr/local directory when I want to build gr-osmocomsdr I faced this error... in bashrc i add some environment variables that Gnurado works uhd works but for Gnuradio it can not detect Gnuradio I set all environments correctly How can solve my problem? thanks in advance #custom option for running gnuradio echo "bashrc config for running gnuradio" export PYTHONPATH=/home/sp/disk1/install/usr/local/lib/python3.8/dist-packages:/home/sp/disk1/install/usr/local/lib/python3.8/dist-packages:$PYTHONPATH export LD_LIBRARY_PATH=/home/sp/disk1/install/usr/local/lib:$LD_LIBRARY_PATH export GRC_BLOCKS_PATH=/home/sp/disk1/install/usr/local/share/gnuradio/grc/blocks export Gnuradio_DIR=/home/sp/disk1/install/usr/local/lib/cmake/gnuradio export DESTDIR=/home/sp/disk1/install echo "#################################" echo $PYTHONPATH; echo $LD_LIBRARY_PATH echo "GnuradioDIR="$Gnuradio_DIR echo "DESTDIR="$DESTDIR echo "##################################"
export CMAKE_MODULE_PATH=/home/sp/disk1/install/usr/local/lib/cmake/gnuradio:$CMAKE_MODULE_PATH export PKG_CONFIG_PATH=/home/sp/disk1/install/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH export CMAKE_PREFIX_PATH=/home/sp/disk1/install:$CMAKE_PREFIX_PATH echo "CMAKE_MODULE_PATH="$CMAKE_MODULE_PATH echo "PKG_CONFIG_PATH="$CMAKE_MODULE_PATH echo "CMAKE_PREFIX_PATH="$CMAKE_MODULE_PATH echo "##################################" export PATH="/home/sp/disk1/install/usr/local/bin:$PATH" echo "PATH="$PATH #custom hint install in new prefix echo "##################################" echo "hint install in new prefix cmake .. -DCMAKE_INSTALL_PREFIX=/local/usr" -- Building for version: v0.1.x-xxx-xunknown / 0.1.5git -- Using install prefix: /usr/local -- Configurin done CMake Error at lib/CMakeLists.txt:270 (ADD_LIBRARY): Target "gnuradio-osmosdr" links to target "gnuradio::gnuradio-blocks" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.