discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] How to use other modules in my out-of-tree module?


From: Jeon
Subject: [Discuss-gnuradio] How to use other modules in my out-of-tree module?
Date: Fri, 20 Mar 2015 17:07:38 +0900

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)

I've successfully installed gr-dvbt.

In my code, it contains:

    #include <dvbt/reed_solomon_enc.h>
    #include <dvbt/reed_solomon_dec.h>
    #include <dvbt/reed_solomon.h>

and variable declaration:

    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 so on.

When I build my module with `make` command, the following errors appear:

    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 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.

Does anyone have an idea for my problem?

Regards,
Jeon.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]