Building wspr on Linux Mint 17 from source

15 posts / 0 new
Last post
ve3ghm
Offline
Last seen: 6 months 4 weeks ago
Joined: 2010/01/19 - 13:08
Building wspr on Linux Mint 17 from source

good day all,

I have just spent a frustrating part of this weekend getting wspr running on linux again. As many are finding, the .deb packages commonly found have one problem or another and they are unable to get wspr running linux, at least I did. You will also find a number of good meaning web sites with details on how those users managed to build wspr from source for linux and I am sure that it worked well for them when they went through the process.

However, I had Linux Mint 14 installed and had so for a number of years. None of the instructions from these helpful websites nor the INSTALL.txt file from the wspr sources helped me get wspr running on my old installed Mint 14.

I decided it was time to update my installed version of Mint to 17 which is the new LTS (long term support) version and try to build wspr in that environment.

So, backup my data, and install Mint 17 Mate. This went smoothly and easily as all my installs of Linux Mint have been.

Then, following instructions found on Joe's wspr web site and from the INSTALL.txt file of the sources I proceed.

First install subversion so that I could check out the source, from a terminal window in your home directory:

$ sudo apt-get install subversion

Then, using the link to the sources from here: http://physics.princeton.edu/pulsar/K1JT/wspr.html :

$ svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wspr

Then, change directory (cd) into the newly created wspr which now contains the downloaded source:

$ cd wspr

Now, following the instructions found in the INSTALL.txt file found in the /wspr folder, ensure you have the required dependencies, if not install them:

~/wspr $ sudo apt-get install autoconf
~/wspr $ sudo apt-get install autotools
~/wspr $ sudo apt-get install gfortran
~/wspr $ sudo apt-get install libfftw3-dev
~/wspr $ sudo apt-get install libusb-dev
~/wspr $ sudo apt-get install libhamlib-dev
~/wspr $ sudo apt-get install libhamlib-utils
~/wspr $ sudo apt-get install libsamplerate0-dev
~/wspr $ sudo apt-get install portaudio19-dev
~/wspr $ sudo apt-get install python3-dev
~/wspr $ sudo apt-get install python3-imaging
~/wspr $ sudo apt-get install python3-tk
~/wspr $ sudo apt-get install python3-numpy
~/wspr $ sudo apt-get install python3-imaging-tk

*Note: the last intem python3-imaging-tk is NOT listed in the INSTALL.txt document as a dependency but I had to install it in order to get wspr working.

Now, generate the configure file:

~/wspr $ ./autogen.sh

After which you will be presented with a configuration summary:

-------------------------------------------
Configuration Summary
-------------------------------------------

Package: .........: WSPR 4.0
Python3: .........: /usr/bin/python3
F2py: ............: /usr/bin/f2py3
Fcomplier: .......: gfortran
Samplerate: ......: OK
FFTW3: ...........: OK
Portaudio: .......: OK
Install Prefix: ..: /home/ve3gtc/.wspr

Website ..........: http://www.physics.princeton.edu/pulsar/K1JT/wspr.html
Report Bugs To ...: wsjt-devel@lists.sourceforge.net

Finished creating Makefile, To build , type:

make

Now, you can make and install wspr:

~/wspr $ make

After which you will be presented with the make summary:

---------------------------------------------
WSPR 4.0 Make Summary
---------------------------------------------

To Install, type .....: sudo make install
Then, type, ..........: wspr

Clean & Rebuild
To Clean, type .......: make clean
To Dist Clean, type ..: make distclean

And finally you can install:

~/wspr $ sudo make install

Providing this summary:

-----------------------------------
Installing WSPR
-----------------------------------

Finished Installing WSPR

..To run, type..: wspr

..Website ......: http://www.physics.princeton.edu/pulsar/K1JT/wspr.html
..Report Bugs ..: wsjt-devel@lists.sourceforge.net

Of course, the first time you run wspr you will have to configure the app for your use including callsign, grid square and audio in and out.

As always, the hardest part is ensuring that all the dependencies are met in order to build the app from source.

Worked for me.

Next step is to try building wsjt and try some meteor scatter.

cheers, Graham ve3gtc