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. Debian already has the source repository enabled. For Raspbian it may or may not be enabled. To check you will need to look in the source.list file
$ cat /etc/apt/source.list It should have a line like deb-src http:/archive.raspbian.org/raspbian/ stretch main contrib non-free rpi "stretch" is for the August 2017 release. Your release may be different. This line is commented out when raspbian is first installed. If it is still commented out, then: *First, make a backup of the sources.list in case something goes wrong... $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup Using a text editor open /etc/apt/source.list - remember to do it under sudo - and remove the commenting. After saving the file, type $ sudo apt-get update
For Mint and the ubuntu derivatives, do the following in order:
Mint 18 - 18.1 Ubuntu - Lubuntu - Xubuntu using 16.04 $ sudo add-apt-repository "deb-src http://archive.ubuntu.com/ubuntu xenial main universe multiverse" *** For 16.10 users replace "xenial" with "yakkety yak" ***
If the above does not work… Some users may find that the “sudo add-apt-repository…” command does not work. If you suspect it doesn't work, you can test it and correct it by issuing the following commands at the prompt:
$ cat /etc/apt/sources.list ...If you don't see "deb-src http://archive.ubuntu.com/ubuntu xenial main universe multiverse" in the resulting output from above, then the add-apt-repository command did not work and you will need to add the repository to the list manually. Here is how: *First, make a backup of the sources.list in case something goes wrong... $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup *Now, append the new source line to the sources.list file... $ sudo bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu xenial main universe multiverse' >> /etc/apt/sources.list" Notice the double-quotation marks ["] and the single-quotation marks [']. The syntax is critical for this to work. As above, *** For 16.10 users replace "xenial" with "yakkety yak" *** ...Verify that it worked by typing the following command... $ cat /etc/apt/sources.list
You may now proceed with the following commands…
$ sudo apt-get update $ sudo apt-get install libxft-dev $ sudo apt-get build-dep fldigi
The last command will install the packages that are needed to build the repository version of fldigi.
To install the build dependencies you will probably need to use either sudo or su, whatever method applies to your distribution.
You may want to build and install the most recent stable version of the Fast Light Tool Kit, fltk. You will find that at::
The current stable release is version 1.3.4.
First remove all of the fltk that was installed by the build-dep. The easiest way to do this is using the apt support application Synaptic. If you need to install Synaptic use this command line:
$ sudo apt-get install synaptic
Then download and save the tarball (filename with the extension /tar.gz/ 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 :
./configure && make && sudo make install
You can also do this from a command line.
$ cd $ tar xzf fltk-1.3.4-1-source.tar.gz $ cd fltk-1.3.4 $ ./configure $ make && sudo make install $ sudo ldconfig
Download the latest source tarball to your /home directory.
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.
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
which 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 speedup on all recent processors. Note: On Pi3 do not include the –enable-optimizations=native.
When the configure has completed successfully:
$ make && sudo make install
This command will install the fldigi and flarq binaries, manual pages, icons and desktop launchers.
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.
Language Problems? On some distributions, the language may not be the one you need for all the applications to work properly. This is particularly true of flmsg. For instance, for US-English users, you may find that in an flmsg message-compose window, when you depress either <SHIFT> key on the keyboard, odd characters are placed in the window. This problem might be related to the UTF-8 language selection. If this happens (and you don't want it to), the following procedures may solve your problem:
In the operating system GUI, click on the Start->Settings->Languages GUI tool (or the equivalent, depending on the Desktop Environment you have installed). Click on the "Install/Remove Languages" button. Install the "English United States" or "English United States ISO8859-1" language selection. Select "English, United States" by clicking on the "Language" and "Region" buttons. Click "Apply System Wide" on the Locale button. Then reboot your computer (or log out then log back in), and verify that message composition in flmsg works properly.