mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
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:
parent
946ee56db2
commit
8cf1b33b59
41
INSTALL
41
INSTALL
@ -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,22 +252,30 @@ $ 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,
|
|
||||||
WSJT-X uses a less geriatric C++ dialet 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 tar ball from
|
NOTE: As of Qt v5.4 building Qt from source on Mac OS X is no longer
|
||||||
|
necessary since the Qt team have switched to using the modern libc++
|
||||||
|
Standard C++ Library for all distributable run 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
|
||||||
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
|
||||||
down the page, you want the full sources tar ball shown as a 'tar.gz'
|
down the page, you want the full sources tar ball shown as a 'tar.gz'
|
||||||
link.
|
link.
|
||||||
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user