Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

FreeDV gui build on ubuntu 24.02

162 views
Skip to first unread message

JH0PCF kanda

unread,
Feb 7, 2025, 7:09:17 PMFeb 7
to digitalvoice
Mooner,
JH0PCF Kanda
FreeDV gui on ubuntu
Version released on January 30, 2025
https://github.com/drowe67/freedv-gui/archive/refs/tags/v2.0.0-20250130.zip
I tried building it in an ubuntu24.02 environment
The steps in the README.md in the folder
## Building on Ubuntu Linux

```
$ sudo apt install libspeexdsp-dev libsamplerate0-dev sox git \
libwxgtk3.2-dev libhamlib-dev libasound2-dev libao-dev \
libgsm1-dev libsndfile1-dev cmake module-assistant build-essential
$ cd freedv-gui
(if using pipewire/PulseAudio -- recommended and the default)
$ sudo apt install libpulse-dev
$ ./build_linux.sh
When I build using this procedure, an error occurs midway and it stops.
Are there any other steps to build?
Also, can you reproduce this?
The log is below.
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
Python3_NumPy_INCLUDE_DIRS Development NumPy Development.Module
Development.Embed) (found version "3.12.3")
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.28/Modules/FindPython/Support.cmake:3862 (find_package_handle_standard_args)

/usr/share/cmake-3.28/Modules/FindPython3.cmake:545 (include)

CMakeLists.txt:50 (find_package)

-- Configuring incomplete, errors occurred!

make[2]: *** [CMakeFiles/build_rade.dir/build.make:92: build_rade-prefix/src/build_rade-stamp/build_rade-configure] Error 1

make[2]: Leaving directory '/home/hiroyuki/freedv-gui/build_linux'

make[1]: *** [CMakeFiles/Makefile2:332: CMakeFiles/build_rade.dir/all] Error 2

make[1]: Leaving directory '/home/hiroyuki/freedv-gui/build_linux'

make: *** [Makefile:156: all] Error 2

Mooneer Salem

unread,
Feb 8, 2025, 6:54:04 AMFeb 8
to digita...@googlegroups.com
Hi Kanda,

That error indicates that your Python environment isn't quite right. I recommend following the instructions in "Running RADE mode on Linux" (https://github.com/drowe67/freedv-gui/blob/v2.0-dev/README.md#running-rade-mode-on-linux) for compiling the v2.0 preview build on Linux, which also includes information on setting up Python appropriately.

Thanks,

-Mooneer K6AQ

--
You received this message because you are subscribed to the Google Groups "digitalvoice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to digitalvoice...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/digitalvoice/cbcfd784-b6b8-4029-8209-01f228d548aan%40googlegroups.com.

JH0PCF kanda

unread,
Feb 9, 2025, 4:46:01 AMFeb 9
to digitalvoice
Mooneer san

This is JH0PCF Kanda.

If you follow the steps on the site you introduced,

you will build a version before the RADE version was implemented.

In this case, should you download a file that can run RADE mode using

$ git clone https://github.com/drowe67/freedv-gui.git

https://github.com/drowe67/freedv-gui/archive/refs/tags/v2.0.0-20250130.zip

If you build using this script developed by Barry Jackson G4MKT, you will build the version 2.0.0.


Running RADE mode on Linux

RADE is a new FreeDV mode that uses machine learning to improve audio quality and decoding capabilities. Currently, initial development is focused on Windows and macOS, but you can run it on Linux by following the steps below.

Install the PyTorch, TorchAudio, and matplotlib Python packages. Some distributions have one or more of these packages, but you can also use pip in a Python virtual environment (recommended to ensure you get the latest version).

$ cd freedv-gui
$ python3 -m venv rade-venv
$ . ./rade-venv/bin/activate
(rade-venv) $ pip3 install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
(rade-venv) $ pip3 install matplotlib
python3-venvNote: You may need to install python3-venv or your distribution's equivalent package to create a Python virtual environment. Python 3.9 or later is also required for PyTorch to work.

Build FreeDV to ensure the correct dependencies (i.e. numpy) are linked.

(rade-venv) $ pwd
/home/<user>/freedv-gui
(rade-venv) $ ./build_linux.sh
Make sure FreeDV can find your ML model:

(rade-venv) $ pwd
/home/<user>/freedv-gui
(rade-venv) $ cd build_linux
(rade-venv) $ ln -s $(pwd)/rade_src/model19_check3 model19_check3
Run FreeDV:

(rade-venv) $ pwd
/home/<user>/freedv-gui/build_linux
(rade-venv) $ PYTHONPATH="$(pwd)/rade_src:$PYTHONPATH" src/freedv

2025年2月8日土曜日 20:54:04 UTC+9 Mooneer Salem:

Mooneer Salem

unread,
Feb 9, 2025, 8:54:20 AMFeb 9
to digita...@googlegroups.com
Hi Kanda,

Sounds like Barry's script worked for you, correct? The "Running RADE mode on Linux" section of the README should have worked for building a v2.0, though (you have to use the v2.0-dev branch, though, not master).

Thanks,

-Mooneer K6AQ

Message has been deleted

JH0PCF kanda

unread,
Feb 9, 2025, 5:48:38 PMFeb 9
to digitalvoice
mooner
JH0PCF Kabda

This script developed by Barry Jackson G4MKT is Plan B

The procedure described below is Plan A

With a clean install of ubuntu

$ sudo apt install libspeexdsp-dev libsamplerate0-dev sox git \
libwxgtk3.2-dev libhamlib-dev libasound2-dev libao-dev \
libgsm1-dev libsndfile1-dev cmake module-assistant build-essential

sudo apt install libpulse-dev
Install sudo apt install python 3.1.2-venv during the process

Then an error stops.

Are there any packages required to proceed with Plan A

After performing the steps of Plan B and the build is successful

If you perform the steps of Plan A, the build will be successful.
Using the package from https://github.com/drowe67/freedv-gui/archive/refs/tags/v2.0.0-20250130.zip.

Plan A Export Part

Install the PyTorch, TorchAudio, and matplotlib Python packages. Some distributions have one or more of these packages, but you can also use pip in a Python virtual environment (recommended to ensure you get the latest version).

$ cd freedv-gui $ python3 -m venv rade-venv $ . ./rade-venv/bin/activate (rade-venv) $ pip3 install torch torchaudio --index-url https://download.pytorch.org/whl/cpu (rade-venv) $ pip3 install matplotlib mand) cmake/BuildOpus.cmake:58 (ExternalProject_Add) CMakeLists.txt:25 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development NumPy Development.Module Development.Embed) (found version "3.12.3") Call Stack (most recent call first): /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.28/Modules/FindPython/Support.cmake:3862 (find_package_handle_standard_args) /usr/share/cmake-3.28/Modules/FindPython3.cmake:545 (include) CMakeLists.txt:50 (find_package) -- Configuring incomplete, errors occurred! make[2]: *** [CMakeFiles/build_rade.dir/build.make:92: build_rade-prefix/src/build_rade-stamp/build_rade-configure] Error 1 make[2]: directory Leaving '/home/hiro/freedv-gui/build_linux'

make[1]: *** [CMakeFiles/Makefile2:332: CMakeFiles/build_rade.dir/all] Error 2
make[1]: Leaving directory '/home/hiro/freedv-gui/build_linux'

make: *** [Makefile:156: all] Error 2

2025年2月9日日曜日 22:54:20 UTC+9 Mooneer Salem:

Mooneer Salem

unread,
Feb 9, 2025, 11:36:03 PMFeb 9
to digita...@googlegroups.com
Hi Kanda,

I'm not fully sure why the steps in A aren't working for some. Maybe it's something distro/version specific? In any case, it's probably easiest for most to just use Barry's script.

Thanks,

-Mooneer K6AQ

Rick Kunath

unread,
Feb 10, 2025, 1:13:21 PMFeb 10
to digita...@googlegroups.com, Mooneer Salem
I know I had to do a few things different here on Opensuse Tumbleweed,
Mooneer.

Some of the needed dep libs were named differently and that affected
what I needed to install to get things working. The python stuff was
different depending on what and how many different Python versions you
have loaded. I don't know that any of that applies to the Debian/Ubuntu
world though.

But it does point out the limitations of script based installations of
applications built from source. I have never cared for scripts. You have
to know what is there what is missing and work your way through the
build process to understand where you need to modify things. But I can
see that for non-developer folks they are convenient, as long as things
are as the script expects, including distro versioning and repos.

Rick Kunath, K9AO

Barry Jackson

unread,
Feb 11, 2025, 5:18:37 AMFeb 11
to digita...@googlegroups.com
Hi Rick,
The whole point of my script was to resolve these issues for most
current popular distros.

It detects the distro in use and uses the appropriate package manager
and package names.

Cheers,
Barry
G4MKT

Rick Kunath

unread,
Feb 11, 2025, 12:23:18 PMFeb 11
to digita...@googlegroups.com, Barry Jackson
Yep :) and extremely handy for a lot of folks that don't build software
from source often too Barry.

I haven't seen your script so you may already have this in there if you
are supporting OpenSuse Tumbleweed (zypper is its command line package
manager). I had to do a few things different than the readme as far as
building and getting the venv going.

Tumbleweed didn't like the sioclient that was included with the source,
so I had to install the distro version.

I also needed ssl and ssl3 and their dev libs. (I had the ssl and ssl3
libs already but had never needed the matching dev libs before.)

I have built software here many times before on a few other radio
related projects so other than the above I didn't have to go through the
rest of the needed deps and install them since they were already there.
So the above is not a complete list of all of the deps that are needed
for TW.

Tumbleweed uses python12-virtualenv so I had to install that.

And then to activate the venv: python3.12 -m venv rade-venv

Then the usual pip3 package installs (torch, torchaudio, matplotlib) and
ther est of the instructions for checking and setting the PYTHONPATH.

Other than that the build was pretty straightforward. I added a KDE menu
item and that's it.

It's likely impossible to support every distro, so in the case that the
script does not support TW it is easy enough to use the above mods tot
he installation instructions and get things built, installed, and running.

And thank you for your work to make FreeDV easy for others to use and
install Barry.

73,
Rick Kunath, k9AO

Rick, W7IMM

unread,
Feb 15, 2025, 4:13:18 AMFeb 15
to digitalvoice
You REALLY have me wanting to go back to TW Rick!

 

Rick Kunath

unread,
Feb 15, 2025, 12:42:31 PMFeb 15
to digita...@googlegroups.com, Rick, W7IMM
I have to say I do like Tumbleweed a lot and have for years.

RIck

JH0PCF kanda

unread,
Feb 17, 2025, 5:11:22 AMFeb 17
to digitalvoice

Mooneer san

This is JH0PCF Kanda.

I was previously informed that when building FreeDV 2.0.0
using this script developed by Barry Jackson G4MKT,
Is the file https://github.com/drowe67/freedv-gui/archive/refs/tags/v2.0.0-20250130.zip in the download link
at https://freedv.org necessary?
I was wondering because the script says
 Type: 'git clone https://github.com/barjac/freedv-rade-build' then ENTER.
2025年2月16日日曜日 2:42:31 UTC+9 Rick Kunath:

Barry Jackson

unread,
Feb 17, 2025, 7:36:12 AMFeb 17
to digita...@googlegroups.com
On 17/02/2025 10:11, JH0PCF kanda wrote:
>
> Mooneer san
>
> This is JH0PCF Kanda.
>
> I was previously informed that when building FreeDV 2.0.0
> using this script developed by Barry Jackson G4MKT,
> Is the file https://github.com/drowe67/freedv-gui/archive/refs/tags/
> v2.0.0-20250130.zip in the download link
> at https://freedv.org necessary?

No it's not needed, just follow the instructions :)


> I was wondering because the script says
>  Type: 'git clone https://github.com/barjac/freedv-rade-build' then ENTER.

Yes that is correct, just follow the instructions to use my script.

73
Barry
G4MKT

JH0PCF kanda

unread,
Feb 24, 2025, 5:13:28 PMFeb 24
to digitalvoice
Mooneer san


2025/02/17 19:11:22 (7 日前) 
This is JH0PCF kanda.My friend I was able to set up everything from Ununtu to FreeDV. However,
when using RADE, the RX FIFO full error keeps appearing, the RX spectrum gets torn
off, and the error RX FIFO full keeps appearing on the terminal. I tried increasing the
FIFO buffer in debug mode, but there was no change. I think this is because the machine power is insufficient.
2025年2月17日月曜日 21:36:12 UTC+9 Barry Jackson:

Mooneer Salem

unread,
Feb 24, 2025, 6:46:10 PMFeb 24
to digita...@googlegroups.com
Hi Kanda,

What hardware is your friend running? I'm not sure we've fully determined system requirements yet but it is possible that's the issue.

Also, it may be worth seeing if there are any pipewire or other system updates available. In the past, bugs with pipewire have caused issues with FreeDV.

Thanks,

-Mooneer K6AQ

--
You received this message because you are subscribed to the Google Groups "digitalvoice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to digitalvoice...@googlegroups.com.

JH0PCF kanda

unread,
Feb 25, 2025, 4:17:50 AMFeb 25
to digitalvoice
Mooneer san
JH0PCF This is Kanda.
My friend was able to set up everything from Ununtu to FreeDV. But when he uses RADE, the RX FIFO full error keeps appearing, the RX spectrum gets cut off, and the RX FIFO full error keeps appearing in the terminal. I tried increasing the FIFO buffer in debug mode, but there was no change. I think this is because the machine power is insufficient.

When I asked about the specs of the computer, I was told that it was a laptop that had been running Windows 7 from 15 years ago and had been updated to Windows 10. CPU: Intel Core i5-560UM Clock: 1.33GHz Memory: 4GB My Ubuntu 24.04 computer has an Intel Core i5 4000 series clock of 3GHz and 16GB of memory, and RADE mode works without any problems. RADE mode also works on Raspberry Pi 5 Ubuntu MATE, but symptoms such as it taking about 5 seconds to switch from transmitting for a long time to receiving and the SNR not becoming negative and showing a very large number have been reported. It has been reported that RADE mode works on Intel N100 in Windows 11. I think that the ability to execute AVX instructions is related to the operation of RADE mode, just like the 2020 mode, but is there any relationship? I am using the version released on January 30, 2025.

2025年2月25日火曜日 8:46:10 UTC+9 Mooneer Salem:

Mooneer Salem

unread,
Feb 25, 2025, 2:22:03 PMFeb 25
to digita...@googlegroups.com
Hi Kanda,

I'm not fully sure about the need for AVX and other processor extensions but based on your description of your friend's machine, it does sound like it's underpowered for RADE at this time. 

Thanks,

-Mooneer K6AQ

Rick Kunath

unread,
Feb 25, 2025, 3:36:48 PMFeb 25
to digita...@googlegroups.com, Mooneer Salem
My AMD FX-8350 8-core CPU at 4.2 GHz does not support the AVX extensions
and RADE runs fine.

Rick Kunath, K9AO

Barry Jackson

unread,
Feb 27, 2025, 9:36:17 AMFeb 27
to digita...@googlegroups.com
I see the same issue on a Raspberry Pi4 with 8GB RAM. :(
Reply all
Reply to author
Forward
0 new messages