ask for help : gr-osmosdr build failed

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Dimitri Stolnikov horiz0n at gmx.net
Mon Mar 11 20:29:50 UTC 2013


Hi,

it seems you've triggered an issue recently introduced via gnuradio master:

http://gnuradio.org/cgit/gnuradio.git/commit/?id=9297c84dfdae3002677f759ef2b38a877d2edc2c

Their config.h basically overrides our build-time generated one which not
only effectively disables every single source functionality but also
causes the build error you experienced.

I've just pushed a small workaround for that, please test it & report.

One second issue i've noticed is that in your configuration every single
option seems to be enabled, although not all dependencies have been
detected. Usually a full configuration should look like in the attached
file.


Best regards,

Dimitri



        I failed when I " make ".

        the make error is :
/tmp/gr-osmosdr/lib/osmosdr_source_c_impl.cc: In constructor
‘osmosdr_source_c_impl::osmosdr_source_c_impl(const string&)’:
/tmp/gr-osmosdr/lib/osmosdr_source_c_impl.cc:117:16: error:
‘GR_OSMOSDR_VERSION’ was not declared in this scope
/tmp/gr-osmosdr/lib/osmosdr_source_c_impl.cc:117:47: error:
‘GR_OSMOSDR_LIBVER’ was not declared in this scope
make[2]: ***
[lib/CMakeFiles/gnuradio-osmosdr.dir/osmosdr_source_c_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [all] Error 2
the cmake output is :
        -- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Configuring Boost C++ Libraries...
-- checking for module 'gnuradio-iqbalance'
--   package 'gnuradio-iqbalance' not found
-- Found gnuradio-uhd: /usr/local/include,  
/usr/local/lib/libgnuradio-uhd.so
-- Found gnuradio-fcd: /usr/local/include,  
/usr/local/lib/libgnuradio-fcd.so
-- Will build with gnuradio iqbalance support.
-- 
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
-- 
-- Configuring sysmocom OsmoSDR support...
--   Dependency LIBOSMOSDR_FOUND = TRUE
--   Enabling sysmocom OsmoSDR support.
--   Override with -DENABLE_OSMOSDR=ON/OFF
-- 
-- Configuring FunCube Dongle support...
--   Dependency GNURADIO_FCD_FOUND = TRUE
--   Enabling FunCube Dongle support.
--   Override with -DENABLE_FCD=ON/OFF
-- 
-- Configuring IQ File Source support...
--   Dependency GNURADIO_CORE_FOUND = TRUE
--   Enabling IQ File Source support.
--   Override with -DENABLE_FILE=ON/OFF
-- 
-- Configuring Osmocom RTLSDR support...
--   Dependency LIBRTLSDR_FOUND = TRUE
--   Enabling Osmocom RTLSDR support.
--   Override with -DENABLE_RTL=ON/OFF
-- 
-- Configuring RTLSDR TCP Client support...
--   Dependency GNURADIO_CORE_FOUND = TRUE
--   Enabling RTLSDR TCP Client support.
--   Override with -DENABLE_RTL_TCP=ON/OFF
-- 
-- Configuring Ettus UHD support...
--   Dependency UHD_FOUND = TRUE
--   Dependency GNURADIO_UHD_FOUND = TRUE
--   Enabling Ettus UHD support.
--   Override with -DENABLE_UHD=ON/OFF
-- 
-- Configuring Osmocom MiriSDR support...
--   Dependency LIBMIRISDR_FOUND = TRUE
--   Enabling Osmocom MiriSDR support.
--   Override with -DENABLE_MIRI=ON/OFF
-- 
-- ######################################################
-- # gr-osmosdr enabled components
-- ######################################################
--   * sysmocom OsmoSDR
--   * FunCube Dongle
--   * IQ File Source
--   * Osmocom RTLSDR
--   * RTLSDR TCP Client
--   * Ettus UHD
--   * Osmocom MiriSDR
-- 
-- ######################################################
-- # gr-osmosdr disabled components
-- ######################################################
-- 
-- Building for version: 1eb3af22 / 0.0.1git
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/gr-osmosdr/build
*
*
 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmake.txt
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20130311/de40684d/attachment.txt>


More information about the osmocom-sdr mailing list