<div dir="ltr">Hi, I build gr-osmocom + XTRX again. And compile successfully<div>But when I run osmocom_fft :</div><div><br><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">osmocom_fft -F -f 850e6 -s 4e6<br>Traceback (most recent call last):<br>  File "/usr/local/bin/osmocom_fft", line 23, in <module><br>    import osmosdr<br>ModuleNotFoundError: No module named 'osmosdr'<br></blockquote><div><br></div><div><br></div><div>clone gr-osmosdr from <a href="https://github.com/osmocom/gr-osmosdr">https://github.com/osmocom/gr-osmosdr</a></div><div> Try master and gr-3.8 branch, get the same result</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">gnuradio-config-info -v<br>3.8.2.0<br></blockquote><div><br></div><div><br></div><div>output of cmake:</div><div><br></div>cmake ..<br>-- Build type not specified: defaulting to release.<br>-- Checking for module 'gmp'<br>--   No package 'gmp' found<br>-- Checking for module 'mpir >= 3.0'<br>--   No package 'mpir' found<br>-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) <br>-- Boost version: 1.65.1<br>-- Found the following Boost libraries:<br>--   date_time<br>--   program_options<br>--   filesystem<br>--   system<br>--   regex<br>--   thread<br>--   unit_test_framework<br>--   chrono<br>--   atomic<br>-- User set python executable /usr/bin/python3<br>-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/<a href="http://libpython3.6m.so">libpython3.6m.so</a> (found suitable exact version "3.6.9") <br>-- Extracting version information from git describe...<br>-- Boost version: 1.65.1<br>-- Found the following Boost libraries:<br>--   chrono<br>--   thread<br>--   system<br>--   date_time<br>--   atomic<br>-- <br>-- The build system will automatically enable all components.<br>-- Use -DENABLE_DEFAULT=OFF to disable components by default.<br>-- Searching for GNURadio-Blocks...<br>--  Found GNURadio-Blocks: 1<br>-- Searching for IQ Balance...<br>-- Could NOT find gnuradio-iqbalance (missing: gnuradio-iqbalance_DIR)<br>--  Found IQ Balance: 0<br>-- Searching for UHD Drivers...<br>--  Found UHD Driver: TRUE<br>-- Searching for UHD Block...<br>--  Found UHD Block: 1<br>-- Searching for Volk...<br>--  Found Volk: 1<br>-- Checking for module 'libairspyhf'<br>--   No package 'libairspyhf' found<br>-- Could NOT find LIBAIRSPYHF (missing: LIBAIRSPYHF_LIBRARIES LIBAIRSPYHF_INCLUDE_DIRS) <br>-- Checking for module 'libgnuradio-fcdproplus'<br>--   No package 'libgnuradio-fcdproplus' found<br>-- gnuradio-fcdproplus not found.<br>-- Checking for module 'libfreesrp'<br>--   No package 'libfreesrp' found<br>-- libfreesrp not found.<br>-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/<a href="http://libpython3.6m.so">libpython3.6m.so</a> (found suitable version "3.6.9", minimum required is "3") <br>-- <br>-- Checking for module SWIG<br>-- Found SWIG version 3.0.12.<br>-- Minimum SWIG version required is 1.3.31<br>-- <br>-- Configuring Python support support...<br>--   Dependency PYTHONLIBS_FOUND = TRUE<br>--   Dependency SWIG_FOUND = TRUE<br>--   Dependency SWIG_VERSION_CHECK = TRUE<br>--   Enabling Python support support.<br>--   Override with -DENABLE_PYTHON=ON/OFF<br>CMake Warning (dev) in lib/CMakeLists.txt:<br>  A logical block opening on the line<br><br>    /home/init3/SDR/gr-osmosdr/lib/CMakeLists.txt:45 (MACRO)<br><br>  closes on the line<br><br>    /home/init3/SDR/gr-osmosdr/lib/CMakeLists.txt:47 (ENDMACRO)<br><br>  with mis-matching arguments.<br>This warning is for project developers.  Use -Wno-dev to suppress it.<br><br>You have called ADD_LIBRARY for library gnuradio-osmosdr without any source files. This typically indicates a problem with your CMakeLists.txt file<br>-- <br>-- Configuring high resolution timing...<br>--   High resolution timing supported through clock_gettime.<br>-- <br>-- Configuring Osmocom IQ Imbalance Correction support...<br>--   Dependency gnuradio-iqbalance_FOUND = 0<br>--   Disabling Osmocom IQ Imbalance Correction support.<br>--   Override with -DENABLE_IQBALANCE=ON/OFF<br>-- <br>-- Configuring FUNcube Dongle support...<br>--   Dependency GNURADIO_FCDPP_FOUND = FALSE<br>--   Disabling FUNcube Dongle support.<br>--   Override with -DENABLE_FCD=ON/OFF<br>-- <br>-- Configuring IQ File Source & Sink support...<br>--   Dependency gnuradio-blocks_FOUND = 1<br>--   Enabling IQ File Source & Sink support.<br>--   Override with -DENABLE_FILE=ON/OFF<br>-- <br>-- <br>-- Configuring Osmocom RTLSDR support...<br>--   Dependency LIBRTLSDR_FOUND = TRUE<br>--   Enabling Osmocom RTLSDR support.<br>--   Override with -DENABLE_RTL=ON/OFF<br>-- <br>-- Configuring RTLSDR TCP Client support...<br>--   Dependency gnuradio-blocks_FOUND = 1<br>--   Enabling RTLSDR TCP Client support.<br>--   Override with -DENABLE_RTL_TCP=ON/OFF<br>-- <br>-- Configuring Ettus USRP Devices support...<br>--   Dependency UHD_FOUND = TRUE<br>--   Dependency gnuradio-uhd_FOUND = 1<br>--   Enabling Ettus USRP Devices support.<br>--   Override with -DENABLE_UHD=ON/OFF<br>-- <br>-- Configuring HackRF & rad1o Badge support...<br>--   Dependency LIBHACKRF_FOUND = TRUE<br>--   Enabling HackRF & rad1o Badge support.<br>--   Override with -DENABLE_HACKRF=ON/OFF<br>-- <br>-- Configuring nuand bladeRF support...<br>--   Dependency LIBBLADERF_FOUND = TRUE<br>--   Enabling nuand bladeRF support.<br>--   Override with -DENABLE_BLADERF=ON/OFF<br>-- <br>-- Configuring RFSPACE Receivers support...<br>--   Enabling RFSPACE Receivers support.<br>--   Override with -DENABLE_RFSPACE=ON/OFF<br>-- <br>-- Configuring AIRSPY Receiver support...<br>--   Dependency LIBAIRSPY_FOUND = TRUE<br>--   Enabling AIRSPY Receiver support.<br>--   Override with -DENABLE_AIRSPY=ON/OFF<br>-- <br>-- Configuring AIRSPY HF+ Receiver support...<br>--   Dependency LIBAIRSPYHF_FOUND = FALSE<br>--   Disabling AIRSPY HF+ Receiver support.<br>--   Override with -DENABLE_AIRSPYHF=ON/OFF<br>-- <br>-- Configuring SoapySDR support support...<br>--   Dependency SoapySDR_FOUND = 1<br>--   Enabling SoapySDR support support.<br>--   Override with -DENABLE_SOAPY=ON/OFF<br>-- <br>-- Configuring Red Pitaya SDR support...<br>--   Enabling Red Pitaya SDR support.<br>--   Override with -DENABLE_REDPITAYA=ON/OFF<br>-- <br>-- Configuring FreeSRP support support...<br>--   Dependency LIBFREESRP_FOUND = FALSE<br>--   Disabling FreeSRP support support.<br>--   Override with -DENABLE_FREESRP=ON/OFF<br>-- <br>-- Configuring XTRX SDR support...<br>--   Dependency LIBXTRX_FOUND = TRUE<br>--   Enabling XTRX SDR support.<br>--   Override with -DENABLE_XTRX=ON/OFF<br>-- <br>-- ######################################################<br>-- # Gnuradio enabled components                         <br>-- ######################################################<br>--   * Python support<br>--   * IQ File Source & Sink<br>--   * Osmocom RTLSDR<br>--   * RTLSDR TCP Client<br>--   * Ettus USRP Devices<br>--   * HackRF & rad1o Badge<br>--   * nuand bladeRF<br>--   * RFSPACE Receivers<br>--   * AIRSPY Receiver<br>--   * SoapySDR support<br>--   * Red Pitaya SDR<br>--   * XTRX SDR<br>-- <br>-- ######################################################<br>-- # Gnuradio disabled components                        <br>-- ######################################################<br>--   * Osmocom IQ Imbalance Correction<br>--   * FUNcube Dongle<br>--   * AIRSPY HF+ Receiver<br>--   * FreeSRP support<br>-- <br>-- Building for version: 0.2.0.0 / 0.2.0<br>-- Using install prefix: /usr/local<br>-- Configuring done<br>-- Generating done<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-- Build files have been written to: /home/init3/SDR/gr-osmosdr/build </blockquote></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Clayton Smith <<a href="mailto:argilo@gmail.com">argilo@gmail.com</a>> 于2021年1月18日周一 下午10:10写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Are you using the latest version of libxtrx? The xtrx_open_list function was removed from its API a couple years ago and replaced with xtrx_open_string. I recently updated gr-osmosdr to use the new function.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 18, 2021 at 8:43 AM 雪碧 0xroot <<a href="mailto:renxianyuanqi@gmail.com" target="_blank">renxianyuanqi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear  osmocom community,<br><div>I am using XTRX + gr-osmosdr on ubuntu 18</div><div>when i try to build gr-osmosdr :</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[ 81%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/redpitaya/redpitaya_sink_c.cc.o<br>[ 83%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/redpitaya/redpitaya_common.cc.o<br>[ 85%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/xtrx/xtrx_obj.cc.o<br>[ 87%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/xtrx/xtrx_source_c.cc.o<br>/home/init3/SDR/gr-osmosdr/lib/xtrx/xtrx_obj.cc: In constructor ‘xtrx_obj::xtrx_obj(const string&, unsigned int, bool)’:<br>/home/init3/SDR/gr-osmosdr/lib/xtrx/xtrx_obj.cc:71:13: error: ‘xtrx_open_string’ was not declared in this scope<br>   int res = xtrx_open_string(path.c_str(), &_obj);<br>             ^~~~~~~~~~~~~~~~<br>/home/init3/SDR/gr-osmosdr/lib/xtrx/xtrx_obj.cc:71:13: note: suggested alternative: ‘xtrx_open_list’<br>   int res = xtrx_open_string(path.c_str(), &_obj);<br>             ^~~~~~~~~~~~~~~~<br>             xtrx_open_list<br>lib/CMakeFiles/gnuradio-osmosdr.dir/build.make:662: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/xtrx/xtrx_obj.cc.o' failed<br>make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/xtrx/xtrx_obj.cc.o] Error 1<br>make[2]: *** 正在等待未完成的任务....<br>CMakeFiles/Makefile2:167: recipe for target 'lib/CMakeFiles/gnuradio-osmosdr.dir/all' failed<br>make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2<br>Makefile:140: recipe for target 'all' failed<br>make: *** [all] Error 2</blockquote><div><br></div><div>Info:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">gnuradio 3.8.2.0<br>gr-osmosdr gr-3.8 </blockquote><div><br></div><div>How to fix it? </div><div><br></div><div>cmake output:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">cmake ..<br>-- Build type not specified: defaulting to release.<br>-- Checking for module 'gmp'<br>--   No package 'gmp' found<br>-- Checking for module 'mpir >= 3.0'<br>--   No package 'mpir' found<br>-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) <br>-- Boost version: 1.65.1<br>-- Found the following Boost libraries:<br>--   date_time<br>--   program_options<br>--   filesystem<br>--   system<br>--   regex<br>--   thread<br>--   unit_test_framework<br>--   chrono<br>--   atomic<br>-- User set python executable /usr/bin/python3.6<br>-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/<a href="http://libpython3.6m.so" target="_blank">libpython3.6m.so</a> (found suitable exact version "3.6.9") <br>-- Extracting version information from git describe...<br>-- Boost version: 1.65.1<br>-- Found the following Boost libraries:<br>--   chrono<br>--   thread<br>--   system<br>--   date_time<br>--   atomic<br>-- <br>-- The build system will automatically enable all components.<br>-- Use -DENABLE_DEFAULT=OFF to disable components by default.<br>-- Searching for GNURadio-Blocks...<br>--  Found GNURadio-Blocks: 1<br>-- Searching for IQ Balance...<br>-- Could NOT find gnuradio-iqbalance (missing: gnuradio-iqbalance_DIR)<br>--  Found IQ Balance: 0<br>-- Searching for UHD Drivers...<br>--  Found UHD Driver: TRUE<br>-- Searching for UHD Block...<br>--  Found UHD Block: 1<br>-- Searching for Volk...<br>--  Found Volk: 1<br>-- Checking for module 'libairspyhf'<br>--   No package 'libairspyhf' found<br>-- Could NOT find LIBAIRSPYHF (missing: LIBAIRSPYHF_LIBRARIES LIBAIRSPYHF_INCLUDE_DIRS) <br>-- Checking for module 'libgnuradio-fcdproplus'<br>--   No package 'libgnuradio-fcdproplus' found<br>-- gnuradio-fcdproplus not found.<br>-- Checking for module 'libfreesrp'<br>--   No package 'libfreesrp' found<br>-- libfreesrp not found.<br>-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/<a href="http://libpython3.6m.so" target="_blank">libpython3.6m.so</a> (found suitable version "3.6.9", minimum required is "3") <br>-- <br>-- Checking for module SWIG<br>-- Found SWIG version 3.0.12.<br>-- Minimum SWIG version required is 1.3.31<br>-- <br>-- Configuring Python support support...<br>--   Dependency PYTHONLIBS_FOUND = TRUE<br>--   Dependency SWIG_FOUND = TRUE<br>--   Dependency SWIG_VERSION_CHECK = TRUE<br>--   Enabling Python support support.<br>--   Override with -DENABLE_PYTHON=ON/OFF<br>CMake Warning (dev) in lib/CMakeLists.txt:<br>  A logical block opening on the line<br><br>    /home/init3/SDR/gr-osmosdr/lib/CMakeLists.txt:45 (MACRO)<br><br>  closes on the line<br><br>    /home/init3/SDR/gr-osmosdr/lib/CMakeLists.txt:47 (ENDMACRO)<br><br>  with mis-matching arguments.<br>This warning is for project developers.  Use -Wno-dev to suppress it.<br><br>You have called ADD_LIBRARY for library gnuradio-osmosdr without any source files. This typically indicates a problem with your CMakeLists.txt file<br>-- <br>-- Configuring high resolution timing...<br>--   High resolution timing supported through clock_gettime.<br>-- <br>-- Configuring Osmocom IQ Imbalance Correction support...<br>--   Dependency gnuradio-iqbalance_FOUND = 0<br>--   Disabling Osmocom IQ Imbalance Correction support.<br>--   Override with -DENABLE_IQBALANCE=ON/OFF<br>-- <br>-- Configuring FUNcube Dongle support...<br>--   Dependency GNURADIO_FCDPP_FOUND = FALSE<br>--   Disabling FUNcube Dongle support.<br>--   Override with -DENABLE_FCD=ON/OFF<br>-- <br>-- Configuring IQ File Source & Sink support...<br>--   Dependency gnuradio-blocks_FOUND = 1<br>--   Enabling IQ File Source & Sink support.<br>--   Override with -DENABLE_FILE=ON/OFF<br>-- <br>-- <br>-- Configuring Osmocom RTLSDR support...<br>--   Dependency LIBRTLSDR_FOUND = TRUE<br>--   Enabling Osmocom RTLSDR support.<br>--   Override with -DENABLE_RTL=ON/OFF<br>-- <br>-- Configuring RTLSDR TCP Client support...<br>--   Dependency gnuradio-blocks_FOUND = 1<br>--   Enabling RTLSDR TCP Client support.<br>--   Override with -DENABLE_RTL_TCP=ON/OFF<br>-- <br>-- Configuring Ettus USRP Devices support...<br>--   Dependency UHD_FOUND = TRUE<br>--   Dependency gnuradio-uhd_FOUND = 1<br>--   Enabling Ettus USRP Devices support.<br>--   Override with -DENABLE_UHD=ON/OFF<br>-- <br>-- Configuring HackRF & rad1o Badge support...<br>--   Dependency LIBHACKRF_FOUND = TRUE<br>--   Enabling HackRF & rad1o Badge support.<br>--   Override with -DENABLE_HACKRF=ON/OFF<br>-- <br>-- Configuring nuand bladeRF support...<br>--   Dependency LIBBLADERF_FOUND = TRUE<br>--   Enabling nuand bladeRF support.<br>--   Override with -DENABLE_BLADERF=ON/OFF<br>-- <br>-- Configuring RFSPACE Receivers support...<br>--   Enabling RFSPACE Receivers support.<br>--   Override with -DENABLE_RFSPACE=ON/OFF<br>-- <br>-- Configuring AIRSPY Receiver support...<br>--   Dependency LIBAIRSPY_FOUND = TRUE<br>--   Enabling AIRSPY Receiver support.<br>--   Override with -DENABLE_AIRSPY=ON/OFF<br>-- <br>-- Configuring AIRSPY HF+ Receiver support...<br>--   Dependency LIBAIRSPYHF_FOUND = FALSE<br>--   Disabling AIRSPY HF+ Receiver support.<br>--   Override with -DENABLE_AIRSPYHF=ON/OFF<br>-- <br>-- Configuring SoapySDR support support...<br>--   Dependency SoapySDR_FOUND = 1<br>--   Enabling SoapySDR support support.<br>--   Override with -DENABLE_SOAPY=ON/OFF<br>-- <br>-- Configuring Red Pitaya SDR support...<br>--   Enabling Red Pitaya SDR support.<br>--   Override with -DENABLE_REDPITAYA=ON/OFF<br>-- <br>-- Configuring FreeSRP support support...<br>--   Dependency LIBFREESRP_FOUND = FALSE<br>--   Disabling FreeSRP support support.<br>--   Override with -DENABLE_FREESRP=ON/OFF<br>-- <br>-- Configuring XTRX SDR support...<br>--   Dependency LIBXTRX_FOUND = TRUE<br>--   Enabling XTRX SDR support.<br>--   Override with -DENABLE_XTRX=ON/OFF<br>-- <br>-- ######################################################<br>-- # Gnuradio enabled components                         <br>-- ######################################################<br>--   * Python support<br>--   * IQ File Source & Sink<br>--   * Osmocom RTLSDR<br>--   * RTLSDR TCP Client<br>--   * Ettus USRP Devices<br>--   * HackRF & rad1o Badge<br>--   * nuand bladeRF<br>--   * RFSPACE Receivers<br>--   * AIRSPY Receiver<br>--   * SoapySDR support<br>--   * Red Pitaya SDR<br>--   * XTRX SDR<br>-- <br>-- ######################################################<br>-- # Gnuradio disabled components                        <br>-- ######################################################<br>--   * Osmocom IQ Imbalance Correction<br>--   * FUNcube Dongle<br>--   * AIRSPY HF+ Receiver<br>--   * FreeSRP support<br>-- <br>-- Building for version: 0.2.0.0 / 0.2.0<br>-- Using install prefix: /usr/local<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/init3/SDR/gr-osmosdr/build<br></blockquote><div><br></div><div>--------------------------</div><div>Thanks </div></div>
</blockquote></div>
</blockquote></div>