discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNURadio make from source failed


From: Marcus Müller
Subject: Re: GNURadio make from source failed
Date: Tue, 8 Dec 2020 14:04:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

Hi,

this **very** much suggests you have conflicting versions of UHD installed.

Make sure there's only one version of the UHD headers installed, clean
your build directory and try again, please.

Best regards,
Marcus

On 08.12.20 06:55, Đình Tuấn Hoàng wrote:
>
> Hi,
> I'm trying to install GNURadio 3.8 after successful installation of
> UHD 4.0
> but I always got the problem like below:
>
>     
> _/home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:
>     In function ‘PyObject* _wrap_i2c_iface_eeprom16(PyObject*,
>     PyObject*)’:
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:30566:33:
>     error: no match for ‘operator=’ (operand types are
>     ‘SwigValueWrapper<boost::shared_ptruhd::i2c_iface >’ and
>     ‘uhd::i2c_iface::sptr {aka std::shared_ptruhd::i2c_iface}’)
>     result = (arg1)->eeprom16();
>     ^
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:32:21:
>     note: candidate: SwigValueWrapper&
>     SwigValueWrapper::operator=(const SwigValueWrapper&) [with T =
>     boost::shared_ptruhd::i2c_iface]
>     SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
>     ^~~~~~~~
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:32:21:
>     note: no known conversion for argument 1 from
>     ‘uhd::i2c_iface::sptr {aka std::shared_ptruhd::i2c_iface}’ to
>     ‘const SwigValueWrapper<boost::shared_ptruhd::i2c_iface >&’
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:36:21:
>     note: candidate: SwigValueWrapper&
>     SwigValueWrapper::operator=(const T&) [with T =
>     boost::shared_ptruhd::i2c_iface]
>     SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new
>     T(t)); pointer = tmp; return /this; }
>     ^~~~~~~~
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:36:21:
>     note: no known conversion for argument 1 from
>     ‘uhd::i2c_iface::sptr {aka std::shared_ptruhd::i2c_iface}’ to
>     ‘const boost::shared_ptruhd::i2c_iface&’
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:30576:109:
>     error: invalid static_cast from type
>     ‘SwigValueWrapper<boost::shared_ptruhd::i2c_iface >’ to type
>     ‘const sptr& {aka const std::shared_ptruhd::i2c_iface&}’
>     resultobj = SWIG_NewPointerObj((new
>     uhd::i2c_iface::sptr(static_cast< const uhd::i2c_iface::sptr&
>     >(result))), SWIGTYPE_p_boost__shared_ptrT_uhd__i2c_iface_t,
>     SWIG_POINTER_OWN | 0 );
>     ^
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:1191:89:
>     note: in definition of macro ‘SWIG_NewPointerObj’
>     #define SWIG_NewPointerObj(ptr, type, flags)
>     SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
>     ^~~
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:
>     In function ‘PyObject/ /wrap_dboard_iface_sptr_eeprom16(PyObject*,
>     PyObject*)’:
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:36426:34:
>     error: no match for ‘operator=’ (operand types are
>     ‘SwigValueWrapper<boost::shared_ptruhd::i2c_iface >’ and
>     ‘uhd::i2c_iface::sptr {aka std::shared_ptruhd::i2c_iface}’)
>     result = (*arg1)->eeprom16();
>     ^
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:32:21:
>     note: candidate: SwigValueWrapper&
>     SwigValueWrapper::operator=(const SwigValueWrapper&) [with T =
>     boost::shared_ptruhd::i2c_iface]
>     SwigValueWrapper& operator=(const SwigValueWrapper& rhs);
>     ^~~~~~~~
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:32:21:
>     note: no known conversion for argument 1 from
>     ‘uhd::i2c_iface::sptr {aka std::shared_ptruhd::i2c_iface}’ to
>     ‘const SwigValueWrapper<boost::shared_ptruhd::i2c_iface >&’
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:36:21:
>     note: candidate: SwigValueWrapper&
>     SwigValueWrapper::operator=(const T&) [with T =
>     boost::shared_ptruhd::i2c_iface]
>     SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new
>     T(t)); pointer = tmp; return *this; }
>     ^~~~~~~~
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:36:21:
>     note: no known conversion for argument 1 from
>     ‘uhd::i2c_iface::sptr {aka std::shared_ptruhd::i2c_iface}’ to
>     ‘const boost::shared_ptruhd::i2c_iface&’
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:36436:109:
>     error: invalid static_cast from type
>     ‘SwigValueWrapper<boost::shared_ptruhd::i2c_iface >’ to type
>     ‘const sptr& {aka const std::shared_ptruhd::i2c_iface&}’
>     resultobj = SWIG_NewPointerObj((new
>     uhd::i2c_iface::sptr(static_cast< const uhd::i2c_iface::sptr&
>     >(result))), SWIGTYPE_p_boost__shared_ptrT_uhd__i2c_iface_t,
>     SWIG_POINTER_OWN | 0 );
>     ^
>     
> /home/pc/test/gnuradio/build/gr-uhd/swig/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx:1191:89:
>     note: in definition of macro ‘SWIG_NewPointerObj’
>     #define SWIG_NewPointerObj(ptr, type, flags)
>     SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
>     gr-uhd/swig/CMakeFiles/uhd_swig.dir/build.make:62: recipe for
>     target
>     
> 'gr-uhd/swig/CMakeFiles/uhd_swig.dir/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx.o'
>     failed
>     make[2]: ***
>     
> [gr-uhd/swig/CMakeFiles/uhd_swig.dir/CMakeFiles/uhd_swig.dir/uhd_swigPYTHON_wrap.cxx.o]
>     Error 1
>     CMakeFiles/Makefile2:11163: recipe for target
>     'gr-uhd/swig/CMakeFiles/uhd_swig.dir/all' failed
>     make[1]: *** [gr-uhd/swig/CMakeFiles/uhd_swig.dir/all] Error 2
>     make[1]: *** Waiting for unfinished jobs..../
>
> Could anyone help me with my problem?
> My purpose here is using RFNoC with USRP, so I have to install UHD
> 4.0, GNURadio 3.8 and gr_ettus too.
> Thank you for spending time on my topic!
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]