Thanks Bastian,
I removed try/except int __init__.py and it gave:
ImportError: /usr/lib/libgnuradio-ambe3000.so: undefined symbol:
_ZN12CDStarHeaderD1Ev
I suspect this is telling about the undeclared destructor for
CDStarHeader, but I think I am to inexperienced to understand the _ZN12
prefix and D1Ev suffix!
Marcus,
Thanks! I removed the offending printf() and added an empty destructor
and can build successfully. Now I know that I have (a lot of) debugging
to do!
Do you have any idea why my system did not complain AT ALL when building
the syncing branch? I am using ubuntu 16.04 with the apt-installed grc
(3.7.9). Do I have some config screwed up somewhere?
Thanks again. I very much appreciate this support!
Tom
On 07/04/2016 05:22 AM, Marcus Müller wrote:
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
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio