|
From: | Jeon |
Subject: | Re: [Discuss-gnuradio] How to use other modules in my out-of-tree module? |
Date: | Mon, 23 Mar 2015 22:39:52 +0900 |
On Fri, Mar 20, 2015 at 4:07 AM, Jeon <address@hidden> wrote:Jeon.Regards,Does anyone have an idea for my problem?I think I need to modify CMakeLists.txt in somewhere and somehow to tell 'I will be using gr-dvbt', but I have no idea to do it.When I build my module with `make` command, the following errors appear:and so on.reed_solomon::reed_solomon d_rs(rs_p, rs_m, gfpoly, phy.rs_n, phy.rs_k, phy.rs_t2 / 2, phy.rs_s, blocks);and variable declaration:#include <dvbt/reed_solomon_enc.h>In my code, it contains:I've successfully installed gr-dvbt.In my out-of-tree module (in develop)I want to use Reed-Solomon encoder and decoder from [gr-dvbt](https://github.com/BogdanDIA/gr-dvbt)
#include <dvbt/reed_solomon_dec.h>
#include <dvbt/reed_solomon.h>
gr-mymodule/lib/utils.cc: In function ‘void outer_encode(char*, char*, tx_param&, phy_param&)’:
gr-mymodule/lib/utils.cc:170:3: error: ‘reed_solomon’ has not been declared
reed_solomon::reed_solomon d_rs(rs_p, rs_m, gfpoly, phy.rs_n, phy.rs_k, phy.rs_t2 / 2, phy.rs_s, blocks); // gr-dvbt
^I haven't tested this, just looked at the code, so not sure this is the full answer. You're using reed_solomon as the namespace, which it's not; it's the class name under the dvbt namespace. Try calling it like:dvbt::reed_solomon d_rs(...)You will have to link against the dvbt library in the CMakeLists.txt file (in the lib/ directory), but this is a compiler error, not a linker error.Tom
[Prev in Thread] | Current Thread | [Next in Thread] |