[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: |
Vasil Velichkov |
Subject: |
Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4) |
Date: |
Tue, 4 Oct 2022 10:38:28 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
Hi Michael,
Your problem looks a lot like one described in the USRP manual
https://files.ettus.com/manual/page_build_guide.html#generate_unix
> If you encounter this issue, ensure that /usr/bin appears before /bin in the
> PATH environment variable of the process executing CMake. Alternatively, you
> can pass the CMAKE_FIND_ROOT_PATH configuration variable to CMake with a
> value of /usr to point it to the right starting directory for filesystem item
> searches.
>
> Example usage:
>
> cmake -DCMAKE_FIND_ROOT_PATH=/usr ../
Regards,
Vasil
On 03/10/2022 21.12, Michael Matthews wrote:
> 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 <https://micro-x.com>
>
> 855 South 192nd St, Suite 600
> SeaTac, WA, 98148, United States
> *www.micro-x.com <https://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=https%3A%2F%2Fwiki.gnuradio.org%2Findex.php%3Ftitle%3DCreating_c%252B%252B_OOT_with_gr-modtool&data=05%7C01%7Cmmatthews%40micro-x.com%7C579e753e09184cc1a5f808daa5567e76%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7C638004088163904380%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JH2zIC9QFD5elNu5PDZ8FmvCNhP6UF%2FNbYC25GDNN9w%3D&reserved=0>
>
> 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
>
- Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Michael Matthews, 2022/10/03
- Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Cinaed Simson, 2022/10/08
- Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Cinaed Simson, 2022/10/08
- Message not available
- Message not available
- RE: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Michael Matthews, 2022/10/17
- Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Cinaed Simson, 2022/10/17
- RE: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Michael Matthews, 2022/10/17
- Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Cinaed Simson, 2022/10/18
Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4), Ryan Volz, 2022/10/18