discuss-gnuradio
[Top][All Lists]
Advanced

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

RE: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)


From: Michael Matthews
Subject: RE: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)
Date: Mon, 3 Oct 2022 18:12:00 +0000

Hi Vasil,

I installed gnuradio from the ppa. Specifically, I did:

        $ sudo add-apt-repository ppa:gnuradio/gnuradio-releases
        $ sudo apt-get update
        $ sudo apt-get install gnuradio python3-packaging
        $ sudo apt install libiio-dev libad9361-dev libspdlog-dev python3-packaging python3-jsonschema
        $ sudo apt-get install gnuradio-dev cmake libspdlog-dev clang-format

The instillation wiki does note that the python packaging module might need to be installed using pip for 3.10. Running that installation just tells me that "the requirement is already satisfied" so I believe it is already up to date. It is also mentioned on Ubuntu 18.04 there is an issue with gr_modtool when installed from the PPA, but it says the issue is not appearing for Ubuntu 19 and later.
 
As far as the date_time dependency is concerned, I am unsure where that is being used. I did not import it myself. The Cmake was procedurally generated using the gr-modtool, following the tutorial exactly. The tutorial is fairly simple, adding a boolean selector, which determines whether two input values should either be multiplied or divided with:

{
    auto in0 = static_cast<const input_type*>(input_items[0]);
    auto in1 = static_cast<const input_type*>(input_items[1]);
    auto out = static_cast<output_type*>(output_items[0]);

    for (int index = 0; index < noutput_items; index++) {
        if (_selector) { out[index] = in0[index] * in1[index]; }
        else{ out[index] = in0[index] / in1[index]; }
    }

    // Tell runtime system how many output items we produced.
    return noutput_items;
}

Thank you for your help,               

Michael Matthews
Graduate Software Engineer
Mobile: +1 847 714 4809

Micro-X

855 South 192nd St, Suite 600
SeaTac, WA, 98148, United States
www.micro-x.com


-----Original Message-----
From: Vasil Velichkov <vvvelichkov@gmail.com>
Sent: Monday, October 3, 2022 8:47 AM
To: Michael Matthews <mmatthews@micro-x.com>; discuss-gnuradio@gnu.org
Subject: Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)

Hi Michael,

On 03/10/2022 08.21, Michael Matthews wrote:
> Hello,
>
> I am new to gnuradio and have been going through the tutorials. I have been specifically interested in Creating C++  OOT with gr-modtool<https://aus01.safelinks.protection.outlook.com/?url="" but I seem to be getting errors when trying to use cmake to create the make files.

> CMake Error in lib/CMakeLists.txt:
>   Imported target "gnuradio::gnuradio-runtime" includes non-existent path
>
>     "/include"
>
>   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

You are probably missing some development dependency installed on your system. How did you install gnuradio 3.10.4 - from the ppa, from source, ...?

> CMake Error in python/customModule/bindings/CMakeLists.txt:
>   Imported target "Boost::date_time" includes non-existent path
>
>     "/include"
>
>   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

This Boost::data_time dependency is a bit strange. Have you tried adding this to your OOT module?

Regards,
Vasil


reply via email to

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