User Tools

Site Tools


howto:building_on_debian-ubuntu-mint

Building on Debian, Ubuntu, Linux Mint and Raspbian/RPi3

Build dependencies

On Debian, Ubuntu, Linux Mint and Raspbian/RPi3 it is easiest to install the build dependencies for fldigi using the apt-get build-dep command. To do this, source code repositories must be enabled.

Enable source repositories on Debian, Ubuntu and Raspbian/RPi3

Edit the file /etc/apt/sources.list using the text editor nano in a terminal window. This is a system file so you must execute commands as root.

First, make a backup copy of the file:

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

Now edit the file:

$ sudo nano /etc/apt/sources.list

Uncomment the lines which start with “deb-src” by deleting the leading “# ” characters. Save the changes with control-O, then exit nano with control-X.

Next, update the apt package cache:

$ sudo apt-get update

Enable source repositories on Linux Mint 18 or Linux Mint 19

Choose Administration→Software Sources from the main menu to open the Software Sources program. Check Enable source code repositories. Next, update the apt cache:

  • on Linux Mint 18: click the Update the cache button
  • on Linux Mint 19: click the OK button

Close the Software Sources program.

Install the dependencies

Proceed by running the following command in a terminal window:

$ 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 from here:

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

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

Unpacking the tarball

Open your file manager and locate the downloaded tarball. Right-click the file and select Extract Here. Scroll up to the unpacked tarball directory, right-click and select Open In Terminal.

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.18.tar.gz
$ tar xzf fldigi-4.0.18.tar.gz
$ cd fldigi-4.0.18

Compiling fldigi

At this point you will have a source tree extracted from the tarball containing a configure script. Now you need to prepare the source for compilation with the configure command. This generates the Makefiles that make uses to run the compiler and linker. configure has various options to fine-tune the build. Run it in the terminal window:

$ ./configure --enable-optimizations=native
  • Note the leading “./” prefixed to configure.
  • Do not include the –enable-optimizations=native option if building on Raspbian/RPi3.

Successful completion of configure prints a configuration summary:

Configuration summary:

  Version .......................... 4.0.18

  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, Bob NW8L

howto/building_on_debian-ubuntu-mint.txt · Last modified: 2018/09/05 03:56 by 67.41.4.172