[Ham-Mac] Compiling wsjt on Mac OS X 10.5 PPC with Macports
Stephen Prior
sjp at sjprior.fsnet.co.uk
Sun Nov 21 05:14:38 EST 2010
That's really useful Carl, many thanks. I have an Intel dual core Mac mini
running 10.6.5. I have no experience whatsoever of talking to the mac from
the terminal window (although plenty from earlier pc days!), but I'll give
it a go and see. Looks like I might need to set aside several hours for it
though!
73 Stephen G4SJP
On 21/11/2010 07:45, "Carl Makin" <carl at stagecraft.cx> wrote:
>
> Afternoon All,
> I managed to get WSJT 9.02BETA running on my old dual G5 PowerMac
> running 10.5.8 using the prerequisites built from Macports.
>
> This post is mainly just to get the procedure into the list archives
> however discussion welcome. I have no idea (yet) how to actually use
> WSJT, but it does seem to decode stuff on 20m although it complains
> about KVASD_g95 not being found. More about that later.
>
> The procedure;
>
> First, install X11 and Macports, then in a terminal do;
>
> sudo port install gcc44
> sudo port install fftw-3-single +gcc44
> sudo port install python27
> sudo port install py27-numpy +gcc44
> sudo port install py27-scipy +gcc44
> sudo port install py27-pil
> sudo port install py27-pyfftw3
> sudo port install libsamplerate
> sudo port install portaudio
> sudo python_select python27
> sudo ln -s /opt/local/bin/f2py-2.7 /opt/local/bin/f2py
> sudo ln -s /opt/local/bin/gfortran-mp-4.4 /opt/local/bin/gfortran
>
> # That takes care of the pre-requisites. The +gcc44 makes sure those
> modules are built with fortran support.
> # then you do;
> mkdir -p src/wsjt
> cd src/wsjt
> svn co http://svn.berlios.de/svnroot/repos/wsjt/trunk
> cd trunk
> ./configure --with-portaudio-lib-dir=/opt/local/lib --with-portaudio-
> include-dir=/opt/local/include
> make
>
> If you got this far then you should have a working wsjt app. Typing
> "python ./wsjt.py" should start it up.
>
> There are two more issues. First if you install using "make install"
> the wsjt shell script installed in /usr/local/bin doesn't work as it
> can't find the wsjt.py python script which gets installed into the
> python site directories rather than into /usr/local/bin. You can
> replace that file with;
>
> ---------- Cut Here -------------
> #!/bin/sh
> LOCALBASE=/usr/local/
> PYTHONBASE=`python-config --prefix`
> if [ ! -e ~/.wsjt ] ; then
> mkdir ~/.wsjt
> mkdir ~/.wsjt/RxWav
> fi
> if [ ! -e ~/.wsjt/CALL3.TXT ] ; then
> cp -f ${LOCALBASE}/share/wsjt/CALL3.TXT ~/.wsjt
> cp -f ${LOCALBASE}/share/wsjt/wsjtrc ~/.wsjt
> cp -f ${LOCALBASE}/share/wsjt/dmet_*.dat ~/.wsjt
> cp -f ${LOCALBASE}/share/wsjt/dmet_10_-1_3.dat ~/.wsjt
> fi
> cd ~/.wsjt
> python ${PYTHONBASE}/bin/wsjt.py
> ------------ Cut Here --------------
>
> which should work.
>
> The second issue is that it will complain about not finding KVASD_95.
> If you're running PPC like me then you're out of luck as this is the
> patented closed source reed solomon decoder code and only ships with
> i386 binaries.
>
> I think it should detect and install it correctly on intel machines,
> but I haven't tried it. The call is in extract.f and the file you
> want is KVASD_gfortran_Mac. WSJT will work without it as it switches
> to an alternative decoder however I assume sensitivity will be
> degraded. I have no idea by how much.
>
> Good Luck!
>
> Oh, I've been unable to get WSPR compiled on my PPC 10.5.8 machine.
> It complains about not finding "__MAIN__" in libgfortran.a which is
> crud as it's not supposed to be building an executable at that point.
> I've spent pretty much all of today on it and as far as I can see it's
> a screwup in the GNU autoconf setup but I've been unable to pin it down.
>
> Carl.
> (vk1kcm)
>
>
> ______________________________________________________________
> Ham-Mac mailing list
> Home: http://mailman.qth.net/mailman/listinfo/ham-mac
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:Ham-Mac at mailman.qth.net
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
>
More information about the Ham-Mac
mailing list