|
From: | Bowen Hu |
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 |
Hi Marcus,
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.
Best regards,
Bowen
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
lib/CMakeLists.txt . 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 :) Best regards, Marcus 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 > makefile? > > Thanks in advance for any advice. > > Best regards, > Bowen > _______________________________________________ > Discuss-gnuradio mailing list > address@hidden > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio |
[Prev in Thread] | Current Thread | [Next in Thread] |