AppImage on FlexRadio on ubuntu

36 views
Skip to first unread message

Martin Berube

unread,
Nov 30, 2025, 8:09:07 AM (3 days ago) Nov 30
to digitalvoice
Hello All,

I have deployed sucessfully the Flexradio wareform integrtion on a raspberry pi as documented by Mike below:


Now it would be more convenient for me to run it from a PC running Ubuntu 24.04.  So I started compiling from the source code.  Obviously it didn't went well.

When invokingmake -j$(nproc) freedv-flex, I get en error message that samplerate.h is missing. I gathered that this library is build in a earlier step.

So I did the steps for the base FreedV source. the ./build_linux/freedv always ending with an error.

Is anyone have a clue to get over theses errors?

Thanks,
73

Mooneer Salem

unread,
Nov 30, 2025, 3:07:15 PM (3 days ago) Nov 30
to digitalvoice
Since the Flex waveform shares a fair amount of code with the regular FreeDV application, you'll need to install the packages as outlined in the README:

$ 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 \
autoconf automake libtool libebur128-dev

(I copied the above verbatim but IIRC you don't need Hamlib or wxWidgets for Flex support.)

You should then be able to do the following to build freedv-flex:

$ mkdir build
$ cd build
$ cmake ..
$ make freedv-flex

Once that's built, you can run it per the instructions at https://github.com/drowe67/freedv-gui/blob/master/src/integrations/flex/README.md. Hope that helps! 

-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/ca64a5c7-729f-4773-b50d-d44d149892bfn%40googlegroups.com.

Martin Berube

unread,
Nov 30, 2025, 6:14:06 PM (3 days ago) Nov 30
to digitalvoice
Thanks for the tip.   I've got some more issues but I was able to resolve them.

Here's a summary of my deployment

# required packages installation

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 \
autoconf automake libtool libebur128-dev

#download FreeDV sources from repository
git clone https://github.com/drowe67/freedv-gui.git

# Python environment setup
$ python3 -m venv rade-venv
$ source rade-venv/bin/activate
$ pip install --upgrade pip
$ pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
$ pip install matplotlib numpy
4 pip install "numpy<2" --force-reinstal # fix numpy compatibility issue

#Download Rade from repository
$ git clone https://github.com/drowe67/radae.git rade_src

#Waveform compilation
$ mkdir build
$ cd build
$ cmake ..
$ cp -r ../rade_src/* ./rade_src/
$ make freedv-flex

# waveform execution
 $PYTHONPATH=$(pwd)/rade_src src/integrations/flex/freedv-flex 

Mooneer Salem

unread,
Nov 30, 2025, 6:25:01 PM (3 days ago) Nov 30
to digita...@googlegroups.com
Good to hear that you got it working. A few questions/notes:

1. numpy 2.x should work (and in fact, is what the released AppImages use). Not sure offhand why 1.x has to be forced in your setup.
2. The build process should be downloading RADE and sticking the rade_src folder inside the build folder, so no need to git clone it manually.

-Mooneer K6AQ

Martin Berube

unread,
Nov 30, 2025, 7:10:41 PM (3 days ago) Nov 30
to digitalvoice
1. Not sure what happened with numpy:  Here is a dump of what I was getting that required the fix:

$PYTHONPATH=$(pwd)/rade_src src/integrations/flex/freedv-flex 22:20:47 INFO /home/beru/freedv-gui/src/integrations/flex/main.cpp:107: Initializing RADE library... 22:20:47 INFO /home/beru/freedv-gui/src/integrations/flex/main.cpp:110: Creating RADE object Python garbage collector disabled (previous state 1) model file: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.3.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last):import_array returned: -1 model_name: model19_check3/checkpoints/checkpoint_epoch_100.pth bypass_enc: 1 Rs: 33.33 Rs': 50.00 Ts': 0.020 Nsmf: 120 Ns: 4 Nc: 30 M: 160 Ncp: 32 n_features_in: 432 n_floats_in: 240 Nmf: 960 Neoo: 1152 n_eoo_bits: 180 Segmentation fault (core dumped)

2. I have noticed the rade_src under the build folder was empty.   I fix it by downloading from git.  Maybe there is a better solution.

73
Martin VA2PX

Mooneer Salem

unread,
Nov 30, 2025, 8:15:39 PM (3 days ago) Nov 30
to digita...@googlegroups.com
Hi Martin,

Were you inside the venv at the time of running cmake/make? I wonder if freedv-flex accidentally linked to the system numpy and tried to execute using the one in the venv, which would definitely cause problems. 

Also, I suspect a full rebuild (i.e. delete everything in the build folder and running cmake and make again) would populate rade_src properly. In any case, glad everything's working now!

Thanks,

-Mooneer K6AQ

Reply all
Reply to author
Forward
0 new messages