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

2022-10-17 Thread Michael Matthews
Hi Cinaed,

I took your suggestion of making the customModule with gr-modtool at the $HOME 
directory, in case this may be required. The tutorial implied this was not 
necessary, but I gave it a shot anyway. Invoking cmake from
$HOME/gr-customModule/build
as
cmake ..
resulted in no change and the error is still present if I do not use the flag:
-DCMAKE_FIND_ROOT_PATH=usr/

When you mention there are 9 CMakeLists.txt files in your directory, I believe 
those are the same as I listed. Could you clarify if you have any outside those 
specific paths I mentioned?

I also wanted to follow up on your suggestion that I should not be seeing the 
line
   -- Using install prefix: /usr/local
in my cmake output. It seems that that is printed from 
$HOME/gr-customModule/lib/CMakeLists.txt line 47 (in the print summary 
section). It prints CMAKE_INSTALL_PREFIX, which is /usr/local by default on 
UNIX systems according to cmake documentation. Could you also clarify what I 
should be seeing instead?

You also mention that if invoking cmake doesn't work, it most likely operator 
error. Again, I am new to gnuradio and I am unsure what that error would be. I 
followed the tutorials verbatim. I am running gnuradio 3.10.4, cmake 3.16.3, 
and Ubuntu 20.04.
I have tested this now on two clean VM installs of Ubuntu 20.04 and gnuradio 
3.10.4 (through the apt PPA) and am still seeing this error.

I appreciate the help! Cheers,



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


[https://micro-x.com/esignature/micro-x-lo...@2x-white-bg.png]

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

From: Cinaed Simson 
Sent: Thursday, October 13, 2022 8:57 PM
To: Michael Matthews 
Subject: Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)

The tool

   gr-modtool

creates the directories and the files needed by cmake in

  $HOME/gr-customModule

There are 9 CMakeLists.txt in my directory - ones for grc, python, etc.

Then cmake creates the Makefiles needed by make to perform the install on the 
system.

You should be able to create a build directory

   $HOME/gr-customModule/build

and if you

  cd $HOME/gr-customModule/build

then type

  cmake ..

it should work.

If it doesn't then it's most likely operator error.

Further, you're not required to follow the procedure in the tutorial but then 
you're on your own.

I'm running

   gnuradio 3.10.4

and

   cmake 3.18.4-2

-- Cinaed
On 10/8/22 18:56, Michael Matthews wrote:
Hi Cinead,

I should clarify that I am following the tutorial for Creating C++ OOT with 
gr-modtool.

Cmake was invoked from ./build with as
$ cmake ..
and it resulted in the error I listed previously.

I also tried invoking cmake from . as
$ cmake -S . -B build/
This also resulted in the same error.

Vasil did give me a solution that did seem to work, which was to invoke cmake 
from ./build as
$ cmake -DCMAKE_FIND_ROOT_PATH=/usr ..
After cmake worked, I used
$ make
$ sudo make install
and that worked as intended.

I should also mention that from my experience with gnuradio 3.10.4, 
lib/CMakeLists.txt was already created prior to invoking cmake for the first 
time.
$ gr_modtool newmod customModule
from .. seemed to create all the CMakeLists.txt files in the following 
directories:
.
./apps
./docs
./docs/doxygen
./grc
./include/gnuradio/customModule
./lib
./python/customModule
./python/customModule/bindings
Using
$ gr_modtool add multDivSelect
from . added no new CMakeLists.txt files and only edited ./grc/CMakeLists.txt 
(according to what the tool printed to the terminal)

I should also mention that I installed gnuradio 3.10.4 on Ubuntu 20.04 from the 
ppa using:
$ sudo add-apt-repository ppa:gnuradio/gnuradio-releases
$ sudo apt-get update
$ sudo apt-get install gnuradio
$ sudo apt-get install gnuradio-dev \
libiio-dev \
libad9361-dev \
libspdlog-dev \
python3-packaging \
python3-jsonschema \
cmake \
doxygen \
clang-format
This set of commands was taken from the 
InstallGR
 tutorial, 
UbuntuInstall
 tutori

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

2022-10-17 Thread Cinaed Simson

The cmake flag

-DCMAKE_FIND_ROOT_PATH=usr/

has an incorrect root element - it's root element.

Make sure the CMAKE_FIND_ROOT_PATH defined by you has been removed.

Then start a new build:

  cd $HOME/gr-customModule
   rm -fr build
   mkdir bulid
   cd build
   cmake ..

-- Cinaed

On 10/17/22 11:43, Michael Matthews wrote:


Hi Cinaed,

I took your suggestion of making the customModule with gr-modtool at 
the $HOME directory, in case this may be required. The tutorial 
implied this was not necessary, but I gave it a shot anyway. Invoking 
cmake from


$HOME/gr-customModule/build

as

cmake ..

resulted in no change and the error is still present if I do not use 
the flag:


-DCMAKE_FIND_ROOT_PATH=usr/

When you mention there are 9 CMakeLists.txt files in your directory, I 
believe those are the same as I listed. Could you clarify if you have 
any outside those specific paths I mentioned?


I also wanted to follow up on your suggestion that I should not be 
seeing the line

   -- Using install prefix: /usr/local

in my cmake output. It seems that that is printed from 
$HOME/gr-customModule/lib/CMakeLists.txt line 47 (in the print summary 
section). It prints CMAKE_INSTALL_PREFIX, which is /usr/local by 
default on UNIX systems according to cmake documentation. Could you 
also clarify what I should be seeing instead?


You also mention that if invoking cmake doesn’t work, it most likely 
operator error. Again, I am new to gnuradio and I am unsure what that 
error would be. I followed the tutorials verbatim. I am running 
gnuradio 3.10.4, cmake 3.16.3, and Ubuntu 20.04.


I have tested this now on two clean VM installs of Ubuntu 20.04 and 
gnuradio 3.10.4 (through the apt PPA) and am still seeing this error.


I appreciate the help! Cheers,

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 *

*From:*Cinaed Simson 
*Sent:* Thursday, October 13, 2022 8:57 PM
*To:* Michael Matthews 
*Subject:* Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)

The tool

gr-modtool

creates the directories and the files needed by cmake in

  $HOME/gr-customModule

There are 9 CMakeLists.txt in my directory - ones for grc, python, etc.

Then cmake creates the Makefiles needed by make to perform the install 
on the system.


You should be able to create a build directory

   $HOME/gr-customModule/build

and if you

  cd $HOME/gr-customModule/build

then type

  cmake ..

it should work.

If it doesn't then it's most likely operator error.

Further, you're not required to follow the procedure in the tutorial 
but then you're on your own.


I'm running

   gnuradio 3.10.4

and

   cmake 3.18.4-2

-- Cinaed

On 10/8/22 18:56, Michael Matthews wrote:

Hi Cinead,

I should clarify that I am following the tutorial for Creating C++
OOT with gr-modtool.

Cmake was invoked from ./build with as

$ cmake ..

and it resulted in the error I listed previously.

I also tried invoking cmake from . as

$ cmake -S . -B build/

This also resulted in the same error.

Vasil did give me a solution that did seem to work, which was to
invoke cmake from ./build as

$ cmake -DCMAKE_FIND_ROOT_PATH=/usr ..

After cmake worked, I used

$ make

$ sudo make install

and that worked as intended.

I should also mention that from my experience with gnuradio
3.10.4, lib/CMakeLists.txt was already created prior to invoking
cmake for the first time.

$ gr_modtool newmod customModule

from .. seemed to create all the CMakeLists.txt files in the
following directories:

.

./apps

./docs

./docs/doxygen

./grc

./include/gnuradio/customModule

./lib

./python/customModule

./python/customModule/bindings

Using

$ gr_modtool add multDivSelect

from . added no new CMakeLists.txt files and only edited
./grc/CMakeLists.txt (according to what the tool printed to the
terminal)

I should also mention that I installed gnuradio 3.10.4 on Ubuntu
20.04 from the ppa using:

$ sudo add-apt-repository ppa:gnuradio/gnuradio-releases

$ sudo apt-get update

$ sudo apt-get install gnuradio

$ sudo apt-get install gnuradio-dev \

libiio-dev \

libad9361-dev \

libspdlog-dev \

python3-packaging \

python3-jsonschema \

cmake \

doxygen \

clang-format

This set of commands was taken from the InstallGR



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

2022-10-17 Thread Michael Matthews
Hi Cinaed,

Yes, sorry that was a typo. The flag I have been using is:
  -DCMAKE_FIND_ROOT_PATH=/usr  (not =usr/)
Running
cmake ..
from
$HOME/gr-customModule/build
without that flag still results in the error.

I am unsure what you mean by remove CMAKE_FIND_ROOT_PATH, are you saying you 
believe I need to alter my cmake installation for this to work without the flag?

Doing some more digging through the wiki, I did find that I could check my 
gnuradio configuration information using gnuradio-config-info. If I run
  gnuradio-config-info -prefix
I get:
/usr/
If this is related to the cmake root path, it seems to be set correctly by 
default when I installed gnuradio through the ppa.

I also tried upgrading my version of cmake to see if that would help. I removed 
the old version using apt (3.16.3) and installed the one managed through snap 
(3.24.2). This however did not solve the issue.

I am going to try uninstalling gnuradio with apt again, but will build gnuradio 
from source instead, and see if there have been any changes that may have fixed 
this. If not, and if there are no objections, I am inclined to submit an issue 
ticket since there seems to be problems with the cmake imported targets

 *   gnuradio::gnuradio-runtime
 *   Boost::date_time
When building an OOT using gr_modtool on fresh installs of v3.10.4.0 and Ubuntu 
20.04.

Thank you,


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


[https://micro-x.com/esignature/micro-x-lo...@2x-white-bg.png]

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

From: Cinaed Simson 
Sent: Monday, October 17, 2022 4:41 PM
To: Michael Matthews ; GNURadio Discussion List 

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

The cmake flag

   -DCMAKE_FIND_ROOT_PATH=usr/

has an incorrect root element - it's root element.

Make sure the CMAKE_FIND_ROOT_PATH defined by you has been removed.

Then start a new build:

  cd $HOME/gr-customModule
   rm -fr build
   mkdir bulid
   cd build
   cmake ..

-- Cinaed
On 10/17/22 11:43, Michael Matthews wrote:
Hi Cinaed,

I took your suggestion of making the customModule with gr-modtool at the $HOME 
directory, in case this may be required. The tutorial implied this was not 
necessary, but I gave it a shot anyway. Invoking cmake from
$HOME/gr-customModule/build
as
cmake ..
resulted in no change and the error is still present if I do not use the flag:
-DCMAKE_FIND_ROOT_PATH=usr/

When you mention there are 9 CMakeLists.txt files in your directory, I believe 
those are the same as I listed. Could you clarify if you have any outside those 
specific paths I mentioned?

I also wanted to follow up on your suggestion that I should not be seeing the 
line
   -- Using install prefix: /usr/local
in my cmake output. It seems that that is printed from 
$HOME/gr-customModule/lib/CMakeLists.txt line 47 (in the print summary 
section). It prints CMAKE_INSTALL_PREFIX, which is /usr/local by default on 
UNIX systems according to cmake documentation. Could you also clarify what I 
should be seeing instead?

You also mention that if invoking cmake doesn't work, it most likely operator 
error. Again, I am new to gnuradio and I am unsure what that error would be. I 
followed the tutorials verbatim. I am running gnuradio 3.10.4, cmake 3.16.3, 
and Ubuntu 20.04.
I have tested this now on two clean VM installs of Ubuntu 20.04 and gnuradio 
3.10.4 (through the apt PPA) and am still seeing this error.

I appreciate the help! Cheers,



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

[https://micro-x.com/esignature/micro-x-lo...@2x-white-bg.png]

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

From: Cinaed Simson 
Sent: Thursday, October 13, 2022 8:57 PM
To: Michael Matthews 
Subject: Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)

The tool

   gr-modtool

creates the directories and the files needed by cmake in

  $HOME/gr-customModule

There are 9 CMakeLists.txt in my directory - ones for grc, python, etc.

Then