wiki:Documentation/HOWTO/BuildOnDebian
Last modified 10 months ago Last modified on 03/25/16 15:58:07

Building on Debian _ Ubuntu (and friends) _ Mint _ Raspian


  1. Build dependencies
  2. Getting the source
  3. Compiling fldigi
  4. Final Touches


Build dependencies

First we need to insure that the source repository is enabled. To enable the source repository for Mint you can go to Menu > Control Center > Software Sources, select Source code and then click the Update Cache button. Ubuntu should have something similar, if not you can use Synaptic or your Software Manager to enable the source repository.

Debian usually has the source repository enabled by default but it's recommended to check

cat /etc/apt/sources.list

Ensure that in this file, you see a line that starts with "deb-src" and it's NOT disabled with a preceding "#" character. If it's currently #ed out, use your favorite editor run with sudo to remove the # character, save, and exit out of the editor.

To install the build dependencies you will probably need to use either sudo or su, whatever method applies to your distributuion. Do the following steps one at a time in a terminal.

$ sudo apt-get update

$ sudo apt-get install libxft-dev

$ sudo apt-get build-dep fldigi

The above commands will install the packages that are needed to build the repository version of fldigi.

Next you will need to build fltk from source. But first remove the fltk installs that the build-dep provided. Use Synaptic to assist you in removing those dependencies. fldigi will build with the build-dep files but you will not be happy with the font rendering. You can find the latest fltk source here:

http://www.fltk.org/index.php

or download fltk-1.3.3 source using wget

$ wget fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz

You will want to select the latest stable version, presently its 1.3.3. Save the tarball in your /home directory. Open your file manager, scroll to the tarball, right click and select either "Extract Here" or Extract To" depending where you put the download. It's easier to work with if it's in your ~/home directory. Now scroll up to the extracted tarball, right click, select "Open In Terminal". Do the following in order:

$ ./configure --enable-xft --enable-threads --enable-shared --enable-x11

$ make

$ sudo make install

$ sudo ldconfig

Note: do not use sudo for the "./configure" or the "make" command.

Getting the source

Using a web browser download the latest fldigi source compressed archive to your /home directory. Or you can download using wget

$ wget https://sourceforge.net/projects/fldigi/files/fldigi/fldigi-3.23.08.tar.gz

flamp, fllog, flmsg, flnet, flrig, flwkey, and flwrap  can similarly be obtained

$ wget https://sourceforge.net/projects/fldigi/files/flmsg/flmsg-2.0.15.tar.gz
$ wget https://sourceforge.net/projects/fldigi/files/flrig/flrig-1.3.24.tar.gz

Note that using wget from the terminal command line will generally be faster than using the web based http access.

The source compressed archive contains all the files needed to compile fldigi. xxx.tar.gz , xxx.tgz are common naming conventions for compressed archived created using the program 'tar'.

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.

OR from the command line, cd to the directory that contains the fldigi compressed archive. If that directory is ~/dev.

$ cd ~/dev

#Change the version number in the below command if a newer version of the given Fl-suite program was downloaded
$ tar xzf fldigi-3.23.08.tar.gz

#Change the version number in the below command if a newer version of the given Fl-suite program was downloaded
$ cd fldigi-3.23.08

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

Enables some compiler flags that can increase performance on modern x86 CPUs. If you have a recent gcc, use --enable-optimizations=native. Otherwise, use the highest SSE version supported by your CPU (you can check by running 'cat /proc/cpuinfo`. SSE2 should give a nice speed up on all recent processors. Next you will need to run this::

$ make

$ sudo make install

The same note applies to not using sudo for the make command. This "make install" 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.

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. This process was tested on 03/18/2016 on a computer running Linux Mint 17, 64 bit, by W1HKJ.