[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] The AttributeError problem now that I have modifi
From: |
Marcus Müller |
Subject: |
Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT |
Date: |
Mon, 4 Jul 2016 11:22:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
Hi!
nope, I've tried the master branch only :/
but: syncing fails to build at all for me:
> make
[ 3%] Building CXX object
lib/CMakeFiles/gnuradio-ambe3000.dir/dstar_encode_sb_impl.cc.o
[ 6%] Building CXX object lib/CMakeFiles/gnuradio-ambe3000.dir/DV3000U.cc.o
[ 9%] Building CXX object lib/CMakeFiles/gnuradio-ambe3000.dir/DStarHeader.cc.o
[ 12%] Building CXX object lib/CMakeFiles/gnuradio-ambe3000.dir/DStarDecode.cc.o
[ 15%] Building CXX object
lib/CMakeFiles/gnuradio-ambe3000.dir/dstar_decode_bs_impl.cc.o
/home/marcus/src/gr-ambe3000/lib/dstar_decode_bs_impl.cc: In constructor
‘gr::ambe3000::dstar_decode_bs_impl::dstar_decode_bs_impl(char*, int)’:
/home/marcus/src/gr-ambe3000/lib/dstar_decode_bs_impl.cc:48:71: error: ‘printf’
was not declared in this scope
printf("%s is %s.\n", device, device_is_closed ? "closed" : "opened");
^
lib/CMakeFiles/gnuradio-ambe3000.dir/build.make:158: recipe for target
'lib/CMakeFiles/gnuradio-ambe3000.dir/dstar_decode_bs_impl.cc.o' failed
make[2]: *** [lib/CMakeFiles/gnuradio-ambe3000.dir/dstar_decode_bs_impl.cc.o]
Error 1
CMakeFiles/Makefile2:137: recipe for target
'lib/CMakeFiles/gnuradio-ambe3000.dir/all' failed
make[1]: *** [lib/CMakeFiles/gnuradio-ambe3000.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
After adding the necessary #include <cstdio> I got a linker error:
libgnuradio-ambe3000.so: undefined reference to `CDStarHeader::~CDStarHeader()'
A-ha! your DStarHeader.h declares a destructor, but you never implement
it; so either remove that declaration in the header, or add an actual
implementation!
With those two modifications [1] instantiating ds_decode_bs works on the
syncing branch for me.
Cheers,
Marcus
[1] https://github.com/ac2ie/gr-ambe3000/pull/1
On 03.07.2016 20:44, Bastian Bloessl wrote:
> Hi,
>
> On 07/03/2016 07:50 PM, Tom Early wrote:
>> Thanks Marcus, for trying this. I tried what you suggested and there was
>> no love. I even tried to uninstall, then rm'ed the build folder and
>> rebuilt, with still no luck. You cloned the "syncing" branch, right? The
>> "master" branch works fine. I have gone back a couple of times to see if
>> I could figure out what I broke.
>
> IIRC, I had a similar problem and removing the try/except here:
>
> https://github.com/ac2ie/gr-ambe3000/blob/master/python/__init__.py#L30
>
> showed the actual error message. Maybe you want to try this.
>
> Best,
> Bastian
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
- [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Tom Early, 2016/07/01
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Marcus Müller, 2016/07/02
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Tom Early, 2016/07/03
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Bastian Bloessl, 2016/07/03
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT,
Marcus Müller <=
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Tom Early, 2016/07/04
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Sylvain Munaut, 2016/07/05
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Tom Early, 2016/07/06
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Marcus Müller, 2016/07/06
- Re: [Discuss-gnuradio] The AttributeError problem now that I have modified a working OOT, Tom Early, 2016/07/06