Difference between revisions of "WSJT-Z: Compile"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "==Download== Download source wsjt-z https://sourceforge.net/projects/wsjt-z/ ==Buka== mv wsjtz-2.3.0-mod-0.81.zip /usr/local/src/ cd /usr/local/src unzip wsjtz-2.3.0-m...")
 
Line 35: Line 35:
  
 
Compile WSJT-Z
 
Compile WSJT-Z
 +
 +
$ mkdir -p ~/wsjtx-prefix/build
 +
$ cd ~/wsjtx-prefix
 +
$ git clone git://git.code.sf.net/p/wsjt/wsjtx src
  
 
  $ cd ~/wsjtx-prefix/build
 
  $ cd ~/wsjtx-prefix/build

Revision as of 09:10, 1 September 2021

Download

Download source wsjt-z

https://sourceforge.net/projects/wsjt-z/


Buka

mv wsjtz-2.3.0-mod-0.81.zip /usr/local/src/
cd /usr/local/src
unzip wsjtz-2.3.0-mod-0.81.zip


Compile

Compile hamlin

$ mkdir ~/hamlib-prefix
$ cd ~/hamlib-prefix
$ git clone git://git.code.sf.net/u/bsomervi/hamlib src
$ cd src
$ git checkout integration
$ ./bootstrap
$ mkdir ../build
$ cd ../build
$ ../src/configure --prefix=$HOME/hamlib-prefix \
   --disable-shared --enable-static \
   --without-cxx-binding --disable-winradio \
   CFLAGS="-g -O2 -fdata-sections -ffunction-sections" \
   LDFLAGS="-Wl,--gc-sections"
$ make
$ make install-strip


Compile WSJT-Z

$ mkdir -p ~/wsjtx-prefix/build
$ cd ~/wsjtx-prefix
$ git clone git://git.code.sf.net/p/wsjt/wsjtx src
$ cd ~/wsjtx-prefix/build
$ cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix \
    -DWSJT_SKIP_MANPAGES=ON -DWSJT_GENERATE_DOCS=OFF \
    -D CMAKE_INSTALL_PREFIX=~/wsjtx-prefix ../src
$ cmake --build .
$ cmake --build . --target install