|Subject:||Re: [Discuss-gnuradio] How should I ignore certain block and add g++ compile options in compiling GNU Radio blocks ?|
|Date:||Mon, 15 Jul 2019 10:51:42 +0000|
Thank you for your advice, I will try to separate the new code for past two weeks into a new branch in the coming week.
After removing the block from the lib/CMakeLists.txt, I can successfully compile my block now. However, this block was not linked properly, I think.
I ran the ctest, and it gave these information below.
I put Shared_lib.cpp and Shared_lib.h in /include. I think the Shared_lib class was not linked properly, since this class need to load the shared library. It includes <dlfcn.h>, normally there need -rdynamic and -ldl options when using g++ to link the library. I am not sure how to modify the CMakeLists.txt in order to link Shared_lib correctly.
From: Müller, Marcus (CEL) <address@hidden>
Sent: Saturday, July 13, 2019 20:24
To: address@hidden; address@hidden
Subject: Re: [Discuss-gnuradio] How should I ignore certain block and add g++ compile options in compiling GNU Radio blocks ?
You can remove the block that you don't want to be compiled from the
Generally, as a good development practice, try to use git branches for
different features, with the "master" branch always being your "main"
branch into which you only merge working features :)
On Sat, 2019-07-13 at 14:08 +0000, Bowen Hu wrote:
> Hi all,
> I am working on my OOT block in GNU Radio now. I implemented a block
> but I have not finish it yet, while I completed another block, I want
> to build only the one that I completed. But according to the default
> cmake rules, they always seem to be compiled together, thus there are
> a lot of compile error because there are some unfinished part. How
> should I just compile the one that I need at the moment.
> My module also need some specific g++ compile option, namely
> -rdynamic and -ldl, I wonder where should I put these rules in the
> Thanks in advance for any advice.
> Best regards,
> Discuss-gnuradio mailing list
|[Prev in Thread]||Current Thread||[Next in Thread]|