Skip to content

Conversation

@commodo
Copy link
Contributor

@commodo commodo commented Dec 23, 2020

Adapted from iio-osciloscope.
Only building for newer Linux distros (Ubuntu 20.04 and CentOS 8), since
the GnuRadio version is 3.8 in those distros and we don't want to build it
(as we used to) for older distros.

Homebrew and OS X seem to require some more investigation to get the
linking working.

Signed-off-by: Alexandru Ardelean [email protected]

In recent versions, the '-y' argument isn't working/recognized and causes
the build to fail.
Don't use it for Homebrew, since it's not required.

Signed-off-by: Alexandru Ardelean <[email protected]>
Seems it was forgotten

Signed-off-by: Alexandru Ardelean <[email protected]>
In order for this script to compile on Python3, the print function needs
round braces.

Signed-off-by: Alexandru Ardelean <[email protected]>
Building GNURadio is a bit of an effort, and complicates things.
We don't need to do it anymore in newer distros.

We also need to install Python2 development libraries for now.
That'll be cleaned up in newer commits.

Signed-off-by: Alexandru Ardelean <[email protected]>
When building in Ubuntu 20.04, the PC_GNURADIO_RUNTIME_VERSION seems to be
empty. The Gnuradio_VERSION seems to be defined though.

Signed-off-by: Alexandru Ardelean <[email protected]>
After following the porting guide (GR 3.7 to 3.8) for a bit [1] and
following one of the examples for SWIG [2], this seemed to be change to
make the SWIG stuff build.

[1] https://wiki.gnuradio.org/index.php/GNU_Radio_3.8_OOT_Module_Porting_Guide
[2] https://github.com/ghostop14/gr-grnet/blob/master/swig/CMakeLists.txt

Signed-off-by: Alexandru Ardelean <[email protected]>
This change switches to the Python3 development libraries.

Gnuradio development libraries will pull Python3 development libraries
on Ubuntu 20.04.

On CentOS 8, these need to be explicitly installed.

In the CMake files, in the 'find_package(PythonLibs 2)' part, the
limitation to 2 is removed. This still allows Python2 if needed.

Signed-off-by: Alexandru Ardelean <[email protected]>
That is how the new build scripts are now organized.

Signed-off-by: Alexandru Ardelean <[email protected]>
Adapted from iio-osciloscope.
Only building for newer Linux distros (Ubuntu 20.04 and CentOS 8), since
the GnuRadio version is 3.8 in those distros and we don't want to build it
(as we used to) for older distros.

Homebrew and OS X seem to require some more investigation to get the
linking working.

Signed-off-by: Alexandru Ardelean <[email protected]>
@commodo
Copy link
Contributor Author

commodo commented Dec 23, 2020

Disabled appveyor for this repo, since it's failing anyway.

For OS X builds:

I guess at this point having a Mac around would be handy.
For now [and for me] this year, I'll settle with 2 Linux builds for gr-iio.

@commodo
Copy link
Contributor Author

commodo commented Dec 23, 2020

Disabled appveyor for this repo, since it's failing anyway.

I disabled appveyor after it started. So, the failures showing up is still expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants