Compiling WSJT596r309 on Mandriva 2007 Free

by Harry Popov LZ1BB
version 0.2.1
       / thanks DL3LST, G8JMV, K1JT, VK3SB /


I did fresh Install of Mandriva 2007 Free. Used downloaded 4 ISO disks available from Mandriva for free download. It is very important to install all Development packages while installing Mandriva. They are too numerous to collect them later. If one missed this it is better to use Disk 1 and when prompted - chose Upgrade Mandriva 2007. Check Development tools. They will be installed.

Next step is to chose a ftp server which has all the rest packages of Mandriva 2007. They are about 10Gb so impossible to have all them on CDs. Use "easy urpmi" or "Configure your computer" for that.

Next install one by one listed below packages. To satisfy dependences many of them will need more additional packages but URPMI /or RPMDRAKE/ will do the job. Just say "Yes" on all URPMI /or RPMDRAKE/ requests.

gcc-gfortran-4.1.1-3mdk
libtcl8.4-devel-8.4.13-1mdk
libtk8.4-devel-8.4.13-1mdk
libalsa2-devel-1.0.12-2mdv2007.0
libpython2.4-devel-2.4.3-3mdv2007.0
python-imaging-1.1.4-10mdk.i586
python-imaging-devel-1.1.4-10mdk
python-numeric-devel-24.2-2mdv2007.0
libsamplerate0-devel-0.1.2-2mdk
libf2c0-3.3.6-3mdk

Create as root symbolic link:
ln -s /usr/lib/libg2c.so.0.0.0 /usr/lib/libg2c.so

Next you need some more packages. As we do not have RPMs for them you have to download and install by yourself:

---------------------------------------------------------
F2PY  ( Fortran to Python )

Download: http://cens.ioc.ee/projects/f2py2e/2.x/F2PY-2-latest.tar.gz
untar, then as root:
python setup.py install

---------------------------------------------------------
Scipy_Distutils

Download:  http://cens.ioc.ee/projects/f2py2e/2.x/scipy_distutils-latest.tar.gz
untar, then as root:
python setup.py install

---------------------------------------------------------

Download WSJT source code:

http://lz1bb.bfra.org/wsjt/wsjt596r309.tar.gz

As ordinary user:

tar xzvf wsjt596r309.tar.gz
cd wsjt596r309
./configure --enable-portaudio
make clean; make

That is all!! Next just start it. IMPORTANT!!! Alwais cd to wsjt596r309 folder before running wsjt:

cd wsjt596r309
python -O wsjt.py

I use simple script to start WSJT. Useful in case of bad memory like mine:

Create a text file,called wsjt, and copy/paste the following:

--------Copy bellow me------------
#!/bin/sh
#
# wsjt     This shell script starts WSJT596r309
cd ~/wsjt596r309
python -O wsjt.py
--------Copy above me------------

Save file in your home folder and make it executable:
chmod +x wsjt

If you like you could make symbolic link as root:

ln -s ~/wsjt /usr/bin/wsjt

Now you could start WSJT by simply typing wsjt in terminal.



Be aware! Until today, October 24th 2006, the official link for WSJT archive contains broken package. So use the link above for downloading WSJT596r309.



I have problems while using default Audio Device /dev/dsp/ of WSJT program. Problems are:

1. Bad decode on FSK441
2. Programs crashes every 8 of 10 times when try to transmit on JT65. The last was confirmed by F1EBK too.

These two problems might be connected with our local hardware but might be /dev/dsp fault. If you encounter the same behaviour just use direct card access. Usually Audio Device 1 from WSJT Setup>Options.

Some modern sound cards do not suport sample rate 11025 requested by WSJT . If you have such card you will receive errors during direct access try. If so use the clue suggested by Hamish Moffatt VK3SB:

1. Create in your home directory empty hidden file with name:
.asoundrc

2. Copy in it the following code:

pcm.radio {
        type hw
        card 0
        device 0
}
pcm_slave.radioslave {
        pcm radio
        rate 48000
}
pcm.radioconv {
        type rate
        slave radioslave
}


3. Use appropriate Audio Device number for device called "radioconv".


Have fun!

73, Harry LZ1BB