Update Mac build instructions to reflect latest O/S MacPorts and Qt versions

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6637 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2016-04-23 23:40:30 +00:00
parent 946ee56db2
commit 8cf1b33b59

39
INSTALL
View File

@ -205,15 +205,15 @@ libtool
pkgconfig pkgconfig
texinfo texinfo
gcc49 gcc49
fftw-3-single +gcc49 fftw-3-single +gcc5
asciidoc asciidoc
libusb-devel libusb-devel
These are install by typing: These are install by typing:
$ sudo port install autoconf automake \ $ sudo port install autoconf automake \
libtool pkgconfig texinfo gcc49 asciidoc \ libtool pkgconfig texinfo gcc5 asciidoc \
fftw-3-single +gcc49 libusb-devel fftw-3-single +gcc5 libusb-devel
Once complete you should have all the tools required to build WSJT-X. Once complete you should have all the tools required to build WSJT-X.
@ -252,20 +252,28 @@ $ cd ~/hamlib-prefix/build
--disable-winradio \ --disable-winradio \
--prefix=$HOME/hamlib-prefix \ --prefix=$HOME/hamlib-prefix \
CFLAGS="-I/opt/local/include" \ CFLAGS="-I/opt/local/include" \
LIBUSB_LIBS="/opt/local/lib/libusb-1.0.la" LIBUSB_LIBS="-L/opt/local/lib -lusb-1.0"
$ make $ make
$ make install-strip $ make install-strip
The above commands will build hamlib and install it into ~/hamlib-prefix The above commands will build hamlib and install it into
~/hamlib-prefix. If `make install-strip` fails, try `make install`.
Qt Qt
-- --
The binary Qt distributions from http://www.qt.io/download
unfortunately are built to use the libstdc++ C++ support library, NOTE: As of Qt v5.4 building Qt from source on Mac OS X is no longer
WSJT-X uses a less geriatric C++ dialet which uses the libc++ C++ necessary since the Qt team have switched to using the modern libc++
support library. This means that you need to build Qt from Standard C++ Library for all distributable run time
sources. This is not difficult but does take some time. components. Instead you may simply download a binary installer for OS
X 64-bit.
The binary Qt distributions prior to Qt v5.4 from
http://www.qt.io/download unfortunately are built to use the libstdc++
C++ support library, WSJT-X uses a less geriatric C++ dialect which
uses the libc++ C++ support library. This means that you need to
build Qt from sources. This is not difficult but does take some time.
Download the Qt source tarball from Download the Qt source tarball from
http://www.qt.io/download-open-source/, the link is about half way http://www.qt.io/download-open-source/, the link is about half way
@ -342,17 +350,18 @@ generation. For now we will build the latest development sources. To
configure: configure:
$ cd ~/wsjtx-prefix/build $ cd ~/wsjtx-prefix/build
$ FC=gfortran-mp-4.9 \ $ FC=gfortran-mp-5.0 \
cmake \ cmake \
-D CMAKE_PREFIX_PATH="~/local/qt-macx-clang;~/hamlib-prefix;/opt/local" \ -D CMAKE_PREFIX_PATH="~/Qt/5.6/clang_64;~/hamlib-prefix;/opt/local" \
-D CMAKE_INSTALL_PREFIX=~/wsjtx-prefix \ -D CMAKE_INSTALL_PREFIX=~/wsjtx-prefix \
~/wsjtx-prefix/src ~/wsjtx-prefix/src
The CMAKE_PREFIX_PATH variable specifies where CMake should look first The CMAKE_PREFIX_PATH variable specifies where CMake should look first
for other packages, the two elements may be different depending where for other packages, the two elements may be different depending where
you have installed Qt and what version you have and where you you have installed Qt and what version you have (~/local/qt-macx-clang
installed Hamlib (i.e. the --prefix configure option above in the if you have built Qt from sources as described above in teh Qt
hamlib section). section) and where you installed Hamlib (i.e. the --prefix configure
option above in the Hamlib section).
If you already have the fftw3-dev package installed on your system it If you already have the fftw3-dev package installed on your system it
may well get selected in preference to the one you built above in the may well get selected in preference to the one you built above in the