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: Tue, 4 Oct 2022 21:28:15 +0000

Hi Vasil,

It seems like moving /usr/bin before /bin in the PATH variable did not fix the issue with CMake. However, defining CMAKE_FIND_ROOT_PATH did!

Thank you so much 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: Tuesday, October 4, 2022 12:38 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,

Your problem looks a lot like one described in the USRP manual https://aus01.safelinks.protection.outlook.com/?url="">

> 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://aus01.safelinks.protection.outlook.com/?url="">
> ro-x.com%2F&amp;data=""> > d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7C63800
> 4659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2lu
> MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=eY8dK4LtU
> HvSpmOch4OyWk3LUeiBkeBD2o1UmPpWw1E%3D&amp;reserved=0>
>
> 855 South 192nd St, Suite 600
> SeaTac, WA, 98148, United States
> *https://aus01.safelinks.protection.outlook.com/?url=""> > micro-x.com%2F&amp;data=""> > 504d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7C63
> 8004659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=0LT37R
> kRdxhOeTjy26SXy3%2F%2BaaTqryj3%2BWNuMxCCdqI%3D&amp;reserved=0
> <
https://aus01.safelinks.protection.outlook.com/?url="">
> ro-x.com%2F&amp;data=""> > d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7C63800
> 4659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2lu
> MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=eY8dK4LtU
> HvSpmOch4OyWk3LUeiBkeBD2o1UmPpWw1E%3D&amp;reserved=0>*
>
>
> -----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=""> > A%2F%2Fwiki.gnuradio.org%2Findex.php%3Ftitle%3DCreating_c%252B%252B_OO
> T_with_gr-modtool&amp;data=""> > 1f6504d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7
> C638004659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIj
> oiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=6Xp
> RQfPxyc7VrI623hWnTPTwJ34CyP9JLzCFw8Os%2F88%3D&amp;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
>


reply via email to

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