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 aptitude 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 basic development packages (all distros)

$ sudo aptitude install build-essential

Install the build dependency packages (all distros)

$ sudo aptitude build-dep fldigi

Aptitude will assist you in resolving any library version conflicts. This may occur on some Debian/Ubuntu/Mint recent distributions. Specifically, portaudio development headers / libs may conflict on a system with Jack pre-installed. Portaudio is required for fldigi to compile, so do not accept a recommendation that does not include installing the portaudio library. Aptitude will offer suggested solutions to resolve the conflict (including doing nothing).

Special Note for Pi users

Compiling fldigi requires more than the default swap space. You may need to increase the swap space on the microSD card. Please follow the example instructions at Pi Swap Space. 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/

If you want to be on the bleeding edge you can download from the alpha page

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

Note:

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

will allow access to all of the applications developed and supported by W1HKJ & associates, both distribution and alpha versions.

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-x.xx.xx.tar.gz
$ tar xzf fldigi-x.xx.xx.tar.gz
$ cd fldigi-x.xx.xx

where 'x.xx.xx' is the version number of the most recently posted source archive.

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 aptitude 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

 @pulseaudio --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: 2019/06/07 18:12 by 45.19.237.104