User Tools

Site Tools


howto:building_on_debian-ubuntu-mint

Building on Debian - Ubuntu, Mint, Pi3

Build dependencies

On Debian, Ubuntu, Mint, and Pi3 Raspbian it is easiest to install the build dependencies for fldigi using build-dep. You will need to have the source repository enabled. You edit the file /etc/apt/sources.list.d using the text editor “nano”. This is a system file so you will execute nano as root.

$ sudo nano /etc/apt/sources.list

Uncomment (delete the “# ”) from the lines which contain “deb-src”. Save the changes by exiting nano with a control-O, control-X sequence. Then update the apt sources.

$ sudo apt-get update

*NOTES for Mint 18 - 19* On some installations (particularly persistent-file USB memory stick installations) the above does not work because the “deb-src” line does not appear in the repository list. If the “deb-src” does not appear in your repository list as above, manually edit the apt sources to add a new sources list file:

$ sudo nano /etc/apt/sources.list.d/fldigi.list

Add the following line, then save the fldigi.list file:

deb-src http://archive.ubuntu.com/ubuntu xenial main universe multiverse

Then update the repositories:

$ sudo apt-get update

*End of Mint 18 - 19 Notes*

If Synaptic is not installed on your system ::

$ sudo apt-get install synaptic

Open Synaptic, under the Settings tab select Repositories. Bottom left click the Enable Source Code Repositories, then click on Update Cache in the upper right.

You may now proceed with the following command in a terminal ::

$ sudo apt-get build-dep fldigi

You are now ready to build fldigi.

Getting the fldigi source

Download the latest ​source tarball (tar.gz) to your /home directory.

http://www.w1hkj.com/files/fldigi/

The source tarball contains all the files needed to compile fldigi.

You will need to unpack the tarball to complete the installation. Open your file manager and scroll to the tarball, right click select Extract Here. Scroll up to the unpacked tarball, right click select Open In Terminal. And again as above depends on where the downloaded tarball is.

Alternate procedure from a terminal, including creating a development directory in the user home directory.

$ cd
$ mkdir dev
$ cd dev
$ wget http://www.w1hkj.com/files/fldigi/fldigi-4.0.16.tar.gz
$ tar xzf fldigi-4.0.16.tar.gz
$ cd fldigi-4.0.16

Compiling fldigi

At this point you will have a source tree extracted from the tarball containing a configure script. The following command will prepare the source for compilation.

The configure command generates the Makefiles that make uses to run the compiler and linker. configure has various options to fine-tune the build.

$ ./configure --enable-optimizations=native
  • Note on Pi3 DO NOT include the –enable-optimizations=native.

Successful completion of the configure will report a configuration summary:

Configuration summary:

  Version .......................... 4.0.16

  Static linking ................... no
  CPU optimizations ................ native
  Debugging ........................ no

  fldigi ........................... yes
  flarq ............................ yes

  i18n ............................. yes

fldigi build options:

  sndfile .......................... yes
  oss .............................. yes
  portaudio ........................ yes
  pulseaudio ....................... yes
  
  flxmlrpc ......................... external lib
  
  hamlib ........................... yes

Proceed to make and install fldigi and flarq.

$ make && sudo make install

This command will install the fldigi and flarq binaries, manual pages, icons and desktop launchers.

Final Touches

The recommended sound server for fldigi is Pulse Audio, but you will need to install the volume manager.

$ sudo apt-get install pavucontrol

Open the volume manager and in the first 2 tabs, make sure you select the correct sound card. Also set Playback to 50%, you will also want to set the Output to 50% as not to over-drive the output during the initial set up.

Pi3 users may find the pulse sound server is not started at boot. If so add the following to /home/pi/.config/lxsession/LXDE-pi/autostart

 @pulseadio --start

Next you will need to add yourself to the dialout group. There are two ways to do this.

You can use the Users and Groups found in your menu or from a terminal::

$ sudo adduser (your user name) dialout

In either case you will need to log out and back in for it to take effect.

That should get you up and running with fldigi.

Edited by :: Ed W3NR, Dave W1HKJ, Joe K0OG

howto/building_on_debian-ubuntu-mint.txt · Last modified: 2018/07/31 16:48 by 216.229.78.90